/*
Theme Name: Tuncay Sports
Description: Modern and engaging sports website theme for tuncaysports.com
Author: Tuncay Sports Team
Version: 1.0
Text Domain: tuncaysports-theme
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clear default WordPress/theme styles that might conflict */
.site {
    margin: 0 !important;
    padding: 0 !important;
}

.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom CSS Variables */
:root {
    --sports-primary: #1e40af;
    --sports-secondary: #f59e0b;
    --sports-accent: #ef4444;
    --sports-dark: #1f2937;
    --sports-light: #f8fafc;
    --sports-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --sports-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sports-primary);
}

.site-branding a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.primary-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--sports-dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--sports-primary);
    color: white;
}

/* Hero Section - Clean and Prominent */
.hero-section {
    background: var(--sports-gradient);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    background: var(--sports-secondary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--sports-shadow);
}

.hero-cta:hover {
    background: #d97706;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15);
}

/* Container for sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Featured Sports Section */
.featured-sports {
    padding: 80px 0;
    background: var(--sports-light);
    clear: both;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--sports-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--sports-gradient);
    border-radius: 2px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.sport-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--sports-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--sports-gradient);
}

.sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px -5px rgba(0, 0, 0, 0.15);
}

.sport-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.sport-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sports-dark);
}

.sport-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sport-link {
    display: inline-block;
    color: var(--sports-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid var(--sports-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.sport-link:hover {
    background: var(--sports-primary);
    color: white;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: white;
    clear: both;
    width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sports-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--sports-gradient);
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 30px;
}

.news-date {
    color: var(--sports-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sports-dark);
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--sports-primary);
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--sports-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--sports-secondary);
}

/* Stats Section */
.stats-section {
    background: var(--sports-dark);
    color: white;
    padding: 80px 0;
    clear: both;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 2rem;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--sports-secondary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Footer */
.site-footer {
    background: var(--sports-dark);
    color: white;
    padding: 60px 0 30px;
    clear: both;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .sports-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: none;
    }

    .site-header {
        position: relative;
    }

    .hero-section {
        padding: 80px 0 60px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }

    .featured-sports,
    .news-section,
    .stats-section {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sports-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide Twenty Twenty Five theme conflicts */
.wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure no theme conflicts */
main {
    margin: 0 !important;
    padding: 0 !important;
}

article {
    margin: 0 !important;
}

/* Clear floats and positioning issues */
.clear {
    clear: both;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Make sure sections don't overlap */
section {
    position: relative;
    z-index: 1;
    clear: both;
    display: block;
    width: 100%;
}

/* Focus styles for accessibility */
.hero-cta:focus,
.sport-link:focus,
.read-more:focus {
    outline: 3px solid var(--sports-secondary);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}