﻿/* ============================================
   EchoPulsefit - Custom Styles
   A vibrant, energetic design for runners
   ============================================ */

:root {
    /* Primary Colors - Energetic Orange/Coral Theme */
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8F66;
    
    /* Accent Colors */
    --accent: #00D9FF;
    --accent-glow: rgba(0, 217, 255, 0.3);
    
    /* Background - Deep Dark with subtle warmth */
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A1A;
    --bg-card-hover: #252525;
    --bg-gradient: linear-gradient(135deg, #0D0D0D 0%, #1A1612 50%, #0D0D0D 100%);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    
    /* Status Colors */
    --success: #00E676;
    --warning: #FFD600;
    --danger: #FF5252;
    
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing & Sizing */
    --navbar-height: 70px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* ============================================
   Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Admin Panel Layout - Responsive
   ============================================ */

.admin-page {
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.admin-sidebar .nav-link {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 12px;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary) !important;
}

.admin-sidebar .nav-link.active {
    background: var(--primary);
    color: white !important;
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    min-height: calc(100vh - 70px);
    width: calc(100% - 260px);
}

.admin-content h1 {
    color: var(--text-primary) !important;
    font-size: 1.75rem !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-content h2 {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
}

.admin-content h3, .admin-content h4, .admin-content h5, .admin-content h6 {
    color: var(--text-primary) !important;
}

.admin-content h5 {
    font-size: 1.1rem;
}

/* Admin Tables */
.admin-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.admin-content table {
    width: 100%;
    table-layout: fixed;
    min-width: 800px;
}

.admin-content table th,
.admin-content table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Share Code column */
.admin-content table th:nth-child(1),
.admin-content table td:nth-child(1) {
    width: 10%;
    min-width: 90px;
}

/* Kullanıcı column */
.admin-content table th:nth-child(2),
.admin-content table td:nth-child(2) {
    width: 15%;
    min-width: 120px;
}

/* Başlangıç column */
.admin-content table th:nth-child(3),
.admin-content table td:nth-child(3) {
    width: 13%;
    min-width: 110px;
}

/* Bitiş column */
.admin-content table th:nth-child(4),
.admin-content table td:nth-child(4) {
    width: 13%;
    min-width: 110px;
}

/* Mesafe column */
.admin-content table th:nth-child(5),
.admin-content table td:nth-child(5) {
    width: 10%;
    min-width: 80px;
}

/* Süre column */
.admin-content table th:nth-child(6),
.admin-content table td:nth-child(6) {
    width: 10%;
    min-width: 80px;
}

/* Reaksiyonlar column */
.admin-content table th:nth-child(7),
.admin-content table td:nth-child(7) {
    width: 10%;
    min-width: 80px;
    text-align: center;
}

/* İşlem column */
.admin-content table th:nth-child(8),
.admin-content table td:nth-child(8) {
    width: 8%;
    min-width: 70px;
    text-align: center;
}

/* Admin Cards */
.admin-content .card {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary);
}

.admin-content .card-header {
    background-color: var(--bg-card) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary) !important;
}

.admin-content .card-body {
    color: var(--text-primary);
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 100%;
    color: var(--text-primary) !important;
    background-color: transparent;
}

.table th {
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table td { 
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table-hover tbody tr:hover {
    background-color: var(--bg-card-hover) !important;
}

.table-light {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

.table-light th {
    background-color: var(--bg-dark) !important;
    color: var(--text-primary) !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
    
    /* Mobile Toggle Button */
    .admin-toggle-btn {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 101;
        background: var(--primary);
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
        cursor: pointer;
        display: block;
    }
}

@media (min-width: 993px) {
    .admin-toggle-btn {
        display: none;
    }
}

/* Tablet Optimization */
@media (max-width: 768px) {
    .admin-content h1 {
        font-size: 1.75rem;
    }
    
    .admin-content h2 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 8px 12px;
    }
    
    /* Stats Cards - Stack on Mobile */
    .admin-content .row.g-4 {
        gap: 1rem !important;
    }
    
    .admin-content .col-md-3,
    .admin-content .col-md-4,
    .admin-content .col-md-6 {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .admin-content {
        padding: 15px 10px;
    }
    
    .admin-content h1 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    /* Hide less important columns on mobile */
    .table .d-none-mobile {
        display: none;
    }
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.03) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.text-accent {
    color: var(--accent);
}

.text-primary-color {
    color: var(--primary);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.8rem;
}

.brand-text {
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.btn-register {
    background: var(--primary);
    color: var(--text-primary) !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-link.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ============================================
   Feature Cards
   ============================================ */

.features-section {
    padding: 6rem 0;
    background: var(--bg-gradient);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 107, 53, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Forms
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: calc(var(--navbar-height) + 2rem);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h2 {
    margin-bottom: 0.5rem;
}

.auth-title p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm); 
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Validation */
.field-validation-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-summary-errors {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--danger);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ============================================
   Live Activity Page
   ============================================ */

.live-container {
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

.map-container {
    height: calc(100vh - var(--navbar-height) - 200px);
    min-height: 400px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.runner-info-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.runner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.runner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.runner-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.runner-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success);
}

.runner-status .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
}

.stat-box .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reaction Buttons */
.reactions-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.reactions-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.reactions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.reaction-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.reaction-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
}

.reaction-btn:active {
    transform: scale(0.95);
}

.reaction-btn.clicked {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reaction-btn .emoji {
    font-size: 1.75rem;
}

.reaction-btn .count {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.reaction-btn .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Reaction specific colors */
.reaction-btn.applause:hover { border-color: #FFD700; }
.reaction-btn.bravo:hover { border-color: #9B59B6; }
.reaction-btn.fire:hover { border-color: #E74C3C; }
.reaction-btn.heart:hover { border-color: #E91E63; }
.reaction-btn.thumbsup:hover { border-color: #3498DB; }

/* Activity Ended State */
.activity-ended {
    text-align: center;
    padding: 3rem;
}

.activity-ended i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.activity-ended h3 {
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-heading i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Market Badges */
.app-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.market-link {
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.market-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.store-badge {
    height: 60px;
    width: 180px;
    transition: all 0.3s ease;
    display: block;
}

/* APK Download Button */
.btn-apk-download {
    background: linear-gradient(135deg, #34A853 0%, #2D8E45 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
}

.btn-apk-download:hover {
    background: linear-gradient(135deg, #2D8E45 0%, #34A853 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 168, 83, 0.5);
    color: white;
}

.btn-apk-download i {
    font-size: 1.1rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reactions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Harita tablet'te */
    .map-container {
        height: 400px;
        min-height: 350px;
    }
    
    /* Footer responsive */
    .footer-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .app-badges {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .store-badge {
        height: 50px;
        width: 150px;
    }
}

@media (max-width: 576px) {
    .reactions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* Harita mobilde daha küçük */
    .map-container {
        height: 300px;
        min-height: 250px;
    }
    
    /* Runner info panel daha kompakt */
    .runner-info-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-box .value {
        font-size: 1.2rem;
    }
    
    .stat-box .label {
        font-size: 0.7rem;
    }
    
    /* Tepki paneli mobilde daha kompakt */
    .reactions-panel {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .reactions-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .reaction-btn {
        padding: 0.8rem 0.5rem;
    }
    
    .reaction-btn .emoji {
        font-size: 1.8rem;
    }
    
    .reaction-btn .label {
        font-size: 0.7rem;
    }
    
    .reaction-btn .count {
        font-size: 0.9rem;
    }
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered animations */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }/* Settings Page */
.settings-container {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.settings-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.settings-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.settings-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.settings-body {
    padding: 1.5rem;
}

.info-text {
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.form-check-label {
    color: var(--text-primary);
}

/* Danger Zone - Hesap Silme */
.settings-card.border-danger {
    border: 2px solid var(--danger);
}

.settings-card.border-danger .settings-header.bg-danger {
    background: var(--danger) !important;
    color: white !important;
}

.settings-card.border-danger .settings-header h5 {
    color: white !important;
}

/* ============================================
   Delete Account Page - Anonymous
   ============================================ */

.delete-account-page {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.delete-account-card {
    background: var(--bg-card);
    border: 2px solid var(--danger);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.delete-account-header {
    text-align: center;
    margin-bottom: 2rem;
}

.delete-account-header .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--danger), #d32f2f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.4);
}

.delete-account-header .icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.delete-account-header .title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.delete-account-header .subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

.data-warning {
    background: rgba(255, 82, 82, 0.05);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
}

.data-warning h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.data-list li i {
    font-size: 1.2rem;
}

.info-box {
    background: rgba(255, 214, 0, 0.05);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}

.info-box i {
    color: var(--warning);
}

/* Delete Account Form */
.delete-account-page .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.delete-account-page .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
}

.delete-account-page .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--danger);
    box-shadow: 0 0 0 0.25rem rgba(255, 82, 82, 0.25);
    color: var(--text-primary);
}

.delete-account-page .form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Custom Map Marker (Profile Image)
   ============================================ */

.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    border-radius: 50% !important;
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6),
                0 4px 10px rgba(0, 0, 0, 0.4) !important;
    animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.6),
                    0 4px 10px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.9),
                    0 4px 15px rgba(0, 0, 0, 0.6);
    }
}



