/* MacSever Genel Stil Dosyası */

:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-rgb: 220, 53, 69;
    --secondary-color: #2c3e50;
    --success-color: #dc3545;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-light: #ecf0f1;
    --gray-medium: #7f8c8d;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
}

/* Hero olmayan sayfalar için padding */
.page-content {
    padding-top: 80px;
}

/* Takım Kartları Stilleri */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #dc3545;
}

.team-logo img {
    max-height: 64px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Stadyum Kartları */
.stadium-card {
    transition: all 0.3s ease;
}

.stadium-card .card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stadium-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #dc3545;
}

.stadium-card .card-header {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* Sayfa başlıkları için margin düzeltmesi */
.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
}

.container {
    max-width: 1200px;
}

/* Container ve section padding ayarları */
.container:not(.hero .container) {
    padding-top: 1rem;
}

/* Boşluk düzeltmeleri */
.main-content {
    min-height: calc(100vh - 80px);
}

/* Navbar yükseklik düzeltmesi */
.navbar {
    padding: 1rem 0;
}

.team-card:hover .team-logo img {
    transform: scale(1.1);
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.team-card:hover .logo-placeholder {
    transform: scale(1.1);
}

.team-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Hero Section - Eski Güzel Banner */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../images/audience-1866738_1280.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Sticky header offset'ini kaldır */
    padding-top: 80px; /* Header yüksekliği kadar padding ekle */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
    font-weight: 500;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.6);
    background: linear-gradient(45deg, #c82333, #dc3545);
    color: white;
    text-decoration: none;
    scale: 1.05;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

/* Form Styles */
.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--light-bg);
    transition: var(--transition);
    height: 48px; /* Eşit yükseklik */
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Hızlı Arama Özel Stiller */
.search-section .form-label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-section .btn-success {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    font-weight: 600;
    height: 48px; /* Diğer form elemanları ile aynı yükseklik */
    transition: all 0.3s ease;
}

.search-section .btn-success:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d5f4e6;
    color: var(--success-color);
    border: 1px solid #a3e4c6;
}

.alert-danger {
    background: #fadbd8;
    color: var(--danger-color);
    border: 1px solid #f1948a;
}

.alert-warning {
    background: #fef5e7;
    color: var(--warning-color);
    border: 1px solid #f8c471;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-medium);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Responsive Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .col-md-12 { flex: 0 0 100%; }
    .col-md-6 { flex: 0 0 100%; }
    .col-md-4 { flex: 0 0 100%; }
    .col-md-3 { flex: 0 0 100%; }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    /* Hero Section Mobile */
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .hero-container {
        padding: 1rem;
    }
}

/* Bootstrap Button Overrides - Yeşil Tema */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Kırmızı Arka Plan + Beyaz Yazı Kuralları */
.bg-danger,
.bg-primary,
.card-header.bg-danger,
.filter-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
}

.bg-danger .form-control,
.bg-danger .form-select,
.bg-primary .form-control,
.bg-primary .form-select,
.filter-card .form-control,
.filter-card .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.bg-danger .form-control::placeholder,
.bg-danger .form-select::placeholder,
.bg-primary .form-control::placeholder,
.bg-primary .form-select::placeholder,
.filter-card .form-control::placeholder,
.filter-card .form-select::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-danger .form-control:focus,
.bg-danger .form-select:focus,
.bg-primary .form-control:focus,
.bg-primary .form-select:focus,
.filter-card .form-control:focus,
.filter-card .form-select:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.bg-danger .form-select option,
.bg-primary .form-select option,
.filter-card .form-select option {
    background: #495057 !important;
    color: white !important;
}

.bg-danger .form-label,
.bg-primary .form-label,
.filter-card .form-label {
    color: white !important;
    font-weight: 500;
}

.bg-danger h1,
.bg-danger h2,
.bg-danger h3,
.bg-danger h4,
.bg-danger h5,
.bg-danger h6,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    color: white !important;
}

.bg-danger p,
.bg-danger span,
.bg-danger div,
.bg-primary p,
.bg-primary span,
.bg-primary div {
    color: white !important;
}

.bg-danger .text-muted,
.bg-primary .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Badge'ler için */
.bg-danger .badge,
.bg-primary .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Kırmızı temada ikonlar */
.bg-danger i,
.bg-primary i {
    color: white !important;
}
