/**
 * Company History Page Styles
 * 회사연혁 페이지 전용 CSS
 *
 * 설계: SkyFS 스타일
 * - 상단 큰 제목 섹션
 * - 연도별 섹션 구성
 * - 깔끔한 수직 구조
 */

/* ===== Page Title Section ===== */
.page-title-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
}

.dark .page-title-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom-color: #374151;
}

/* ===== Page Main Title ===== */
.page-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0D47A1;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.dark .page-main-title {
    color: #1976D2;
}

/* ===== Page Subtitle ===== */
.page-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.dark .page-subtitle {
    color: #9ca3af;
}

@media (max-width: 640px) {
    .page-main-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

/* ===== Timeline Content ===== */
.timeline-content {
    padding: 60px 0;
    background: linear-gradient(to bottom,
        rgba(13, 71, 161, 0.02) 0%,
        transparent 100%);
}

.dark .timeline-content {
    background: transparent;
}

/* ===== Year Section ===== */
.year-section {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-section:nth-child(1) { animation-delay: 0.1s; }
.year-section:nth-child(2) { animation-delay: 0.15s; }
.year-section:nth-child(3) { animation-delay: 0.2s; }
.year-section:nth-child(4) { animation-delay: 0.25s; }
.year-section:nth-child(5) { animation-delay: 0.3s; }
.year-section:nth-child(n+6) { animation-delay: 0.35s; }

/* ===== Year Header ===== */
.year-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 16px;
}

/* ===== Year Title ===== */
.year-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0D47A1;
    margin: 0;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.dark .year-title {
    color: #1976D2;
}

/* ===== Year Divider ===== */
.year-divider {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg,
        #0D47A1 0%,
        #1976D2 50%,
        transparent 100%);
    border-radius: 3px;
}

.dark .year-divider {
    background: linear-gradient(90deg,
        #1976D2 0%,
        #60a5fa 50%,
        transparent 100%);
}

@media (max-width: 640px) {
    .year-header {
        gap: 16px;
        margin-bottom: 24px;
    }

    .year-title {
        font-size: 2rem;
    }

    .year-divider {
        height: 2px;
    }
}

/* ===== Events List by Month ===== */
.events-list-by-month {
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== Month Section ===== */
.month-section {
    margin-left: 24px;
}

.month-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.month-label {
    font-size: 1.5rem;
    color: #0D47A1;
    font-weight: 700;
}

.dark .month-label {
    color: #1976D2;
}

.month-label-text {
    font-size: 1.5rem;
    color: #6b7280;
    font-weight: 500;
}

.dark .month-label-text {
    color: #9ca3af;
}

/* ===== Events List ===== */
.events-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1024px) {
    .month-section {
        margin-left: 20px;
    }

    .month-header {
        margin-bottom: 10px;
    }

    .month-label {
        font-size: 1.1rem;
    }

    .month-label-text {
        font-size: 0.95rem;
    }

    .events-list {
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .month-section {
        margin-left: 16px;
    }

    .month-header {
        margin-bottom: 8px;
    }

    .month-label {
        font-size: 1rem;
    }

    .month-label-text {
        font-size: 0.9rem;
    }

    .events-list {
        gap: 8px;
    }
}

/* ===== Event Item ===== */
.event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.event-item:hover {
    border-color: #0D47A1;
    background: #fafbfc;
    box-shadow: 0 8px 16px rgba(13, 71, 161, 0.1);
    transform: translateY(-4px);
}

.dark .event-item {
    background: #1f2937;
    border-color: #374151;
}

.dark .event-item:hover {
    border-color: #1976D2;
    background: #374151;
    box-shadow: 0 8px 16px rgba(25, 118, 210, 0.15);
}

/* ===== Event Dot ===== */
.event-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.3);
}

.dark .event-dot {
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.4);
}

/* ===== Event Text ===== */
.event-text {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.dark .event-text {
    color: #d1d5db;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    margin-top: 60px;
}

.dark .cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0D47A1 100%);
}

/* ===== CTA Title ===== */
.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

/* ===== CTA Subtitle ===== */
.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CTA Button ===== */
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: #0D47A1;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    background: #f0f3f7;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

.dark .cta-button {
    color: #1e3a8a;
}

@media (max-width: 640px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 0.95rem;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1024px) {
    .page-title-section {
        padding: 40px 0 30px;
    }

    .timeline-content {
        padding: 40px 0;
    }

    .year-section {
        margin-bottom: 40px;
    }

    .year-title {
        font-size: 2rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .page-title-section,
    .timeline-content {
        background: white !important;
        border: none !important;
    }

    .event-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .cta-section {
        display: none;
    }
}

/* ===== Dark Mode Details ===== */
.dark .year-section {
    color: #e5e7eb;
}

.dark .page-subtitle {
    color: #9ca3af;
}

/* Page Hero Background */
.page-hero-bg-history {
    background-image: url('/assets/images/bg/bg2.webp');
}
