/* 
 * Bilet Satış Sistemi - Modern Tasarım
 * Ana Renk: #e91e63 (Pembe-Kırmızı)
 * Arka Plan: #121212 (Koyu Gri/Siyah)
 * Tasarım: Modern, yuvarlak köşeli, dikkat çekici
 */

/* Temel Sıfırlama ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #e91e63;
    --primary-light: #f48fb1;
    --primary-dark: #c2185b;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --surface-light: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-disabled: rgba(255, 255, 255, 0.5);
    --border-radius: 12px;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.6);
}

/* Header ve Navigasyon */
header {
    background-color: var(--surface-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform var(--transition-speed) ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* Hero Bölümü */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(18, 18, 18, 0.1)"/></svg>');
    background-size: cover;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-section .btn {
    padding: 15px 40px;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: white;
    color: var(--primary-color);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Etkinlik Bölümü */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: 1;
    pointer-events: none;
}

.event-card:hover::before {
    opacity: 1;
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-details {
    padding: 20px;
    position: relative;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color var(--transition-speed) ease;
}

.event-card:hover .event-details h3 {
    color: var(--primary-light);
}

.event-details p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-disabled);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta span:first-child {
    color: var(--primary-light);
    font-weight: 600;
}

.event-details .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    border: none;
    transition: all var(--transition-speed) ease;
}

.event-details .btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    transform: translateY(-2px);
}

/* Uyarı Mesajları */
.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-disabled);
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform var(--transition-speed) ease;
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-section .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card {
    animation: fadeIn 0.5s ease forwards;
}

.events-grid .event-card:nth-child(2) {
    animation-delay: 0.1s;
}

.events-grid .event-card:nth-child(3) {
    animation-delay: 0.2s;
}

.events-grid .event-card:nth-child(4) {
    animation-delay: 0.3s;
}

.events-grid .event-card:nth-child(5) {
    animation-delay: 0.4s;
}

.events-grid .event-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Liderlik Tablosu Stilleri */
.event-selector {
    margin: 2rem 0;
}

.event-selector select {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    border: 1px solid var(--surface-light);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.leaderboard-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-color);
    box-shadow: var(--card-shadow);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-light);
    color: var(--text-primary);
}

.leaderboard-table th {
    background-color: var(--surface-light);
    font-weight: 600;
}

.leaderboard-table tr:hover {
    background-color: var(--surface-light);
}

.leaderboard-table tr:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.2); /* Altın rengi */
}

.leaderboard-table tr:nth-child(2) {
    background-color: rgba(192, 192, 192, 0.2); /* Gümüş rengi */
}

.leaderboard-table tr:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.2); /* Bronz rengi */
}

/* Sayfalama Stilleri */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}
