@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-color: #0f0f0f;
    /* YouTube Dark BG */
    --text-primary: #f1f1f1;
    /* YouTube Primary Text */
    --text-secondary: #aaaaaa;
    /* YouTube Secondary Text */
    --border-color: rgba(255, 255, 255, 0.1);
    --btn-primary-bg: #f1f1f1;
    --btn-primary-text: #0f0f0f;
    --accent-color: #3ea6ff;
    /* YouTube Blue */
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center content while keeping bg full width */
    padding: 16px max(24px, calc((100% - 1200px) / 2));
    position: sticky;
    top: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.5px;
}

.logo {
    width: 28px;
    height: 28px;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.1s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 24px 80px;
    max-width: 1200px;
    /* Cinema width */
    margin: 0 auto;
}



h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 24px;
    color: var(--text-primary);
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 32px;
    /* Increased from 16px */
    justify-content: center;
    /* Explicit centering */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 48px;
    /* Touch target size */
    border-radius: 24px;
    /* Pill shape (Native) */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.1s;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background: #d9d9d9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mockup Visual */
.hero-visual {
    margin-top: 80px;
    width: 100%;
}

.browser-mockup {
    border-radius: 12px;
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Features - Editorial Layout */
.features {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

/* Feature Row */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Alternate order for even rows */
.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-visual {
    flex: 1.5;
    position: relative;
}

.feature-image {
    width: 100%;
    border-radius: 12px;
    /* Native rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.feature-row h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-row p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Spec List (The 3rd row replacement) */
.spec-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.spec-item {
    text-align: left;
    max-width: 250px;
}

.spec-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.spec-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Installation */
.installation {
    padding: 120px 24px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.install-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.store-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.disabled-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: default;
    border: none;
}

.coming-soon-tag {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 60px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* --- CSS Mockups --- */
.yt-mockup {
    background: #0f0f0f;
    padding: 0;
    /* Full bleed header */
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', 'Arial', sans-serif;
    color: #f1f1f1;
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Header */
.yt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #0f0f0f;
    height: 56px;
    box-sizing: border-box;
}

.yt-head-left,
.yt-head-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yt-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
}

.yt-menu-icon .bar {
    width: 18px;
    height: 1px;
    background: #fff;
}

.yt-logo-mock {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-logo-icon {
    width: 24px;
    height: 16px;
    background: #ff0000;
    border-radius: 4px;
    position: relative;
}

.yt-logo-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid white;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.yt-logo-text {
    font-weight: bold;
    letter-spacing: -0.5px;
    font-size: 16px;
}

.yt-search-mock {
    flex: 0 1 600px;
    height: 40px;
    background: #121212;
    border: 1px solid #303030;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    margin: 0 20px;
}

.yt-search-text {
    color: #888;
    padding-left: 16px;
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.6;
}

.yt-search-btn {
    width: 64px;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #303030;
}

.yt-icon.small {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.yt-create-btn {
    background: #222;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-avatar-mock {
    width: 32px;
    height: 32px;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

/* Content Layout */
.yt-content {
    display: flex;
    height: 600px;
}

/* Fixed height frame */
.yt-sidebar {
    width: 240px;
    background: #0f0f0f;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
}

.yt-sidebar-item {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.yt-sidebar-item svg {
    width: 24px;
    height: 24px;
}

.yt-sidebar-item:hover {
    background: #272727;
}

.yt-sidebar-item.active {
    background: #272727;
    font-weight: 500;
}

.yt-sidebar-header {
    padding: 12px 12px 6px;
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

/* simplified */
.yt-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.yt-main {
    flex: 1;
    padding: 24px;
    overflow: hidden;
    background: #0f0f0f;
}

.yt-main h1 {
    font-size: 24px;
    margin-bottom: 24px;
    font-weight: 700;
    margin-top: 0;
}

/* Actions Row (Search + Chips) */
.yt-actions-row {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.extension-search-bar {
    background: #272727;
    /* Native search bar color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    /* Slightly squarer than pill */
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    height: 36px;
    box-sizing: border-box;
}

.extension-search-bar .search-icon {
    width: 20px;
    height: 20px;
    fill: #aaa;
}

.extension-search-bar .placeholder {
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
}

.yt-chips {
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.yt-chip {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.yt-chip:hover {
    background: rgba(255, 255, 255, 0.2);
}

.yt-chip.active {
    background: #f1f1f1;
    color: #0f0f0f;
}

/* Grid */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    row-gap: 40px;
}

.yt-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

.thumb {
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #333;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.color-1 {
    background: linear-gradient(135deg, #1cb5e0 0%, #000851 100%);
}

.color-2 {
    background: linear-gradient(135deg, #009ffd 0%, #2a2a72 100%);
}

.color-3 {
    background: linear-gradient(135deg, #e94057 0%, #f27121 100%);
}

.color-4 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.color-5 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.text-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.line.title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f1f1;
    line-height: 1.4;
}

.line.sub {
    font-size: 14px;
    color: #aaa;
}

/* Save Dialog Mockup (Enhanced) */
.yt-save-dialog-mockup {
    background: #282828;
    /* YouTube Popup bg */
    border-radius: 16px;
    /* Rounder */
    width: 300px;
    /* Fixed width */
    margin: 20px auto;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);
    border: none;
    font-family: 'Roboto', 'Arial', sans-serif;
    color: #fff;
    overflow: hidden;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 10px;
    font-size: 20px;
    font-weight: 500;
}

.close-x {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.extension-search-bar.small {
    margin: 0 16px 12px;
    width: auto;
    background: #1f1f1f;
    /* Darker in dialog */
    height: 40px;
    border-color: #3f3f3f;
}

.dialog-list {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
}

.dialog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
}

.dialog-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-container {
    padding: 8px;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 2px;
}

.checkbox.checked {
    background: #3ea6ff;
    border-color: #3ea6ff;
}

.checkbox.checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.row-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.row-sub {
    font-size: 12px;
    color: #aaa;
}

.row-icon {
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.dialog-row:hover .row-icon {
    opacity: 1;
}

.dialog-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    margin-top: 4px;
}

.new-playlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.plus-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.new-playlist-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Images are now enabled */

/* Responsive Grid */
@media (max-width: 768px) {
    .yt-grid {
        grid-template-columns: 1fr 1fr;
    }

    .yt-sidebar {
        display: none;
    }

    .yt-content {
        height: auto;
    }

    .yt-main {
        overflow: visible;
    }

    .yt-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .extension-search-bar {
        width: 100%;
    }

    /* Editorial Layout Responsiveness */
    .features {
        padding: 60px 24px;
        gap: 60px;
    }

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .feature-text {
        min-width: 0;
        width: 100%;
    }

    .feature-visual {
        width: 100%;
    }

    .spec-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
        text-align: center;
    }

    .spec-item {
        max-width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
        /* Smaller H1 on mobile */
    }
}