﻿/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #19B3C7;
}

/* Glassmorphism Utility */
.glass-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    color: #19B3C7;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #19B3C7;
    box-shadow: 0 0 0 2px rgba(25, 179, 199, 0.2);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Nav Button Style */
.nav-btn {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #9ca3af;
    outline: none;
    white-space: nowrap;
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Section Title Utility */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(25, 179, 199, 0.3);
}

/* Animation Utilities */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

/* FLAG HOVER EFFECT */
.glass-box[data-country]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 0;
    filter: grayscale(30%);
}

.glass-box[data-country]:hover::before {
    opacity: 0.25;
    transform: scale(1);
}

.glass-box[data-country="TR"]::before {
    background-image: url('flags/tr.png');
}

.glass-box[data-country="AZ"]::before {
    background-image: url('flags/az.png');
}

.glass-box[data-country="DE"]::before {
    background-image: url('flags/de.png');
}

/* Discord Button Integration */
.discord-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.discord-link svg {
    width: 26px;
    height: 26px;
    fill: #5865F2;
    transition: fill 0.3s ease, filter 0.3s ease;
    animation: discordIdle 1.8s ease-in-out infinite;
}

.discord-link:hover svg {
    fill: #00c2d1;
    filter: drop-shadow(0 0 10px #00c2d1);
    animation: discordHover 1.2s ease-in-out infinite;
}

@keyframes discordIdle {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

@keyframes discordHover {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-7px) scale(1.25);
    }
}

/* ADMIN PANEL STYLES */
.admin-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 4px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.admin-input:focus {
    border-color: #19B3C7;
}

.admin-btn {
    width: 100%;
    background: rgba(25, 179, 199, 0.2);
    color: #19B3C7;
    font-family: 'Oswald', sans-serif;
    padding: 10px;
    border: 1px solid rgba(25, 179, 199, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.1em;
}

.admin-btn:hover {
    background: rgba(25, 179, 199, 0.4);
    color: white;
}

/* FOOTER ICONS */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: #9ca3af;
    transition: all 0.3s ease;
    animation: discordIdle 1.8s ease-in-out infinite;
}

.social-link:hover svg {
    filter: drop-shadow(0 0 8px rgba(25, 179, 199, 0.6));
    animation: discordHover 1.2s ease-in-out infinite;
}

.social-link:hover .icon-youtube {
    fill: #FF0000;
}

.social-link:hover .icon-instagram {
    fill: #E1306C;
}

.social-link:hover .icon-discord {
    fill: #5865F2;
}

/* KATILIM ŞARTLARI */
.req-row:last-child {
    border-bottom: none;
}

.req-row {
    border-left: 2px solid transparent;
}

.req-row:hover {
    border-left: 2px solid #19B3C7;
}

/* -----------------------------------------------------------
   ROLE SECTION SPECIFIC STYLES
   ----------------------------------------------------------- */

.role-tab {
    position: relative;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid transparent;
    overflow: hidden;
}

.role-tab:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.role-tab.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateX(15px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.role-tab:hover h3,
.role-tab.active h3 {
    text-shadow: 0 0 10px currentColor;
    opacity: 1;
}

.role-detail-panel {
    position: relative;
    justify-content: flex-start !important;
    background: radial-gradient(circle at top right, rgba(25, 179, 199, 0.05), transparent 60%),
        rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.role-detail-panel::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.role-bg-logo {
    position: absolute;
    inset: 0;
    background-image: url('turkish-mauser-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 0 20px rgba(25, 179, 199, 0.2));
}

.role-detail-panel:hover .role-bg-logo {
    /* transform kaldırıldı, artık hareket etmeyecek */
    opacity: 0.15;
}

#role-detail-content {
    position: relative;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    will-change: transform, opacity;
    padding-right: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .role-bg-logo {
        background-position: center;
        opacity: 0.05;
    }

    .role-tab:hover,
    .role-tab.active {
        transform: translateX(5px);
    }

    #role-detail-content {
        text-align: center;
    }
}

/* KALBİMİZDE ROLÜ İÇİN NEON EFEKTİ */
.glow-memorial {
    border-color: rgba(234, 179, 8, 0.8) !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    animation: memorialPulse 3s infinite alternate;
}

@keyframes memorialPulse {
    0% {
        box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    }

    100% {
        box-shadow: 0 0 25px rgba(234, 179, 8, 0.7);
    }
}

/* KOPYALAMA KORUMASI */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* -----------------------------------------------------------
   TACTICAL SHOOT ANIMATIONS (STABİL & KÜÇÜK MERMİ)
   ----------------------------------------------------------- */

/* 1. Merminin Hareketi (Düz ve Hızlı Çizgi) */
@keyframes fireMermiShot {
    0% {
        left: -80px;
        opacity: 1;
        transform: translateY(-50%) scale(0.9);
    }

    10% {
        opacity: 1;
    }

    50% {
        /* Mermi tam ortada, hafif parlasın */
        transform: translateY(-50%) scale(1.1);
        filter: brightness(1.5);
    }

    100% {
        left: 200%;
        /* Ekranın tamamen sağına git */
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
}

/* 2. Butonun Yarılması (Stabil Transform) */
@keyframes splitTopMove {
    0% {
        transform: translateY(0) skewX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-200%) skewX(-10deg);
        opacity: 0;
    }
}

@keyframes splitBottomMove {
    0% {
        transform: translateY(0) skewX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(200%) skewX(-10deg);
        opacity: 0;
    }
}

/* 3. Muzzle Flash (Anlık Parlama) */
@keyframes flashBurst {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }

    10% {
        opacity: 1;
        transform: translateY(-50%) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
}

/* --- SINIFLAR --- */

/* Mermi Tetikleyici */
#btn-submit.is-firing #firing-bullet {
    display: block;
    animation: fireMermiShot 0.45s ease-in forwards;
    /* Hızlı ve net geçiş */
}

/* Namlu Alevi */
#btn-submit.is-firing .flash-effect {
    position: absolute;
    left: -20px;
    top: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff 0%, #ffaa00 40%, transparent 70%);
    border-radius: 50%;
    z-index: 50;
    pointer-events: none;
    animation: flashBurst 0.2s ease-out;
}

/* Üst Parça Hareketi */
#btn-submit.is-splitting .split-top {
    animation: splitTopMove 0.4s ease-out forwards;
}

/* Alt Parça Hareketi */
#btn-submit.is-splitting .split-bottom {
    animation: splitBottomMove 0.4s ease-out forwards;
}

/* İçeriği Gizle */
#btn-submit.is-splitting #btn-text,
#btn-submit.is-splitting .bullet-hover-container {
    opacity: 0;
    transition: opacity 0.1s;
}

/* Çerçeve Temizliği */
#btn-submit.is-splitting {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* ========================================================
   MOBILE RESPONSIVE DÜZENLEMELER
   ======================================================== */

/* --- Navigasyon Mobil --- */
@media (max-width: 768px) {
    .nav-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.6rem;
        letter-spacing: 0.03em;
    }

    .discord-item {
        margin-left: 6px;
    }

    .discord-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 0.2rem 0.3rem;
        font-size: 0.55rem;
        letter-spacing: 0.02em;
    }
}

/* --- Section Title Mobil --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.15rem;
    }
}

/* --- Rol Bölümü Mobil (1024px altı) --- */
@media (max-width: 1024px) {
    .role-detail-panel {
        min-height: auto !important;
    }

    #role-detail-content {
        transform: none !important;
        text-align: center;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .role-tab {
        padding: 0.75rem 1rem;
    }

    .role-tab:hover,
    .role-tab.active {
        transform: translateX(3px);
    }

    .role-detail-panel {
        padding: 1.5rem !important;
    }
}

/* --- Form Alanları Mobil --- */
@media (max-width: 768px) {
    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* --- Footer Mobil --- */
@media (max-width: 480px) {
    .footer-socials {
        gap: 1rem;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }
}