/* Theme Timeline CSS - Beautiful timeline-based theme selector */

.theme-timeline-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
}

.theme-category-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: var(--spacing-md);
}

.theme-category-tab {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-category-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.theme-category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.theme-timeline {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.theme-timeline::-webkit-scrollbar {
    height: 8px;
}

.theme-timeline::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.theme-timeline::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.theme-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.theme-card {
    min-width: 180px;
    max-width: 180px;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(40, 40, 55, 0.95), rgba(30, 30, 45, 0.95));
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card.selected {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.theme-card.selected::before {
    opacity: 1;
}

.theme-icon {
    font-size: 3em;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    transition: transform 0.3s ease;
}

.theme-card:hover .theme-icon {
    transform: scale(1.1) rotate(5deg);
}

.theme-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-era {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.theme-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.theme-badge.unlocked {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.theme-badge.locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    border: 1px solid var(--border-primary);
}

.theme-badge.premium {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.theme-details {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 255, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: fadeIn 0.4s ease-out;
}

.theme-details h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.theme-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.theme-details .theme-style-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.theme-style-item {
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
}

.theme-style-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.theme-style-value {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.theme-use-button {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-weight: 700;
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.theme-use-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.theme-use-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.theme-empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.theme-empty-state-icon {
    font-size: 4em;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-timeline-container {
        padding: var(--spacing-md);
    }
    
    .theme-card {
        min-width: 140px;
        max-width: 140px;
    }
    
    .theme-category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .theme-details .theme-style-info {
        grid-template-columns: 1fr;
    }
}

