/* History Page Styles */

/* ===== Quick Menu (인사말 페이지와 동일) ===== */
.quick-menu {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category Header */
.quick-menu-header {
    width: 100%;
    text-align: left;
    padding-bottom: 1rem;
    padding-left: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Navigation */
.quick-nav {
    width: 100%;
}

.nav-section {
    width: 100%;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-nav li {
    position: relative;
    width: 100%;
}

.quick-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    position: relative;
    border-left: 3px solid transparent;
}

.quick-nav .dot {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-nav .label {
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    background: rgba(0, 102, 204, 0.03);
    color: var(--text-dark);
}

.quick-nav a:hover .dot {
    background: var(--text-medium);
    transform: scale(1.2);
}

/* Active state */
.quick-nav li.active a {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 168, 232, 0.05));
    color: var(--primary-color);
    font-weight: 700;
    border-left: 3px solid var(--primary-color);
    transform: translateX(2px);
}

.quick-nav li.active .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

.quick-nav li.active .label {
    font-weight: 700;
}

/* Quick Menu Footer (Logo) */
.quick-menu-footer {
    width: 100%;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 102, 204, 0.2);
    text-align: left;
    padding-left: 0.75rem;
}

.quick-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-logo:hover {
    transform: scale(1.05);
}

.quick-logo img {
    width: 90px;
    height: auto;
    filter: brightness(1);
    transition: all 0.3s ease;
}

.quick-logo:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .quick-menu {
        display: none;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* History Section */
.history-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.history-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* History Header */
.history-header {
    text-align: center;
    margin-bottom: 5rem;
}

.history-title {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.history-title .highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.history-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Timeline Container - Tab Style */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

/* Year Tabs */
.year-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.year-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.year-tab:hover {
    color: var(--text-dark);
    background: rgba(0, 102, 204, 0.05);
}

.year-tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
}

/* Year Contents */
.year-contents {
    position: relative;
}

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

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

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

/* Year Header */
.year-header {
    text-align: center;
    margin-bottom: 3rem;
}

.year-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.year-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.event-card.highlight {
    border-left-color: #0066cc;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
}

/* Event Date */
.event-date {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-card.highlight .event-date {
    background: linear-gradient(135deg, #0066cc, #00a8e8);
}

/* Event Body */
.event-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.event-body h4 i {
    color: #0066cc;
    margin-right: 0.5rem;
}

.event-amount {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.1), rgba(0, 102, 204, 0.1));
    color: var(--text-medium);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Achievement Summary */
.achievement-summary {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-light), white);
    border-radius: var(--border-radius);
    text-align: center;
}

.summary-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.summary-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 2rem 1rem;
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 1rem;
    color: var(--text-medium);
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline-container::before {
        left: 30px;
        width: 2px;
    }
    
    .event-item {
        grid-template-columns: 60px 1fr;
        margin-left: 0;
        gap: 0;
    }
    
    .event-item:nth-child(odd) .event-content,
    .event-item:nth-child(even) .event-content {
        grid-column: 2;
        text-align: left;
        padding-left: 2rem;
        padding-right: 1rem;
    }
    
    .event-item:nth-child(odd) .event-month,
    .event-item:nth-child(even) .event-month {
        grid-column: 1;
        grid-row: 1;
    }
    
    .event-content::before {
        left: -15px !important;
        right: auto !important;
    }
    
    .year-marker {
        text-align: left;
        padding-left: 60px;
    }
    
    .year-marker::after {
        left: 30px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .history-title {
        font-size: 1.8rem;
    }
    
    .history-subtitle {
        font-size: 1rem;
    }
    
    .year-marker .year {
        font-size: 1.5rem;
        padding: 0.5rem 1.5rem;
    }
    
    .event-month {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .event-content {
        padding: 1rem 1.5rem;
    }
    
    .event-content h4 {
        font-size: 1rem;
    }
    
    .event-content p {
        font-size: 0.9rem;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .timeline-container::before {
        left: 25px;
    }
    
    .event-item {
        margin-left: 10px;
    }
    
    .event-month {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}
