/* ============================================
   Katman 2'ye Git Butonu - Navbar Minimal
   ============================================ */

/* Navbar - Katman 2'ye Git Butonu - Minimal Space Button */
.layer1-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: layer1GradientBorder 20s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(124, 156, 255, 0.12);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, filter;
    backdrop-filter: blur(5px);
}

.layer1-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(124, 156, 255, 0.08),
        0 0 4px rgba(124, 156, 255, 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(124, 156, 255, 0.2);
    font-weight: 600;
    text-decoration: none;
}

.layer1-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(124, 156, 255, 0.3),
        0 0 8px rgba(124, 156, 255, 0.15);
}

.layer1-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(124, 156, 255, 0.3),
        0 0 8px rgba(124, 156, 255, 0.15);
}

.layer1-space-button:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow:
        0 2px 6px rgba(124, 156, 255, 0.12),
        0 0 6px rgba(124, 156, 255, 0.08),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #F0F7FF 0%, #E0F2F5 50%, #D0E8F2 100%);
}

.layer1-space-button:hover span {
    filter: brightness(1.1) contrast(1.3);
    text-shadow:
        0 1px 3px rgba(124, 156, 255, 0.4),
        0 0 12px rgba(124, 156, 255, 0.25),
        0 0 20px rgba(124, 156, 255, 0.15);
    color: var(--color-primary-dark);
}

.layer1-space-button:hover i {
    transform: translateX(2px);
    filter: brightness(1.1) contrast(1.3);
    text-shadow:
        0 1px 3px rgba(124, 156, 255, 0.4),
        0 0 12px rgba(124, 156, 255, 0.25);
    color: var(--color-primary-dark);
}

.layer1-button-container:hover {
    filter: brightness(1.1);
    box-shadow:
        0 0 10px rgba(124, 156, 255, 0.18),
        0 0 4px rgba(124, 156, 255, 0.08);
    backdrop-filter: blur(8px);
    animation: layer1GradientBorder 10s ease-in-out infinite;
}

.layer1-space-button:hover .bright-particles {
    opacity: 1;
    filter: blur(0);
}

/* Parlak parçacık katmanı - Renkli yıldızlar */
.layer1-space-button .bright-particles {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 15% 25%,
            rgba(124, 156, 255, 0.9),
            rgba(0, 0, 0, 0)),
        radial-gradient(1.8px 1.8px at 85% 15%,
            rgba(196, 181, 253, 0.9),
            rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 75% 75%,
            rgba(124, 156, 255, 0.85),
            rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 25% 85%,
            rgba(196, 181, 253, 0.8),
            rgba(0, 0, 0, 0)),
        radial-gradient(2.2px 2.2px at 65% 35%,
            rgba(124, 156, 255, 0.9),
            rgba(0, 0, 0, 0));
    animation: layer1MoveParticles 15s linear infinite;
    opacity: 0.7;
    mix-blend-mode: normal;
    pointer-events: none;
    will-change: transform;
    z-index: 4;
    filter: blur(0.3px);
}

@keyframes layer1MoveParticles {
    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);
    }
}

@keyframes layer1GradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive - Katman Butonu */
@media (max-width: 768px) {
    .layer1-button-container {
        padding: 1px;
    }

    .layer1-space-button {
        padding: 5px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        gap: 0.25rem;
    }

    .layer1-space-button span {
        display: inline;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Mobilde "Katman 2'ye Git" yerine "Katman 2" göster */
    .layer1-space-button span {
        font-size: 0;
    }

    .layer1-space-button span::after {
        content: "Katman 2";
        font-size: 0.7rem;
        display: inline;
    }

    .layer1-space-button i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }
}