﻿/* ========================================
       GENERAL INFO PAGE - ENHANCED
       Theme: #0070b7 | Gold: #f39c12
    ======================================== */
/* Page Wrapper - Pattern Background */
.general-info-page-wrapper {
    background: linear-gradient(180deg, #fdfaf3 0%, #faf7ee 50%, #fdfaf3 100%);
}

/* Section Header */
.general-section-header {
    margin-bottom: 40px;
}

.general-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Title - gradient blue to gold on hover */
.general-header-title-wrapper h2,
.general-header-title-wrapper h3 {
    background: linear-gradient(135deg, #1a1a2e 0%, #0070b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    transition: all 0.3s ease;
    margin: 0;
}

    .general-header-title-wrapper h2:hover,
    .general-header-title-wrapper h3:hover {
        background: linear-gradient(135deg, #0070b7 0%, #f39c12 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* Gold Icon */
.general-header-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.25);
    flex-shrink: 0;
    animation: iconPulse 3s ease-in-out infinite;
}

    .general-header-icon-wrapper i {
        font-size: 2rem;
        color: #fff;
    }

    .general-header-icon-wrapper:hover {
        animation: none;
        transform: scale(1.1);
    }

/* Description Box - White Background */
.general-header-description {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    padding: 25px 30px;
    background: #ffffff !important;
    border-radius: 16px;
    border-left: 4px solid #0070b7;
    border-bottom: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 112, 183, 0.06);
    transition: all 0.35s ease;
}

    .general-header-description:hover {
        border-bottom-color: #f39c12;
        background: linear-gradient(to right, rgba(0,112,183,0.03), rgba(243,156,18,0.03)) !important;
        box-shadow: 0 8px 30px rgba(0, 112, 183, 0.1);
        transform: translateY(-2px);
    }

/* Attachments Section */
.general-attachments-section {
    margin-top: 30px;
}

.general-attachments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 112, 183, 0.1);
}

    .general-attachments-header h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.3rem;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0;
    }

        .general-attachments-header h3 i {
            color: #0070b7;
        }

.general-count-badge {
    background: #0070b7;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Attachments Grid */
.general-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Attachment Card */
.general-attachment-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 112, 183, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

    .general-attachment-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 112, 183, 0.12);
        border-bottom: 2px solid #f39c12;
    }

.general-attachment-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
}

.general-attachment-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 112, 183, 0.05);
}

    .general-attachment-icon i {
        font-size: 1.8rem;
    }

    /* File type colors */
    .general-attachment-icon .fa-file-pdf-o {
        color: #e74c3c;
    }

    .general-attachment-icon .fa-file-word-o {
        color: #2980b9;
    }

    .general-attachment-icon .fa-file-excel-o {
        color: #27ae60;
    }

    .general-attachment-icon .fa-file-image-o {
        color: #3498db;
    }

    .general-attachment-icon .fa-file-archive-o {
        color: #f39c12;
    }

    .general-attachment-icon .fa-file-o {
        color: #0070b7;
    }

.general-attachment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.general-attachment-card:hover .general-attachment-title {
    color: #0070b7;
}

.general-attachment-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0070b7;
    text-transform: uppercase;
}

.general-attachment-card:hover .general-attachment-action {
    color: #f39c12;
}

/* ========================================
       RTL (Arabic)
    ======================================== */
html[lang="ar"] .general-header-description {
    border-left: none;
    border-right: 4px solid #0070b7;
}

/* ========================================
       RESPONSIVE
    ======================================== */
@media (max-width: 768px) {
    .general-info-page-wrapper {
        padding: 20px 0;
    }

    .general-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .general-header-icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

        .general-header-icon-wrapper i {
            font-size: 1.6rem;
        }

    .general-header-title-wrapper h2,
    .general-header-title-wrapper h3 {
        font-size: 1.5rem !important;
    }

    .general-header-description {
        padding: 18px 20px;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .general-attachments-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .general-attachments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .general-header-icon-wrapper {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

        .general-header-icon-wrapper i {
            font-size: 1.4rem;
        }

    .general-header-title-wrapper h2,
    .general-header-title-wrapper h3 {
        font-size: 1.3rem !important;
    }

    .general-header-description {
        padding: 14px 16px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .general-attachment-link {
        padding: 14px 16px;
    }

    .general-attachment-icon {
        width: 42px;
        height: 42px;
    }

        .general-attachment-icon i {
            font-size: 1.5rem;
        }

    .general-attachment-title {
        font-size: 0.9rem;
    }
}

/* ========================================
       ANIMATIONS
    ======================================== */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.general-attachment-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

    .general-attachment-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .general-attachment-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .general-attachment-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .general-attachment-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .general-attachment-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .general-attachment-card:nth-child(6) {
        animation-delay: 0.3s;
    }

/* ========================================
       PRINT
    ======================================== */
@media print {
    .general-attachment-action {
        display: none;
    }

    .general-attachment-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

