/* Bloomberg-Style Range Predictor UI */

:root {
    --bg-primary: #0A0E27;
    --bg-secondary: #1A1F3A;
    --bg-hover: #252B4A;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --border: #374151;
    --accent-blue: #3B82F6;
    --accent-orange: #FF6B35;
    --success: #10B981;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-blue);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    border-radius: 6px;
}

.header-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Filters */
.filters {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

.btn-secondary.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Search */
.search-box {
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Prediction Card */
.prediction-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.prediction-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ticker-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.timeframe-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-hover);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.reference-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.range-prediction {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.range-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-orange);
}

/* Range Bar */
.range-bar {
    margin: 1rem 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.range-low {
    color: var(--danger);
}

.range-high {
    color: var(--success);
}

.range-visual {
    height: 8px;
    background: linear-gradient(90deg, var(--danger), var(--text-secondary), var(--success));
    border-radius: 4px;
    position: relative;
}

.range-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

/* Metadata */
.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timestamp {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-hover);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .header-stats {
        display: none;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* Pagination Styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.pagination button {
    min-width: 100px;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 200px;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Pagination - Mobile Responsive */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination button {
        width: 100%;
        min-width: auto;
    }
    
    #pageInfo {
        width: 100%;
        min-width: auto;
        order: -1; /* Page info'yu en üste taşı */
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 6px;
    flex-shrink: 0;
}

.footer-logo span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-info {
    text-align: right;
}

.powered-by {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
}

.powered-by strong {
    color: var(--primary);
    font-weight: 600;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

