/* THEME LAB STYLES */
.theme-lab-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #0a0a0a, #111);
    position: relative;
    overflow: hidden;
}

.theme-lab-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.theme-lab-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.theme-lab-header h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00ffff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-lab-header p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.theme-carousel {
    display: flex;
    gap: 30px;
    padding: 20px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
    -ms-overflow-style: none; /* IE and Edge */
}

.theme-carousel::-webkit-scrollbar {
    display: none;
}

.theme-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.theme-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fallback gradient themes if images are missing */
.theme-image.cyberpunk { background: linear-gradient(135deg, #ff00ff, #00ffff); }
.theme-image.minimalist { background: linear-gradient(135deg, #e0e0e0, #ffffff); }
.theme-image.elegant { background: linear-gradient(135deg, #1a1a1a, #ffd700); }
.theme-image.academic { background: linear-gradient(135deg, #004080, #0080ff); }
.theme-image.sports { background: linear-gradient(135deg, #ff4500, #ff8c00); }

.theme-content {
    padding: 20px;
}

.theme-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.theme-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.theme-palette {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.apply-theme-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-card:hover .apply-theme-btn {
    background: #00ffff;
    color: #000;
}

.theme-card.active-theme {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.theme-card.active-theme .apply-theme-btn {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
}

/* Toast Notification */
#theme-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ffff;
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

#theme-toast.show {
    bottom: 30px;
}
/* Theme Palette Colors */
.theme-card[data-theme="Cyberpunk Neon"] .color-swatch:nth-child(1) { background: #00ffff; }
.theme-card[data-theme="Cyberpunk Neon"] .color-swatch:nth-child(2) { background: #ff00ff; }
.theme-card[data-theme="Cyberpunk Neon"] .color-swatch:nth-child(3) { background: #0a0a0a; }

.theme-card[data-theme="Minimal"] .color-swatch:nth-child(1) { background: #ffffff; }
.theme-card[data-theme="Minimal"] .color-swatch:nth-child(2) { background: #e0e0e0; }
.theme-card[data-theme="Minimal"] .color-swatch:nth-child(3) { background: #333333; }

.theme-card[data-theme="Elegant"] .color-swatch:nth-child(1) { background: #ffd700; }
.theme-card[data-theme="Elegant"] .color-swatch:nth-child(2) { background: #1a1a1a; }
.theme-card[data-theme="Elegant"] .color-swatch:nth-child(3) { background: #4a4a4a; }

.theme-card[data-theme="Academic"] .color-swatch:nth-child(1) { background: #004080; }
.theme-card[data-theme="Academic"] .color-swatch:nth-child(2) { background: #0080ff; }
.theme-card[data-theme="Academic"] .color-swatch:nth-child(3) { background: #f0f8ff; }

.theme-card[data-theme="Sports"] .color-swatch:nth-child(1) { background: #ff4500; }
.theme-card[data-theme="Sports"] .color-swatch:nth-child(2) { background: #ff8c00; }
.theme-card[data-theme="Sports"] .color-swatch:nth-child(3) { background: #222222; }
