/* Documents and Licenses Page Styles */
:root {
    --fx-primary-color: #1a1a1a;
    --fx-secondary-color: #666;
    --fx-light-gray: #f5f5f5;
    --fx-border-color: #e0e0e0;
    --fx-background: #ffffff;
}

.documents-page {
    min-height: 100vh;
    background: var(--fx-background);
}

/* Hero Section */
.documents-hero {
    padding: 6rem 0 0rem;
    background: var(--fx-background);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fx-primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--fx-secondary-color);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Documents Section */
.documents-section {
    padding: 2rem 0;
    background: var(--fx-background);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.document-card {
    background: var(--fx-background);
    border: 1px solid var(--fx-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .document-card:hover {
        border-color: var(--fx-primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

.document-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--fx-light-gray);
}

    .document-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 1rem;
        transition: transform 0.3s ease;
    }

.document-card:hover .document-image img {
    transform: scale(1.02);
}

.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.document-card:hover .document-overlay {
    opacity: 1;
}

.view-btn,
.download-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fx-background);
    color: var(--fx-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .view-btn:hover,
    .download-btn:hover {
        background: var(--fx-primary-color);
        color: var(--fx-background);
        transform: scale(1.05);
    }

    .view-btn i,
    .download-btn i {
        font-size: 1.25rem;
    }

.document-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--fx-background);
}

    .document-info h3 {
        color: var(--fx-primary-color);
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .document-info p {
        color: var(--fx-secondary-color);
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        font-weight: 500;
    }

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--fx-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: var(--fx-primary-color);
    color: var(--fx-background);
    border: none;
    padding: 1.25rem 1.5rem;
}

    .modal-header .modal-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

.modal-body {
    padding: 0;
    background: var(--fx-light-gray);
}

    .modal-body img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .document-info h3 {
        font-size: 1rem;
    }

    .document-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .document-image {
        padding-top: 66.67%;
    }

    .document-info {
        padding: 1rem;
    }
}
