/* --- EXISTING STYLES (Keep everything from previous response) --- */
:root {
    --primary: #662D91;
    /* Roku Purple */
    --primary-hover: #532475;
    --accent: #0078D7;
    /* Windows Blue */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Hero & Features (Keep existing styles...) */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background-color: rgba(0, 120, 215, 0.2);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* App Mockup Container */
.app-mockup {
    background: linear-gradient(180deg, #2d1b4e 0%, #1a0f2e 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    width: 380px;
    height: 750px;
    margin: 0 auto;
    border: 1px solid #3a2a5a;
    position: relative;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    overflow: hidden;
}

.app-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

/* App Header */
.app-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-icon {
    color: var(--primary);
    font-size: 1rem;
}

.window-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-btn {
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.control-btn:hover {
    color: #fff;
}

/* App Body */
.app-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

/* Search Bar */
.search-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-icon {
    font-size: 0.9rem;
    opacity: 0.5;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    outline: none;
}

.search-bar input::placeholder {
    color: #666;
}

.search-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Channel Selector */
.channel-selector {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.channel-subtitle {
    font-size: 0.75rem;
    color: #888;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.ok-btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Media Controls */
.media-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

.media-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    flex: 1;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.media-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Action Controls */
.action-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    flex: 1;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.action-btn.enter-btn {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Volume Controls */
.volume-controls {
    display: flex;
    gap: 8px;
    margin: 20px 0 10px;
}

.volume-btn {
    background: transparent;
    border: none;
    color: #aaa;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mode-btn {
    background: transparent;
    border: none;
    color: #aaa;
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.headphone-icon {
    font-size: 1rem;
}

/* Output Device */
.output-device {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 8px;
}

.output-icon {
    font-size: 0.9rem;
    opacity: 0.5;
}

.output-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.device-selector {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #ccc;
    font-size: 0.85rem;
    text-align: center;
}

.features {
    padding: 100px 0;
    background-color: #181818;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a123d 100%);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

footer {
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.disclaimer {
    margin-top: 10px;
    font-style: italic;
}

/* --- NEW STYLES FOR BLOG --- */

/* Blog Section on Home Page */
.blog-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #fff;
}

/* Individual Article Pages */
.article-page {
    padding-top: 40px;
    padding-bottom: 80px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.article-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: white;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: white;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 10px;
}

.article-cta {
    background: linear-gradient(135deg, #2a123d 0%, #121212 100%);
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
    text-align: center;
}

.article-cta h3 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .app-mockup {
        margin-top: 40px;
    }

    .nav-links {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-header h1 {
        font-size: 2rem;
    }
}

/* --- LEGAL PAGE STYLES --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ddd;
}

.legal-content h1 {
    color: white;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.legal-content h2 {
    color: white;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-box {
    background: #1e1e1e;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* --- MODAL STYLES --- */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-header {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.modal-body {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #121212;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}