/* Global Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 160px 0 80px;
    /* Increased top padding for fixed navbar */
    overflow: hidden;
    isolation: isolate;
    /* Create new stacking context */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/tekvando.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Background removed to clear blue tint */
    background: transparent;
    z-index: 1;
}

.hero-gradient {
    display: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 35, 81, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Ana Konteynır Düzeni */
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    /* padding: 60px 5% 40px; Kept padding but removed min-height to rely on parent hero flex alignment */
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    /* Reduced spacing */
}

.hero-badge {
    margin-bottom: var(--space-6);
}

/* Başlık Stilleri */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0a2351;
    margin-bottom: 20px;
}

.text-brush {
    color: #d32f2f;
    position: relative;
    display: inline-block;
    font-style: italic;
}

.text-accent {
    background: linear-gradient(90deg, #0a2351, #1e4ba1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: #475569;
    /* Darker gray for better readability */
    max-width: 500px;
    margin: 0 auto 32px;
    /* Increased bottom margin */
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 auto 32px;
    }
}

/* Enhanced Hero Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Explicit gap between buttons */
    justify-content: center;
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 10;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-blue, #0a2351) 0%, var(--primary-blue-light, #1e4ba1) 100%);
    color: #ffffff;
    border: none;
    /* Softer shadow */
    box-shadow: 0 4px 14px rgba(0, 71, 160, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    padding: 16px 32px;
    /* Ensure padding is sufficient */
    border-radius: 12px;
    /* Modern border radius */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 71, 160, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.6);
    /* More visible background */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(10, 35, 81, 0.15);
    /* Darker border for visibility */
    color: #0a2351;
    /* Dark text for contrast */
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #0a2351;
    transform: translateY(-2px);
}

/* --- Yüzen Kartlar (Floating Cards) Düzenlemesi --- */
.floating-stat-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    z-index: 10;
}

.floating-stat-card.stat-1 {
    top: 50px;
    right: -20px;
    border-right: 4px solid #d32f2f;
    animation: float-card-1 6s ease-in-out infinite;
}

.floating-stat-card.stat-2 {
    bottom: 40px;
    left: 20px;
    border-left: 4px solid #4caf50;
    animation: float-card-2 5s ease-in-out infinite;
}

.floating-icon {
    font-size: 1.2rem;
}

.floating-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0a2351;
}

@keyframes float-card-1 {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes float-card-2 {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.floating-icon {
    font-size: var(--text-lg);
}

/* Tatami Pattern Background */
.hero-tatami {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(0, 45, 98, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 45, 98, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 45, 98, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 45, 98, 0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.5;
}

/* Floating Belts Decoration */
.floating-belt {
    position: absolute;
    width: 200px;
    height: 20px;
    border-radius: 10px;
    opacity: 0.1;
}

.floating-belt.belt-1 {
    top: 15%;
    right: 10%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transform: rotate(-15deg);
    animation: float-belt 8s ease-in-out infinite;
}

.floating-belt.belt-2 {
    bottom: 20%;
    left: 5%;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
    transform: rotate(10deg);
    animation: float-belt 10s ease-in-out infinite reverse;
}

.floating-belt.belt-3 {
    top: 60%;
    right: 5%;
    background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.5));
    transform: rotate(-5deg);
    animation: float-belt 12s ease-in-out infinite;
    width: 120px;
    height: 12px;
}

@keyframes float-belt {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-20px) rotate(-10deg);
    }
}

/* Glowing Badge */
.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Keep old classes for compatibility */
.hero-stats {
    display: none;
}

.visual-card {
    display: none;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Özellikler Genel Konteynır --- */
.features-premium {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

.features-bg {
    display: none;
}

.features-pattern {
    display: none;
}

.section-header-premium {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    background: rgba(10, 35, 81, 0.1);
    color: #0a2351;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-top: 15px;
}

.section-title-premium .highlight {
    color: #d32f2f;
}

.section-description-premium {
    font-size: var(--text-lg);
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Izgara (Grid) Yapısı --- */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

/* --- Özellik Kartı (Feature Card) --- */
.feature-card-premium {
    background: white;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.feature-card-premium::before {
    display: none;
}

.feature-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(10, 35, 81, 0.1);
    border-color: rgba(10, 35, 81, 0.1);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
}

/* --- İkon ve Parlama Efektleri --- */
.feature-icon-premium {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}



/* İkon Renk Grupları */
.feature-icon-premium.icon-blue {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
}

.feature-icon-premium.icon-red {
    background: linear-gradient(135deg, #d32f2f, #ff5252);
}

.feature-icon-premium.icon-green {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    background-color: transparent !important;
}

.feature-icon-premium.icon-purple {
    background: linear-gradient(135deg, #6a1b9a, #9c27b0);
    background-color: transparent !important;
}

.feature-icon-premium.icon-orange {
    background: linear-gradient(135deg, #ef6c00, #ff9800);
    background-color: transparent !important;
}

.feature-icon-premium.icon-teal {
    background: linear-gradient(135deg, #00695c, #009688);
    background-color: transparent !important;
}

.feature-icon-premium svg {
    position: relative;
    z-index: 1;
}

/* --- Metin Detayları --- */
.feature-title-premium {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2351;
    margin-bottom: 15px;
}

.feature-desc-premium {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-footer-premium {
    display: flex;
    align-items: center;
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(10, 35, 81, 0.05);
    color: #0a2351;
    border-radius: 50px;
}

/* Keep old classes for compatibility */
.features {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: none;
}

.feature-card {
    display: none;
}

.feature-icon {
    display: none;
}

.feature-icon.bg-blue,
.feature-icon.bg-red,
.feature-icon.bg-green,
.feature-icon.bg-purple,
.feature-icon.bg-orange,
.feature-icon.bg-teal {
    background: transparent;
}

/* How It Works - Premium Redesign */
.how-it-works {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

@media (min-width: 1024px) {
    .steps-container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
    }
}

.step-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    max-width: 350px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(10, 35, 81, 0.08);
    border-color: rgba(10, 35, 81, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(10, 35, 81, 0.25);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a2351;
    margin-bottom: 15px;
}

.step-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin: -10px 0;
    transform: rotate(90deg);
}

@media (min-width: 1024px) {
    .step-connector {
        transform: rotate(0);
        margin: 60px -15px 0;
        /* Align with top part of cards */
        min-width: 60px;
    }
}

/* CTA Section */
/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 5;
}

.cta-card {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 35, 81, 0.25);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-decoration {
    position: absolute;
    right: -20px;
    bottom: -60px;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
}

.cta-icon {
    font-size: 250px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.btn-cta-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: white;
    color: #0a2351;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
    color: #0a2351;
}

.btn-cta-premium svg {
    transition: transform 0.3s ease;
}

.btn-cta-premium:hover svg {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-decoration {
        right: 50%;
        transform: translateX(50%) rotate(-15deg);
        bottom: -40px;
        opacity: 0.1;
    }

    .cta-icon {
        font-size: 180px;
    }
}

/* ========================================
   TOURNAMENTS SECTION
   ======================================== */
.tournaments-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tournaments-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    /* Centering the items */
}

.tournaments-carousel::-webkit-scrollbar {
    display: none;
}

/* Tournament Card */
.tournament-card-premium {
    flex: 0 0 320px;
    background: white;
    border-radius: 24px;
    padding: 0;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: start;
    overflow: hidden;
}

.tournament-card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(10, 35, 81, 0.12);
}

/* Grand Prix Ribbon */
.tournament-rank-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Date Badge */
.tournament-date {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tournament-date .day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.tournament-date .month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Grand Prix Date Override */
.tournament-card-premium.grand-prix .tournament-date {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

/* Tournament Info */
.tournament-info {
    padding: 25px;
}

.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.rank-badge.gp {
    background: linear-gradient(135deg, #d32f2f, #ff5252);
    color: white;
}

.rank-badge.g1 {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
}

.rank-badge.g2 {
    background: rgba(10, 35, 81, 0.1);
    color: #0a2351;
}

.tournament-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2351;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tournament-location {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.tournament-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Find Stay Button */
.btn-find-stay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 50px);
    margin: 0 25px 25px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 35, 81, 0.2);
}

.btn-find-stay:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 35, 81, 0.3);
}

.tournament-card-premium.grand-prix .btn-find-stay {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}

.tournament-card-premium.grand-prix .btn-find-stay:hover {
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

/* Tournaments Footer */
.tournaments-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #0a2351;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(10, 35, 81, 0.1);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #0a2351;
    color: white;
    border-color: #0a2351;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 35, 81, 0.2);
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(5px);
}

/* Force Padding for Navbar Fix */
.hero {
    padding-top: 200px !important;
    align-items: flex-start !important;
    /* Ensure content starts from top padding */
}

.tournament-card-premium.grand-prix { /* mavi/altın */
}

.tournament-card-premium.open { /* açık ton */
}

.tournament-card-premium.championship { /* kırmızı */
}

.tournament-card-premium.junior { /* yeşil */
}
