/**
 * Activity Reports Styles
 * Modern, Responsive, and Beautiful Design
 */

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #1e1e7e;
    --secondary-color: #f4a41e;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --white: #ffffff;
    --success: #28a745;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Container Layout
   ========================================================================== */
.activity-report-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* ==========================================================================
   Side Navigation
   ========================================================================== */
.activity-nav-wrapper {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.activity-side-nav {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.activity-side-nav .nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
}

.activity-side-nav .nav-btn:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.activity-side-nav .nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.activity-side-nav .nav-btn i::before {
    content: '•';
    font-size: 20px;
}

/* ==========================================================================
   Content Wrapper
   ========================================================================== */
.activity-content-wrapper {
    flex: 1;
    min-width: 0;
}

.content-section {
    display: none;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.subsection-title .highlight {
    color: var(--secondary-color);
}

/* ==========================================================================
   Section Content
   ========================================================================== */
.section-content {
    line-height: 1.8;
}

.introduction-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.9;
    text-align: justify;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================================================
   Lists (Objectives & Outcomes)
   ========================================================================== */
.objectives-list,
.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objectives-list li,
.outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.objectives-list li:hover,
.outcomes-list li:hover {
    background: #e8e9f3;
    transform: translateX(5px);
}

.bullet-icon {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: bold;
    flex-shrink: 0;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 126, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i::before {
    content: '🔍';
    font-size: 40px;
    color: var(--white);
}

/* ==========================================================================
   Year Tabs
   ========================================================================== */
.year-tabs-wrapper {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.year-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: -2px;
}

.year-tab {
    padding: 12px 28px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.year-tab:hover {
    background: #e8e9f3;
}

.year-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.year-contents {
    position: relative;
}

.year-content {
    display: none;
}

.year-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ==========================================================================
   Committee Tables
   ========================================================================== */
.committee-section {
    margin-bottom: 40px;
}

.committee-group {
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.committee-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.committee-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.committee-table .table-header {
    background: var(--primary-color);
    text-align: center;
    font-size: 18px;
    padding: 18px;
}

.committee-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.committee-table tbody tr:hover {
    background: var(--bg-light);
}

.committee-table tbody tr:last-child {
    border-bottom: none;
}

.committee-table td {
    padding: 15px;
    color: var(--text-dark);
}

/* ==========================================================================
   Events Timeline
   ========================================================================== */
.events-section {
    margin-top: 40px;
}

.events-timeline {
    display: grid;
    gap: 20px;
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.event-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
}

.date-day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.9;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.btn-download:hover {
    background: #e09415;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download i::before {
    content: '⬇';
}

/* ==========================================================================
   Mobile Navigation Toggle
   ========================================================================== */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .activity-nav-wrapper {
        flex: 0 0 200px;
    }
    
    .activity-side-nav .nav-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .activity-report-container {
        flex-direction: column;
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .activity-nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 999;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    
    .activity-nav-wrapper.active {
        left: 0;
    }
    
    .activity-side-nav {
        box-shadow: none;
        height: 100%;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .year-tabs {
        gap: 8px;
    }
    
    .year-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .event-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .event-date {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }
    
    .date-day {
        font-size: 24px;
    }
    
    .committee-table {
        font-size: 14px;
    }
    
    .committee-table th,
    .committee-table td {
        padding: 10px 8px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .activity-report-container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .year-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .btn-download {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .activity-side-nav,
    .mobile-nav-toggle,
    .btn-download {
        display: none !important;
    }
    
    .activity-content-wrapper {
        width: 100%;
    }
    
    .content-section {
        display: block !important;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-bottom: 20px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #2d3748;
        --white: #1a202c;
        --text-dark: #e2e8f0;
        --text-light: #a0aec0;
        --border-color: #4a5568;
    }
}
