:root {
    /* Palette - Mood Experience */
    --color-bg: #0F0F12;
    --color-bg-secondary: #1A1A1F;
    --color-text: #FFFFFF;
    --color-text-muted: #B5B5B5;

    /* Mood Colors */
    --mood-amour: #E05263;
    --mood-pls: #6B7FD7;
    --mood-nostalgie: #E9D985;
    --mood-choc: #D62828;
    --mood-feelgood: #4ECDC4;
    --mood-adrenaline: #FF9F1C;

    --color-primary: var(--mood-pls);
    /* Default */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-subtle: 0 0 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

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

/* Header */
header {
    height: var(--header-height);
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--mood-pls);
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.3), #0F0F12), url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center top;
    margin-bottom: 60px;
}

.hero-tag {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.text-gradient {
    background: linear-gradient(90deg, #A855F7, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-pills {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.pill-btn:hover {
    transform: translateY(-3px);
}

.pill-btn.choc {
    background: rgba(214, 40, 40, 0.3);
    border-color: var(--mood-choc);
}

.pill-btn.romantique {
    background: rgba(224, 82, 99, 0.3);
    border-color: var(--mood-amour);
}

.pill-btn.feelgood {
    background: rgba(233, 217, 133, 0.3);
    border-color: var(--mood-nostalgie);
    /* Yellowish */
}

.btn-hero-cta {
    background: linear-gradient(90deg, #6B21A8, #7C3AED);
    color: white;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    border: none;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Featured Section (Purple Card Redesign) */
.featured-wrapper {
    background: #0F0F12;
    /* Dark bg */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    overflow: hidden;
    position: relative;
    /* Left Purple Glow Border */
    box-shadow: -5px 0 20px rgba(124, 58, 237, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
}

/* The neon border on the left */
.featured-wrapper::before {
    content: '';
    position: absolute;
    top: 40px;
    /* Below the tab */
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, #8B5CF6, transparent);
    z-index: 10;
    box-shadow: 0 0 10px #8B5CF6;
}

/* The Top Left Tab */
.featured-tab {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #6D28D9, #9333EA);
    padding: 8px 24px 8px 20px;
    border-radius: 0 0 16px 0;
    /* Corner radius */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: white;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(109, 40, 217, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}



/* Top Right Controls (Decorative) */
.featured-top-controls {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #6B7280;
    text-transform: uppercase;
    font-family: monospace;
    /* Tech feel */
    padding: 10px 0;
    margin-bottom: 10px;
}

.featured-top-controls span {
    cursor: pointer;
    transition: 0.2s;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.featured-top-controls span:hover {
    color: #fff;
}

.featured-top-controls span.active {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.1);
}

.featured-content-grid {
    display: flex;
    flex-direction: row;
    padding: 20px;
    padding-top: 50px;
    /* Space for tab */
    gap: 30px;
}

.featured-img-col {
    flex: 0 0 45%;
    /* Fixed width for image */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.featured-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Darken image slightly */
    filter: brightness(0.8);
    transition: 0.5s;
}

.featured-wrapper:hover .featured-img-col img {
    filter: brightness(1);
    transform: scale(1.02);
}

/* Floating Button on Image */
.btn-featured {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #5B21B6, #4C1D95);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 0.95rem;
}

.btn-featured:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.6);
}

.featured-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.featured-mood-label {
    color: #A78BFA;
    /* Light Purple */
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 12px;
    color: white;
    font-family: var(--font-heading);
}

.featured-subtitle {
    font-size: 1.4rem;
    color: #E5E7EB;
    /* Light Gray */
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.featured-desc {
    color: #9CA3AF;
    margin-bottom: auto;
    /* Push Meta to bottom */
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

.featured-meta {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-meta strong {
    color: #D1D5DB;
}

/* Mood Grid Redesign */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.mood-card {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Overlay gradient inside mood card */
.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9));
    z-index: 1;
}

.mood-card-header,
.mood-card-footer {
    position: relative;
    z-index: 2;
}

.mood-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mood-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mood-desc-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Specific Mood Styles for Cards */
.mood-card.pls .mood-badge {
    border: 1px solid var(--mood-pls);
    color: var(--mood-pls);
}

.mood-card.amour .mood-badge {
    border: 1px solid var(--mood-amour);
    color: var(--mood-amour);
}

.mood-card.feel-good .mood-badge {
    border: 1px solid var(--mood-feelgood);
    color: var(--mood-feelgood);
}

.mood-card.choc .mood-badge {
    border: 1px solid var(--mood-choc);
    color: var(--mood-choc);
}

.mood-card.adrenaline .mood-badge {
    border: 1px solid var(--mood-adrenaline);
    color: var(--mood-adrenaline);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .featured-content-grid {
        flex-direction: column;
    }

    .featured-img-col {
        height: 250px;
        min-height: auto;
    }

    .featured-img-col img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .featured-info-col {
        padding: 30px 20px;
    }

    .featured-top-controls {
        position: relative;
        top: auto;
        right: auto;
        padding: 10px 0;
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .featured-top-controls span {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.card {
    background: var(--color-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    z-index: 2;
    box-shadow: var(--shadow-card);
}

.card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-content {
    padding: 24px;
}

.card-mood {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.card-mood:hover {
    background: white;
    color: black !important;
    /* Force override style attribute */
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    margin-top: 100px;
    text-align: center;
    color: var(--color-text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 16px;
        height: auto;
        padding: 16px 0;
    }
}

/* Utilities */
.text-amour {
    color: var(--mood-amour);
}

.text-pls {
    color: var(--mood-pls);
}

.border-top-amour {
    border-top: 3px solid var(--mood-amour);
}