/* Genel Stiller */
:root {
    --primary-color: #0F2B53;
    --secondary-color: #215D2D;
    --danger-color: #6A0909;
    --success-color: #215D2D;
    --accent-light: #F2F0E2;
    --accent-dark: #6A0909;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Bölümü */
.hero-section {
    background: linear-gradient(135deg, #6A0909 0%, #2F2F2F 100%) !important;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 300;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Geri Sayaç */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.countdown-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kurulu Kartları */
.board-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.board-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.board-card .card-body {
    padding: 1.5rem;
}

/* İstatistikler */
.stat-box {
    padding: 2rem;
    background: linear-gradient(135deg, #0F2B53 0%, #215D2D 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    margin: 0;
}

/* Form Stilleri */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 43, 83, 0.25);
}

.btn-primary {
    background-color: #215D2D;
    border-color: #215D2D;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0F2B53;
    border-color: #0F2B53;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 93, 45, 0.3);
}

/* Navigasyon */
.navbar-brand {
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
}

.navbar .nav-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.4rem 0.5rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 1px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .dropdown-menu {
    min-width: auto;
    padding: 0.5rem 0;
    background: #0F2B53;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.9);
    transition: all 0.2s;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: #215D2D;
    color: #F2F0E2;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 991px) {
    /* Navbar mobile */
    .navbar-nav {
        flex-wrap: wrap;
    }
    .navbar .nav-link {
        font-size: 0.9rem;
    }
    .navbar-brand .logo-wrapper {
        padding: 4px 10px !important;
    }
    .navbar-brand .logo-wrapper img {
        height: 50px !important;
    }
    .navbar-brand .ms-3 .fw-bold {
        font-size: 0.9rem !important;
    }
    .navbar-brand .ms-3 span:last-child {
        font-size: 0.6rem !important;
    }
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 1rem;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .navbar .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-nav .dropdown-menu {
        background: rgba(255,255,255,0.05);
        border: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile full-width gradient fix */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .navbar,
    footer,
    .hero-section,
    .sponsor-hero,
    section {
        width: 100%;
        max-width: 100vw;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Hero section mobile */
    .hero-section {
        min-height: auto;
        padding: 2rem 0 !important;
    }
    .hero-section .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .col-lg-4 {
        margin-top: 2rem;
    }
    .hero-section .col-lg-4 img {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    /* Buttons */
    .button-group {
        flex-direction: column;
    }
    .button-group .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    /* Countdown mobile */
    .countdown-container {
        gap: 0.75rem;
    }
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    .countdown-value {
        font-size: 1.5rem;
    }
    .countdown-label {
        font-size: 0.7rem;
    }

    /* Theme section mobile */
    .badge.fs-4 {
        font-size: 1.1rem !important;
        padding: 0.5rem 1.25rem !important;
    }

    /* Dean message mobile */
    section .col-lg-4 img.rounded {
        max-width: 200px;
        margin: 0 auto 1.5rem;
        display: block;
    }

    /* Board cards mobile */
    .board-card .card-img-top {
        height: 200px;
    }
    .board-card:hover {
        transform: translateY(-5px);
    }

    /* Stats mobile */
    .stat-box {
        margin-bottom: 1rem;
        padding: 1.25rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .col-md-3.mb-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Contact page mobile */
    .card .card-body {
        padding: 1.25rem !important;
    }
    .card .card-body h4 {
        font-size: 1.1rem;
    }
    .card .card-body .col-md-6 a.fw-semibold {
        font-size: 0.85rem;
        word-break: break-all;
    }

    /* Section spacing */
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    section h2 {
        font-size: 1.5rem;
    }

    /* Footer mobile */
    footer {
        padding: 1.5rem 0 !important;
    }
    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .hero-section h1 {
        font-size: 1.4rem !important;
    }
    .hero-section .lead {
        font-size: 0.9rem;
    }

    .countdown-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .countdown-item {
        min-width: unset;
    }

    .col-md-3.mb-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .board-card .card-img-top {
        height: 180px;
    }

    /* Contact email wrap */
    .card .card-body a[href^="mailto"] {
        font-size: 0.75rem;
        word-break: break-all;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.board-card {
    animation: fadeInUp 0.5s ease;
}

/* Uluslararası Dil Desteği */
[lang="en"] {
    direction: ltr;
}

[lang="tr"] {
    direction: ltr;
}

/* Erişilebilirlik */
.btn-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Geçişler */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Store Kartlar */
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(33, 93, 45, 0.15) !important;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Store Navbar Link */
.nav-link[style*="F2F0E2"]:hover {
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(242, 240, 226, 0.5);
}

/* Navbar brand - prevent logo drop on narrow screens */
.navbar-brand {
    min-width: 0;
    flex-shrink: 1;
    white-space: normal !important;
}

.navbar-brand .ms-3 {
    min-width: 0;
    overflow: hidden;
}

.congress-subtitle {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .congress-subtitle {
        max-width: 140px;
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 360px) {
    .congress-subtitle {
        max-width: 100px;
        font-size: 0.55rem !important;
        letter-spacing: 0.5px !important;
    }
    .navbar-brand .logo-wrapper img {
        height: 40px !important;
    }
}
