* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    flex: 1;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.title svg {
    color: #fbbf24;
    width: 32px;
    height: 32px;
}

.subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 400;
}

.last-update {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.last-update span {
    color: #22d3ee;
    font-weight: 600;
}

/* Mode Indicator */
.mode-indicator {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

.mode-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mode-badge.simple {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: 2px solid #fbbf24;
}

.mode-badge.advanced {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 2px solid #34d399;
}

.mode-badge svg {
    width: 20px;
    height: 20px;
}

.mode-details {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Info Card */
.info-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.info-content p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #fff;
}

.info-content strong {
    font-weight: 700;
}

.info-content span {
    font-weight: 700;
    color: #fbbf24;
}

.info-description {
    font-size: 0.85rem;
    color: #e9d5ff;
    font-weight: 400;
}

/* Section */
.section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header svg {
    width: 28px;
    height: 28px;
    color: #fbbf24;
}

.section-description {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Predictions Container */
.predictions-container {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.prediction-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    animation: fadeIn 0.5s ease-in;
    border: 2px solid #fcd34d;
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prediction-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prediction-time svg {
    width: 24px;
    height: 24px;
    color: #0f172a;
}

.prediction-badge {
    background: #0f172a;
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.prediction-info {
    margin-bottom: 12px;
}

.prediction-info p {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 4px;
}

.prediction-users {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-badge {
    background: rgba(15, 23, 42, 0.8);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Optimal Slots */
.slots-container {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.slot-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in;
    border: 2px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.slot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slot-card.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
}

.slot-card.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
}

.slot-card.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #f87171;
}

.slot-time {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot-time svg {
    width: 28px;
    height: 28px;
}

.slot-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    font-weight: 600;
}

.slot-warning {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot-warning svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.slot-warning span {
    font-size: 0.8rem;
    color: #fbbf24;
    font-weight: 700;
}

/* 1. Sayfa Süresi Göstergesi */
.first-page-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.first-page-duration svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.first-page-duration span {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.first-page-duration strong {
    font-weight: 800;
    color: #fbbf24;
}

.first-page-duration.warning {
    background: rgba(239, 68, 68, 0.3);
    border-left-color: #ef4444;
}

.first-page-duration.warning strong {
    color: #fca5a5;
}

/* Best Slot Highlight */
.slot-card.best-slot {
    position: relative;
    animation: pulse 2s infinite;
}

.slot-card.best-slot::before {
    content: "⭐ EN İYİ";
    position: absolute;
    top: -12px;
    right: 10px;
    background: #fbbf24;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.5);
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #94a3b8;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .predictions-container,
    .slots-container {
        grid-template-columns: 1fr;
    }
    
    .slots-container {
        overflow-x: auto;
        display: flex;
        padding-bottom: 10px;
    }
    
    .slot-card {
        min-width: 200px;
    }
}

