/* InfluencerHub - Clean White Professional Theme (Final Mobile Optimization) */
:root {
    --primary-color: #059669;
    --accent-color: #ef4444;
    --bg-light: #ffffff;
    --bg-surface: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-light: #cbd5e1;
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Header - Responsive & Stable */
header {
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    white-space: nowrap;
}

.logo span {
    color: var(--primary-color);
}

.header-watch-btn {
    background-color: #ff0000;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    header {
        height: 75px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .header-watch-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
}

/* Blog Content */
.blog-section {
    padding: 90px 0 60px 0;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    border-radius: 15px;
}

.card-thumbnail {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex-grow: 1;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.card-content h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
    line-height: 1.25;
    font-family: var(--font-heading);
    white-space: normal;
}

.watch-video-btn-wrapper {
    z-index: 5;
    position: relative;
}

.watch-video-btn {
    background-color: #ff0000;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.watch-video-btn svg {
    width: 14px;
    height: 14px;
    fill: white;
}

@media (min-width: 768px) {
    .blog-card {
        padding: 20px;
        gap: 25px;
    }

    .card-thumbnail {
        width: 220px;
        height: 150px;
        border-radius: 16px;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .watch-video-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* POPUP MODAL - FIXED & PROFESSIONAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    /* Better for all mobiles */
    border-radius: 20px;
    padding: 30px 20px 25px 20px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-image {
    width: 100%;
    height: 220px;
    /* Correct Proportions */
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-main);
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-btn-container .watch-video-btn {
    padding: 14px 28px;
    /* Slightly larger in popup for focus */
    font-size: 1rem;
    width: 100%;
    /* Full width ONLY in popup for mobile conversion */
    justify-content: center;
}

/* Post Page Context */
.article-page {
    padding: 100px 0;
    background: #fff;
}

.featured-image-container img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}