/*
Theme Name: Endurordu Theme
Author: Endurordu
Description: Statik HTML'den Sıfırdan Üretilen Dinamik WordPress Teması
Version: 1.0
*/

/* ==========================================================================
   1. SIFIRLAMA (RESET) VE GENEL AYARLAR
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background-color: #0d0d0d;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   2. ÜST BAR (NAVBAR) VE MENÜLER
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.brand-logo img {
    height: 40px;
    width: auto;
}

.menu ul {
    display: flex !important;
    list-style: none !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    transition: color 0.3s ease !important;
}

.menu ul li a:hover {
    color: #ff6a00 !important;
}

/* ==========================================================================
   3. ANA SAYFA KAHRAMAN ALANI (HERO)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: flex-end;
    padding-left: 8%;
    padding-bottom: 6%;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.85)) !important;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 800px;
}

/* WordPress'ten gelen gereksiz başlıkları gizle (Eğer sayfada "Ana Sayfa" yazısı kalırsa diye) */
.hero-content h1, .hero-content .entry-title {
    display: none !important;
}

/* Bizim kısa kod/span ile eklediğimiz alt başlık */
.hero-subtitle {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
    color: #ff6a00 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
}

/* Büyük Ana Başlık Stili */
.hero-content p {
    font-size: clamp(40px, 6vw, 80px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    margin: 0 !important;
}

/* Eklenti kalıntılarını CSS ile tamamen boğup gizliyoruz */
.sharedaddy, .wpcnt, .sharedaddy, .jetpack-sharedaddy {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* Hafif Sallanma / Titreme Efekti */
@keyframes motorShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-1px, 1px) rotate(-0.5deg); }
    40% { transform: translate(-1px, -1px) rotate(0.5deg); }
    60% { transform: translate(1px, 1px) rotate(0deg); }
    80% { transform: translate(1px, -1px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Geçişlerin yumuşak olması için genel transition ayarı */
.nav-link, .btn, .card, .footer-link {
    transition: all 0.3s ease-in-out;
}
/* WordPress'in otomatik verdiği aktif sayfa sınıfı veya senin atayacağın .active sınıfı */
.current-menu-item a, .current_page_item a, .nav-link.active {
    color: #ff6600 !important; /* Devamlı parlak turuncu */
    border-bottom: 3px solid #ff6600;
    padding-bottom: 5px;
}

/* Üst menü elemanlarının üzerine gelindiğinde (Hover) */
.nav-link:hover {
    color: #cc5200 !important; /* Hafif soluk/soft turuncu */
    animation: motorShake 0.4s ease-in-out infinite; /* Sürekli sallanma */
}
/* Grid kartları için hover efekti */
.custom-card:hover {
    border-color: #cc5200 !important;
    box-shadow: 0 0 15px rgba(204, 82, 0, 0.4);
    transform: translateY(-3px); /* Hafif yukarı doğru hareket */
}

/* Eğer kartın içi tamamen turuncuya dönecekse*/
.custom-card.featured:hover {
    background-color: #cc5200 !important;
}
/* Rotaları Keşfet (Beyazdan Turuncuya) */
.btn-discover:hover {
    background-color: #cc5200 !important;
    color: #fff !important;
    border-color: #cc5200 !important;
    animation: motorShake 0.3s ease-in-out 1; /* Bir kez sarsılma */
}

/* Festival Kayıt (Siyah/Şeffaftan Turuncuya) */
.btn-register:hover {
    background-color: #cc5200 !important;
    color: #fff !important;
    border-color: #cc5200 !important;
    animation: motorShake 0.3s ease-in-out 1;
}
.club-intro-link:hover {
    color: #ffffff !important;
    animation: motorShake 0.4s ease-in-out infinite; /* Üzerinde durdukça sallanır */
    padding-left: 5px; /* Ok işaretinin hafif sağa kayması için */
}
.footer-link:hover {
    color: #cc5200 !important;
    animation: motorShake 0.4s ease-in-out infinite;
    display: inline-block; /* Animasyonun sağlıklı çalışması için block olmalı */
}
/* WordPress PHP Menüsü Hover (Üzerine gelindiğinde sönük turuncu ve sallanma) */
.menu-item a:hover {
    color: #cc5200 !important;
    animation: motorShake 0.4s ease-in-out infinite;
    display: inline-block;
}
/* TAM EKRAN OVERLAY MENÜ PANELİ */
.fullscreen-menu { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100vh !important; 
    background-color: rgba(13, 13, 13, 0.98) !important; 
    z-index: 9995 !important; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    opacity: 0 !important; 
    visibility: hidden !important; 
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s ease !important; 
}

.fullscreen-menu.is-open { 
    opacity: 1 !important; 
    visibility: visible !important; 
}

/* Ortalı Menü Listesi */
.fullscreen-menu-inner { 
    text-align: center !important; 
    width: 100% !important;
}

.fullscreen-menu ul { 
    list-style: none !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 30px !important; 
    padding: 0 !important;
    margin: 0 !important;
}

/* Menü Linklerinin Orijinal ve Hover Hali */
.fullscreen-menu ul li a { 
    color: #ffffff !important; 
    font-size: clamp(28px, 5vw, 46px) !important; 
    font-weight: 900 !important; 
    text-transform: uppercase !important; 
    text-decoration: none !important; 
    letter-spacing: 2px !important; 
    transition: color 0.2s ease !important; 
    display: inline-block !important; 
}

/* HOVER DURUMU: Turuncu Renk ve Sallanma Efekti */
.fullscreen-menu ul li a:hover { 
    color: #ff6a00 !important; 
    animation: menuShake 0.3s infinite linear !important;
}

/* MOTORCU RUHUNA UYGUN AGRESİF SAĞA SOLA SALLANMA ANİMASYONU */
@keyframes menuShake {
    0% { transform: translate(0, 0) skewX(0deg); }
    20% { transform: translate(-3px, 1px) skewX(-3deg); }
    40% { transform: translate(2px, -1px) skewX(3deg); }
    60% { transform: translate(-2px, -1px) skewX(-1deg); }
    80% { transform: translate(3px, 1px) skewX(2deg); }
    100% { transform: translate(0, 0) skewX(0deg); }
}

/* SAĞ ÜSTTEKİ KAPATMA (X) BUTONU KUTUSU */
.nav-custom .burger-menu.is-active {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    padding: 12px !important;
    border-radius: 4px !important; 
}
/* Hamburger ikonunu menüden ayırıp sağa sabitleyen CSS */
.burger-menu {
    position: absolute !important;
    right: 8% !important;
    top: 35px !important;
    z-index: 9999 !important;
}

/* Menü listesini ikonun üstüne binmemesi için biraz daraltalım */
@media (min-width: 992px) {
    .nav-custom ul {
        margin-right: 80px !important; /* İletişim linki ile ikon arasına boşluk bırakır */
    }
}
/* HARİTA TAŞMA SORUNUNU GİDEREN KOD */
.map-wrapper {
    width: 100% !important;
    height: 250px !important; /* Yüksekliği sabitliyoruz */
    overflow: hidden !important;
    border-radius: 8px !important; /* Kenarları yuvarlatır */
    margin-top: 15px !important;
}

.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* Temanın kendi kendine ürettiği o kaçak düz beyaz ENDURORDU yazısını ve arkasındaki logoları uçurur */
.site-header .logo, 
.header-v1 .logo,
header [class*="logo"] {
    display: none !important;
}

/* En üst köşede beliren o temanın orijinal hamburger menü çizgilerini tamamen gizler */
.header-v1 .menu-toggle,
.site-header .burger,
.site-header .toggle-menu,
header button[class*="menu"],
header div[class*="burger"] {
    display: none !important;
}