/* ==============================================
   KANUN VE YÖNETMELİKLER - Legislative Timeline
   Chronological flow with year highlights
   ============================================== */

/* Main Content */
.kanun-main {
    background: linear-gradient(180deg, #0a0a0c 0%, #0d0d10 100%);
    position: relative;
    overflow: hidden;
}

.kanun-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.kanun-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.kanun-intro {
    padding: 6rem 0 4rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.intro-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--yk-text-secondary);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}

/* ========================================
   TIMELINE SECTION
   ======================================== */

.timeline-section {
    padding: 2rem 0 5rem;
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
}

/* Center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(212, 168, 83, 0.4) 5%,
            rgba(212, 168, 83, 0.4) 95%,
            transparent 100%);
}

/* Timeline Item */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Year Badge */
.timeline-year {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
    padding-right: 1.5rem;
    position: relative;
}

.year-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--yk-gold);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

/* Dot on timeline */
.timeline-year::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--yk-dark);
    border: 3px solid var(--yk-gold);
    border-radius: 50%;
}

/* Content */
.timeline-content {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.06);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--yk-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* Manager Impact Box */
.manager-impact {
    background: rgba(212, 168, 83, 0.08);
    border-left: 3px solid var(--yk-gold);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.manager-impact-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--yk-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.manager-impact p {
    color: var(--yk-text-primary);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   SUMMARY SECTION
   ======================================== */

.summary-section {
    padding: 5rem 0;
    background: rgba(212, 168, 83, 0.02);
    position: relative;
    z-index: 1;
}

.summary-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.summary-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.summary-box h3 {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-box p {
    color: var(--yk-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Back Link */
.back-section {
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--yk-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--yk-gold);
}

.back-link::before {
    content: '←';
    transition: transform 0.3s ease;
}

.back-link:hover::before {
    transform: translateX(-5px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .kanun-container {
        padding: 0 1.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        padding-left: 50px;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
    }

    .timeline-year::after {
        left: -38px;
        right: auto;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}