/**
 * Altın Takip - Ana Site Stilleri
 * Beyaz-Mavi Tema
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1e3a5f;
    --primary: #2980b9;
    --primary-light: #3498db;
    --accent: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #adb5bd;
    --gray-700: #495057;
    --gray-900: #212529;
    --shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 10px 40px rgba(30, 58, 95, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER BAND === */
.header-band {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-band .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-title h1 a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title h1 a::before {
    content: '🥇';
}

/* === HEADER PRICES === */
.header-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-price-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-price-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.price-label {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* Fiyat değişim animasyonları */
.header-price-item.price-up {
    background: rgba(39, 174, 96, 0.8) !important;
    animation: priceFlash 0.5s ease;
}

.header-price-item.price-down {
    background: rgba(231, 76, 60, 0.8) !important;
    animation: priceFlash 0.5s ease;
}

@keyframes priceFlash {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === REKLAM ALANI === */
.reklam-alani {
    padding: 20px 0;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.reklam-gorsel {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.reklam-gorsel:hover {
    transform: scale(1.01);
}

/* === MAIN CONTENT === */
.main-content {
    padding: 40px 0;
}

/* === PRICE SECTION === */
.price-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.update-time {
    font-size: 13px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
}

/* === PRICE TABLE === */
.price-table-container {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead {
    background: var(--gray-50);
}

.price-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.price-table th:nth-child(2),
.price-table th:nth-child(3) {
    text-align: right;
}

.price-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
}

.price-table td:first-child {
    font-weight: 600;
    color: var(--primary-dark);
}

.price-table td.price-cell {
    text-align: right;
    font-weight: 600;
    font-family: 'Poppins', monospace;
    color: var(--gray-900);
}

.price-table tbody tr {
    transition: background 0.2s ease;
}

.price-table tbody tr:hover {
    background: var(--gray-50);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Loading State */
.loading-cell {
    text-align: center !important;
    color: var(--gray-500);
    padding: 40px !important;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 5px 0;
}

.footer-note {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 10px !important;
}

/* === ALERTS === */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-band .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-prices {
        justify-content: center;
    }
    
    .header-price-item {
        min-width: 80px;
        padding: 6px 12px;
    }
    
    .price-label {
        font-size: 10px;
    }
    
    .price-value {
        font-size: 14px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .price-table th,
    .price-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title h1 {
        font-size: 20px;
    }
    
    .header-price-item {
        min-width: 70px;
    }
    
    .price-table th:first-child,
    .price-table td:first-child {
        min-width: 120px;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

