/* ── Premium YouTube2MP4 Custom Theme ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #07070a;
    --glass-bg: rgba(15, 15, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --accent-red: #ff2a5f;
    --accent-pink: #ff4b8b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Global Resets & Typography ── */
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-family: var(--font-heading);
}

/* ── Animated Gradient Mesh Background ── */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(125deg, #07070a 0%, #110e1a 40%, #1a0b1c 100%);
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* ── Glassmorphism Utilities ── */
.premium-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

/* ── Navigation Tweaks ── */
.navbar:not(.top-nav-collapse) {
    background: transparent !important;
    box-shadow: none !important;
}

.top-nav-collapse {
    background: rgba(7, 7, 10, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand img {
    filter: drop-shadow(0 0 8px rgba(255, 42, 95, 0.4));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* ── Homepage Specifics ── */
.hero-title {
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem !important;
    text-transform: none;
}

.search-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
}

.search-container:focus-within {
    border-color: rgba(255, 42, 95, 0.5);
    box-shadow: 0 0 30px rgba(255, 42, 95, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: #64748b;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.6);
}

.btn-premium:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #334155;
    box-shadow: none;
}

/* ── Result Page Specifics ── */
.panel-premium {
    padding: 2rem;
}

.panel-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header i {
    color: var(--accent-pink);
}

.format-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.format-badge.mp4 {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.format-badge.mp3 {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.dl-row-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.dl-row-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.quality-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.size-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.btn-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-pill:hover:not(:disabled) {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.btn-pill:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 15px;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
    }
}