:root {
    --primary-green: #00d26a; 
    --primary-dark: #0f1724;   
    --secondary-dark: #162032;
    --card-bg: #1e293b;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --header-bg: #ffffff;      
    --header-text: #1a202c; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* HEADER */
.main-header {
    background-color: var(--header-bg);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo img { height: 50px; width: auto; object-fit: contain; }

.navbar { display: flex; gap: 20px; }
.navbar a { color: var(--header-text); text-decoration: none; font-weight: 600; transition: 0.3s; font-size: 0.95rem; }
.navbar a:hover, .navbar a.active { color: var(--primary-green); }
.mobile-menu-icon { display: none; color: var(--header-text); font-size: 1.8rem; cursor: pointer; margin-left: 15px; }
.btn { padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; transition: 0.3s; font-size: 0.9rem; white-space: nowrap; }
.btn-green { background-color: var(--primary-green); color: #fff; }
.mobile-text { display: none; } .desktop-text { display: inline; }

/* HERO BÖLÜMÜ */
.hero-section { 
    position: relative;
    padding: 80px 0; 
    text-align: center; 
    overflow: hidden; 
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arkaplan Slider */
.hero-bg-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 10s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    15% { opacity: 1; }
    50% { opacity: 1; }
    65% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 36, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge { background-color: rgba(0, 210, 106, 0.2); color: var(--primary-green); padding: 5px 15px; border-radius: 20px; display: inline-block; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; }
.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
.main-title { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; font-weight: 900; }
.gradient-text { background: linear-gradient(90deg, #00d26a, #00b4d8, #00d26a); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientMove 3s linear infinite; }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* NEON WHATSAPP BUTONU */
.btn-whatsapp { 
    background-color: #1a202c; 
    color: white; 
    font-size: 1rem; 
    padding: 15px 30px; 
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
}
.glowing-border::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, #25D366, transparent);
    animation: rotateLight 4s linear infinite;
    z-index: -2;
}
.glowing-border::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #111;
    border-radius: 48px;
    z-index: -1;
}
@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    color: #25D366;
}

/* GAME */
.game-section { padding: 40px 0; background-color: #0d121b; border-top: 1px solid #1f293a; }
.game-intro { margin-bottom: 20px; text-align: center; }
.score-board { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.score-box { background-color: var(--secondary-dark); padding: 8px 20px; border-radius: 10px; border: 1px solid #2d3748; text-align: center; min-width: 100px; }
.score-box span { font-size: 0.7rem; color: var(--text-gray); display: block; }
.score-box strong { font-size: 1.4rem; color: var(--primary-green); }
.game-area-wrapper { position: relative; max-width: 800px; width: 100%; margin: 0 auto; user-select: none; touch-action: pan-y; }
.game-field { width: 100%; height: 400px; background-color: #1a8f46; background-image: linear-gradient(rgba(255,255,255,0.1) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,0.1) 2px, transparent 2px); background-size: 50px 50px; border-radius: 15px; position: relative; overflow: hidden; cursor: crosshair; border: 4px solid #145e30; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); }
.goal-post-frame { width: 200px; max-width: 50%; height: 90px; border: 6px solid #fff; border-bottom: none; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 1; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.goal-net { width: 180px; max-width: 45%; height: 80px; position: absolute; top: 35px; left: 50%; transform: translateX(-50%); z-index: 0; }
.goalkeeper { width: 45px; height: 18px; background-color: #3182ce; position: absolute; top: 100px; left: 50%; transform: translateX(-50%); border-radius: 4px; z-index: 5; box-shadow: 0 4px 6px rgba(0,0,0,0.4); border: 1px solid #63b3ed; }
.ball { width: 22px; height: 22px; background: radial-gradient(circle at 30% 30%, #fff, #ddd); border-radius: 50%; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; box-shadow: 0 3px 8px rgba(0,0,0,0.3); }
.start-overlay, .result-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; color: white; }
.result-overlay { display: none; }
.mobile-note { display: block; text-align: center; margin-top: 10px; color: #555; font-size: 0.8rem; }

/* FIELDS */
.fields-section { padding: 60px 0; background-color: var(--primary-dark); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-header h2 { font-size: 2rem; }

.filter-controls { display: flex; gap: 15px; flex-wrap: wrap; }
.select-wrapper { position: relative; background-color: var(--secondary-dark); border: 1px solid #2d3748; border-radius: 8px; overflow: hidden; }
.select-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--primary-green); pointer-events: none; font-size: 0.9rem; }
select { appearance: none; background-color: transparent; border: none; color: white; padding: 10px 30px 10px 35px; font-size: 0.9rem; cursor: pointer; outline: none; min-width: 150px; }
select option { background-color: var(--secondary-dark); color: white; }

.fields-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.fields-list { height: auto; max-height: none; overflow-y: visible; padding-bottom: 20px; display: flex; flex-direction: column; gap: 15px; }

.field-card { background-color: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); cursor: pointer; display: flex; flex-direction: column; }
.field-card:hover { transform: translateY(-3px); border-color: var(--primary-green); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.field-content { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.field-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.field-header h3 { font-size: 1.1rem; color: #fff; margin-bottom: 3px; }
.rating-badge { background-color: #f6ad55; color: #1a202c; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; }
.comment-count { font-size: 0.7rem; color: var(--text-gray); display: block; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.action-btn { padding: 8px 5px; border-radius: 6px; text-align: center; text-decoration: none; font-size: 0.8rem; font-weight: 600; transition: 0.2s; white-space: nowrap; }
.btn-call { background-color: rgba(0, 210, 106, 0.1); color: var(--primary-green); border: 1px solid rgba(0, 210, 106, 0.3); }
.btn-map { background-color: rgba(49, 130, 206, 0.1); color: #63b3ed; border: 1px solid rgba(49, 130, 206, 0.3); }
.btn-call:hover { background-color: var(--primary-green); color: white; }
.btn-map:hover { background-color: #3182ce; color: white; }

.map-wrapper { position: sticky; top: 90px; border-radius: 15px; overflow: hidden; height: 550px; border: 1px solid #2d3748; }
#map { width: 100%; height: 100%; }

/* YENİLENEN COMMUNITY (GRUBA KATIL) TASARIMI */
.community-section { padding: 60px 0; }
.community-box { 
    border-radius: 20px; 
    padding: 50px 20px; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 210, 106, 0.15);
}

/* Hareketli Arkaplan Gradienti */
.animated-gradient {
    background: linear-gradient(-45deg, #0f1724, #143e30, #00d26a, #0f1724);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.community-content { position: relative; z-index: 2; }
.community-content h2 { font-size: 2rem; margin: 15px 0 10px; font-weight: 800; color: #fff; }
.community-content p { color: #cbd5e0; margin-bottom: 25px; font-size: 1rem; }

.floating-icon { 
    color: var(--primary-green); 
    filter: drop-shadow(0 0 10px rgba(0,210,106,0.5));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.btn-white { background-color: #fff; color: var(--primary-green); border: none; }
.btn-white:hover { background-color: #f0f0f0; transform: scale(1.05); }

/* FOOTER */
footer { text-align: center; padding: 20px; margin-top: 20px; color: var(--text-gray); font-size: 0.9rem; border-top: 1px solid #1f293a; }

@media (max-width: 768px) {
    .main-header { padding: 0.2rem 0; }
    .logo img { height: 40px; }
    .navbar { display: none; position: absolute; top: 60px; left: 0; width: 100%; background-color: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); text-align: center; }
    .navbar.active { display: flex; }
    .mobile-menu-icon { display: block; }
    .desktop-text { display: none; }
    .mobile-text { display: inline; }
    .join-btn { padding: 8px 15px; font-size: 0.8rem; }
    .main-title { font-size: 1.8rem; }
    .fields-layout { grid-template-columns: 1fr; height: auto; }
    .map-wrapper { height: 350px; margin-top: 20px; position: static; }
    .filter-controls { width: 100%; }
    .select-wrapper { flex: 1; }
    select { width: 100%; }
    .action-btn { font-size: 0.75rem; padding: 8px 2px; }
}

/* ============================= */
/* HALI SAHA KART – ADRES SATIRI */
/* ============================= */
.field-card .address {
    font-size: 13px;
    color: #bfbfbf;
    margin: 6px 0 10px;
    line-height: 1.4;
}

/* ============================= */
/* BUTONLAR HER ZAMAN GÖRÜNSÜN   */
/* ============================= */
.field-card .actions {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================= */
/* WHATSAPP BUTON – KENAR IŞIK   */
/* ============================= */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #25d366,
        transparent
    );
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: borderLight 2.5s linear infinite;
}

@keyframes borderLight {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* ============================= */
/* HARİTA – RIPPLE NOKTA STİLİ   */
/* ============================= */
.ripple-marker {
    position: relative;
    width: 18px;
    height: 18px;
    background: #25d366;
    border-radius: 50%;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple-marker::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: ripple 1.8s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}