/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Top Banner */
.top-banner {
    background-color: #ff6600;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.cancha-button {
    background-color: #ff6600;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cancha-button:hover {
    background-color: #ffffff;
    color: #ff6600;
}

/* Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-name {
    font-size: 20px;
    font-weight: 500;
    color: #333333;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #204A87;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper h1 {
    color: #204A87;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    color: #666666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-size: 16px;
}

.loading.hidden {
    display: none;
}

/* Asset Grid */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Asset Card */
.asset-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.asset-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.card-thumbnail:hover {
    opacity: 0.9;
}

.card-content {
    padding: 20px;
}

.card-title {
    color: #204A87;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-metadata {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.metadata-item {
    margin-bottom: 5px;
}

.metadata-label {
    font-weight: 500;
    color: #333333;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    background-color: #204A87;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #1a3d6e;
}

.download-btn:active {
    transform: scale(0.98);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 20px;
    padding: 0;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    color: #204A87;
    font-size: 24px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background-color: #204A87;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #1a3d6e;
}

.action-btn:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        justify-content: center;
    }

    .asset-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
        margin: 10px;
    }

    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
}

