/**
 * Electricks Watch - Video Theme
 * Orange theme with Apple-like simplicity
 */

/* ===== Color Variables ===== */
:root {
    /* Pink-Purple Theme (Magenta tones) */
    --primary-50: #fdf4ff;
    --primary-100: #fae8ff;
    --primary-200: #f5d0fe;
    --primary-300: #f0abfc;
    --primary-400: #e879f9;
    --primary-500: #d946ef;
    --primary-600: #c026d3;
    --primary-700: #a21caf;
    --primary-800: #86198f;
    --primary-900: #701a75;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f0abfc, #d946ef);
    --gradient-primary-vibrant: linear-gradient(135deg, #e879f9, #c026d3);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(217, 70, 239, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.05);

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Background */
    --bg-main: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
}

/* ===== Global Styles ===== */
* {
    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(180deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #7e22ce 0%, #9333ea 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 32px;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 24px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(1);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    padding: 60px 20px 60px 20px;
    background: linear-gradient(180deg, #701a75 0%, #86198f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#meshGradientCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.hero > .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 96px);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
    max-width: 1200px;
    font-style: normal;
}

.gradient-text {
    background: linear-gradient(90deg, #f0abfc 0%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(240, 171, 252, 0.3));
    display: inline-block;
    padding-bottom: 0.1em;
    padding-right: 0.05em;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: none;
    letter-spacing: -0.005em;
    font-style: normal;
    line-height: 1.4;
    max-width: 800px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== Container & Layout ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-main {
    min-height: calc(100vh - 60px);
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    font-style: normal;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* ===== Playlist Grid ===== */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.playlist-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.playlist-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 70, 239, 0.45);
    box-shadow:
        0 12px 48px rgba(217, 70, 239, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

.playlist-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-thumbnail img {
    transform: scale(1.05);
}

.playlist-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 8px 32px rgba(217, 70, 239, 0.4);
}

.video-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.playlist-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.playlist-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0;
}

.playlist-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.playlist-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(217, 70, 239, 0.1);
}

.playlist-product {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
}

.playlist-arrow {
    color: var(--primary-600);
    font-size: 20px;
    transition: transform 0.2s ease;
}

.playlist-card:hover .playlist-arrow {
    transform: translateX(4px);
}

/* ===== Footer ===== */
.site-footer {
    background-color: #0f0f11;
    padding: 80px 0;
    margin-top: 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px;
    margin-bottom: 64px;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-section a:hover {
    color: #d946ef;
}

.footer-bottom {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 24px;
    }

    .container {
        padding: 0 24px;
    }

    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 16px;
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .playlist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 48px 0;
    }

    .site-footer {
        margin-top: 80px;
    }
}

/* ===== Text Utilities ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}
