:root {
    --bg-body: #000000;
    --bg-card: #111111;
    --bg-header: rgba(0, 0, 0, 0.9);

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --accent: #ff4500;
    /* Keeping the brand orange for small highlights */
    --btn-bg: #ffffff;
    --btn-text: #000000;

    --border: #222222;
    --radius: 4px;
    /* Sharper corners for B&W minimalist vibe */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    max-height: 40px;
    width: auto;
    /* In case the logo is black text, we can filter it. 
       If it's already colored/white, this might look weird. 
       Removing filter for now, trusting the image source or user will provide white logo. 
    */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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


/* Category Filter Bar */
.category-bar {
    background: #050505;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 73px;
    /* Height of header approx */
    z-index: 990;
    backdrop-filter: blur(10px);
}

.category-pills {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Space for scrollbar if any */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    white-space: nowrap;
}

.category-pills::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.pill {
    background: #151515;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pill:hover,
.pill.active {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 90vh;
    /* Nearly full screen */
    min-height: 600px;
    max-height: 800px;
    background: #000;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.8s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2.5rem;
    }

    .hero-slider {
        height: 70vh;
    }
}

/* Base Buttons */
.btn {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0.5rem;
    border: 2px solid var(--btn-bg);
}

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

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

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

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.bg-white {
    background: var(--bg-body);
    /* Override old class */
}

.bg-light {
    background: #0a0a0a;
}

/* Grid System */
.video-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Cards */
.video-card,
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Article card link wrapper */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card:hover,
.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.article-card:hover img {
    filter: brightness(1.1);
}

.article-card div {
    padding: 1.5rem;
}

.article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.read-more:hover {
    color: var(--accent);
}

/* Article Page */
.article-header {
    padding: 4rem 0;
    text-align: center;
    background: #0a0a0a;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.article-header .excerpt {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    font-size: 1.1rem;
    color: #cccccc;
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-main);
}

/* Hot Take */
.hot-take-section {
    background: #151515;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    margin: 4rem 0;
    text-align: center;
    border-radius: var(--radius);
}

.hot-take-label {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
}

.hot-take-section h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.hot-take-textarea {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: var(--radius);
}

.hot-take-textarea:focus {
    border-color: var(--text-main);
    outline: none;
}

.btn-hot-take {
    background: var(--text-main);
    color: black;
    margin-top: 1rem;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Newsletter */
.newsletter {
    background: #111;
    border: 1px solid var(--border);
    padding: 4rem 1rem;
    text-align: center;
    margin: 4rem auto;
}

.newsletter h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.newsletter-form input {
    background: #000;
    border: 1px solid var(--border);
    color: white;
    padding: 1rem;
    width: 300px;
    max-width: 100%;
}

.newsletter-form button {
    background: var(--text-main);
    color: black;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
}

.newsletter-form button:hover {
    background: #ccc;
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    margin: 0 1rem;
    font-weight: bold;
}

/* Ad Placeholder */
.ad-placeholder {
    background: #111;
    border: 1px dashed #333;
    color: #444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        /* Ensure it doesn't overflow horizontally */
        max-width: 100%;
    }

    .logo {
        max-height: 32px;
    }

    nav ul {
        gap: 0.75rem;
        justify-content: flex-end;
        /* Ensure links don't blow out the container */
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.8rem;
    }

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

    .video-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form input {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile App Banner */
.mobile-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--border);
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7);
}

.banner-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background for visibility */
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    /* Larger touch target */
    height: 32px;
    line-height: 1;
    transition: all 0.2s;
    z-index: 2001;
    /* Ensure above banner content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    color: var(--accent);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding-right: 0.5rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.app-text {
    flex: 1;
    min-width: 0;
}

.app-text h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.5px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.stars {
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.review-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-status {
    font-size: 0.75rem;
    color: #ff4500;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn-app-download {
    background: #ff4500;
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.appstore-icon {
    width: 16px;
    height: 16px;
}

.btn-app-download:hover {
    transform: scale(1.05);
    background: #ff6a33;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.6);
    animation: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 69, 0, 0.5);
    }
}

/* Mobile responsiveness */
@media (max-width: 400px) {
    .mobile-app-banner {
        padding: 0.75rem 0.75rem;
    }

    .app-text h4 {
        font-size: 0.85rem;
    }

    .app-rating {
        font-size: 0.75rem;
    }

    .app-status {
        font-size: 0.7rem;
    }

    .btn-app-download {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

    .app-icon {
        width: 42px;
        height: 42px;
    }
}

/* Tweet This Button */
.tweet-this {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #1DA1F2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 1rem 0;
}

.tweet-this:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.tweet-this svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tweet-quote-box {
    background: #1a1a1a;
    border-left: 4px solid #1DA1F2;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    position: relative;
}

.tweet-quote-box blockquote {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    font-style: italic;
}

.tweet-quote-box .tweet-this {
    margin: 0;
}