/* ============================================
   Layer 2 Specific Styles
   ============================================ */

/* Katman Badge - Sağ Üst Köşe (Sabit) */
.layer-badge {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
}

.layer-badge-top-right {
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.layer-badge-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(91, 192, 222, 0.15) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.layer-badge-content i {
    font-size: 0.875rem;
}

/* Navbar - Katman 1'e Dön Butonu - Modern Space Button */
.layer2-button-container {
    position: relative;
    display: inline-block;
    padding: 1.5px;
    border-radius: 8px;
    background: linear-gradient(90deg, #4A90E2, #5BC0DE, #4A90E2, #5BC0DE);
    background-size: 400% 400%;
    animation: layer2GradientBorder 20s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.12);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, filter;
    backdrop-filter: blur(5px);
}

.layer2-space-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 6px 14px;
    font-size: 0.8125rem;
    color: var(--color-primary);
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F4F8 50%, #D0E8F2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(74, 144, 226, 0.08),
        0 0 4px rgba(74, 144, 226, 0.05),
        inset 0 0 8px rgba(255, 255, 255, 0.5);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
    text-shadow:
        0 1px 2px rgba(74, 144, 226, 0.2);
    font-weight: 600;
    text-decoration: none;
}

.layer2-space-button span {
    position: relative;
    z-index: 5;
    mix-blend-mode: normal;
    font-weight: 600;
    color: var(--color-primary);
    filter: brightness(1) contrast(1.2);
    text-shadow:
        0 1px 2px rgba(74, 144, 226, 0.3),
        0 0 8px rgba(74, 144, 226, 0.15);
}

.layer2-space-button i {
    position: relative;
    z-index: 5;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
    filter: brightness(1) contrast(1.2);
    text-shadow:
        0 1px 2px rgba(74, 144, 226, 0.3),
        0 0 8px rgba(74, 144, 226, 0.15);
}


.layer2-space-button:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow:
        0 2px 6px rgba(74, 144, 226, 0.12),
        0 0 6px rgba(74, 144, 226, 0.08),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #F0F7FF 0%, #E0F2F5 50%, #D0E8F2 100%);
}

.layer2-space-button:hover span {
    filter: brightness(1.1) contrast(1.3);
    text-shadow:
        0 1px 3px rgba(74, 144, 226, 0.4),
        0 0 12px rgba(74, 144, 226, 0.25),
        0 0 20px rgba(74, 144, 226, 0.15);
    color: var(--color-primary-dark);
}

.layer2-space-button:hover i {
    transform: translateX(-2px);
    filter: brightness(1.1) contrast(1.3);
    text-shadow:
        0 1px 3px rgba(74, 144, 226, 0.4),
        0 0 12px rgba(74, 144, 226, 0.25);
    color: var(--color-primary-dark);
}

.layer2-button-container:hover {
    filter: brightness(1.1);
    box-shadow:
        0 0 10px rgba(74, 144, 226, 0.18),
        0 0 4px rgba(74, 144, 226, 0.08);
    backdrop-filter: blur(8px);
    animation: layer2GradientBorder 10s ease-in-out infinite;
}


.layer2-space-button:hover .bright-particles {
    opacity: 1;
    filter: blur(0);
}

/* Parçacık animasyonları - Sadece rastgele hareket, dönme yok */

@keyframes layer2GradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Parlak parçacık katmanı - Renkli yıldızlar */
.layer2-space-button .bright-particles {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 15% 25%,
            rgba(74, 144, 226, 0.9),
            rgba(0, 0, 0, 0)),
        radial-gradient(1.8px 1.8px at 85% 15%,
            rgba(91, 192, 222, 0.9),
            rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 75% 75%,
            rgba(74, 144, 226, 0.85),
            rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 25% 85%,
            rgba(91, 192, 222, 0.8),
            rgba(0, 0, 0, 0)),
        radial-gradient(2.2px 2.2px at 65% 35%,
            rgba(74, 144, 226, 0.9),
            rgba(0, 0, 0, 0));
    animation: layer2MoveParticles4 15s linear infinite;
    opacity: 0.7;
    mix-blend-mode: normal;
    pointer-events: none;
    will-change: transform;
    z-index: 4;
    filter: blur(0.3px);
}

@keyframes layer2MoveParticles4 {
    0% {
        transform: translate(0, 0);
    }

    15% {
        transform: translate(-20px, 15px);
    }

    30% {
        transform: translate(18px, -22px);
    }

    45% {
        transform: translate(-15px, -25px);
    }

    60% {
        transform: translate(25px, 18px);
    }

    75% {
        transform: translate(-18px, 20px);
    }

    90% {
        transform: translate(22px, -15px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Hero Banner - Layer 2 */
.layer2-hero-banner {
    position: relative;
}

.layer2-hero-badge {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12) 0%, rgba(91, 192, 222, 0.12) 100%);
    border: 1px solid rgba(74, 144, 226, 0.25);
}

/* Hero Badge - Secondary Text (Katman 2) */
.layer2-hero-badge .badge-text-secondary {
    margin-left: 8px;
    opacity: 0.8;
}

.layer2-hero-badge .badge-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/* ============================================
   Code Preview - Layer 2 Hero Banner
   Modern, koyu tonlu, glassmorphism tasarım
   ============================================ */
.layer2-hero-banner .code-preview {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 41, 59, 0.95) 50%,
            rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer2-hero-banner .code-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(74, 144, 226, 0.6) 0%,
            rgba(91, 192, 222, 0.6) 50%,
            rgba(74, 144, 226, 0.6) 100%);
    border-radius: 18px 18px 0 0;
    z-index: 2;
}

.layer2-hero-banner .code-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%,
            rgba(74, 144, 226, 0.05) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 70%,
            rgba(91, 192, 222, 0.04) 0%,
            transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: layer2CodePreviewShimmer 8s ease-in-out infinite;
}

@keyframes layer2CodePreviewShimmer {

    0%,
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: rotate(180deg);
    }
}

.layer2-hero-banner .code-preview:hover {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Code Header - Dark Glass */
.layer2-hero-banner .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.8) 0%,
            rgba(51, 65, 85, 0.8) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    position: relative;
    z-index: 1;
}

.layer2-hero-banner .code-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.layer2-hero-banner .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.layer2-hero-banner .dot-red {
    background: #FF5F56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}

.layer2-hero-banner .dot-yellow {
    background: #FFBD2E;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.4);
}

.layer2-hero-banner .dot-green {
    background: #27C93F;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}

.layer2-hero-banner .code-title {
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.9);
    font-weight: 500;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Code Content - Dark Glass */
.layer2-hero-banner .code-content {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.layer2-hero-banner .code-content pre {
    margin: 0;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.layer2-hero-banner .code-content code {
    color: #e2e8f0;
    background: transparent;
}

/* Syntax Highlighting - Dark Theme Colors */
.layer2-hero-banner .code-keyword {
    color: #c792ea;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(199, 146, 234, 0.3);
}

.layer2-hero-banner .code-variable {
    color: #82aaff;
    text-shadow: 0 0 6px rgba(130, 170, 255, 0.2);
}

.layer2-hero-banner .code-string {
    color: #c3e88d;
    text-shadow: 0 0 6px rgba(195, 232, 141, 0.2);
}

.layer2-hero-banner .code-function {
    color: #82aaff;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(130, 170, 255, 0.2);
}

.layer2-hero-banner .code-method {
    color: #f78c6c;
    text-shadow: 0 0 6px rgba(247, 140, 108, 0.2);
}

/* Scrollbar - Dark Theme */
.layer2-hero-banner .code-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.layer2-hero-banner .code-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.layer2-hero-banner .code-content::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(15, 23, 42, 0.5);
}

.layer2-hero-banner .code-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Firefox için scrollbar */
.layer2-hero-banner .code-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) rgba(15, 23, 42, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .layer2-hero-banner .code-preview {
        border-radius: 14px;
    }

    .layer2-hero-banner .code-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .layer2-hero-banner .code-content {
        padding: var(--spacing-md);
    }

    .layer2-hero-banner .code-content pre {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .layer2-hero-banner .code-preview {
        border-radius: 12px;
    }

    .layer2-hero-banner .code-header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .layer2-hero-banner .code-content {
        padding: var(--spacing-sm);
    }

    .layer2-hero-banner .code-content pre {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .layer2-hero-banner .code-title {
        font-size: 0.8125rem;
    }
}

/* Responsive - Katman Badge ve Buton */
@media (max-width: 768px) {
    .layer-badge-top-right {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .layer-badge-content {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .layer2-button-container {
        padding: 1px;
    }

    .layer2-space-button {
        padding: 5px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        gap: 0.25rem;
    }

    .layer2-space-button span {
        display: inline;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Mobilde "Katman 1'e Dön" yerine "Katman 1" göster */
    .layer2-space-button span {
        font-size: 0;
    }

    .layer2-space-button span::after {
        content: "Katman 1";
        font-size: 0.7rem;
        display: inline;
    }

    .layer2-space-button i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    /* Features Section - Mobil Optimizasyon (Layer 1 ile aynı) */
    .features-section {
        padding: var(--spacing-lg) 0;
    }

    .features-section .container {
        padding: 0 0.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .features-header {
        padding: 0 0.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .features-title {
        font-size: 1.75rem;
    }

    .features-subtitle {
        font-size: 1rem;
        padding: 0;
    }

    .features-grid {
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--spacing-sm);
    }

    .feature-card-icon i {
        font-size: 1.5rem;
    }

    .feature-card-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }

    .feature-card-description {
        font-size: 0.9375rem;
        line-height: 1.7;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Journey Section - Mobil Optimizasyon (Layer 1 ile aynı) */
    .journey-section {
        padding: var(--spacing-lg) 0;
    }

    .journey-section .container {
        padding: 0 0.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .journey-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-header {
        padding: 0 0.5rem;
        margin-bottom: var(--spacing-lg);
    }

    .journey-title {
        font-size: 1.75rem;
    }

    .journey-text-block {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-text-header {
        margin-bottom: var(--spacing-md);
    }

    .journey-text-badges {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }

    .journey-text-badge {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
    }

    .journey-text-content {
        gap: var(--spacing-md);
    }

    .journey-text-item {
        gap: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
    }

    .journey-text-icon {
        width: 48px;
        height: 48px;
    }

    .journey-text-icon i {
        font-size: 1.25rem;
    }

    .journey-text-item-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-text-item-title {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xs);
    }

    .journey-paragraph {
        font-size: 0.9375rem;
        line-height: 1.75;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-divider {
        margin: var(--spacing-md) 0;
        gap: var(--spacing-sm);
    }

    .journey-divider-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .journey-future-block {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-future-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .journey-future-description {
        font-size: 0.9375rem;
        line-height: 1.75;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-future-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .journey-future-feature {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .learning-path-stats,
    .learning-path-features,
    .learning-path-feature {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}