/*
Theme Name: Socks Market Professional
Author: Dipankar Banerjee - Cyberspace Works
Description: Clean, modern proxy marketplace theme with a vertical gradient hero.
Version: 17.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

body {
    background-color: #f7f8f6;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #111;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

/* --- NAV BAR --- */
.site-header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    text-decoration: none;
    color: #111;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

.nav-btn {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

/* --- HERO SECTION: VERTICAL GRADIENT --- */
.hero-wrapper {
    padding: 80px 0;
    /* Gradient: Top white (#ffffff) to bottom grey (#f7f8f6) */
    background: linear-gradient(to bottom, #ffffff 0%, #f7f8f6 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.hero-text {
    flex: 1.2;
}

.hero-image {
    flex: 0.8;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    display: block;
}

/* --- BADGES & BUTTONS --- */
.badge-gold {
    background: #fff4e5;
    color: #b46d1f;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-gray {
    background: #e9ecef;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-orange {
background: #f7a849;
    color: #fff;
    padding: 16px 6px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    display: inline-block;
}

/* --- BLOG GRID & CARDS --- */
.blog-grid,
.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.blog-card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eee;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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



/* --- ARTICLE LAYOUT --- */
.post-body-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.post-main-content {
    flex: 2;
    min-width: 0;
}
.promo-cta {
    background: #1a1a1a;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

.inline-static-promo {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f5f5f5;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 28px 0 14px;
}

.inline-static-promo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #121212;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 44px;
}

.inline-static-promo-copy {
    min-width: 0;
    flex: 1;
}

.inline-static-promo-copy h4 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #111;
}

.inline-static-promo-copy p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e6e;
}

.inline-static-promo-btn {
    background: #1a1a1a;
    color: #f7a849;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.inline-static-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 0 30px;
}

.post-sidebar {
    flex: 1;
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.stat-number span {
    color: #f7a849;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        gap: 35px;
    }

    .hero-text,
    .hero-image {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    .post-body-container {
        flex-direction: column;
        gap: 30px;
    }

    .post-sidebar {
        position: static;
        width: 100%;
    }

    .blog-grid,
    .suggested-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-card-img-wrap {
        height: 210px;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 12px 0;
    }

    .header-container {
        position: relative;
    }

    .site-brand {
        font-size: 24px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        font-size: 15px;
        padding: 10px 8px;
    }

    .main-nav .nav-btn {
        margin-top: 4px;
        text-align: center;
    }

    .hero-wrapper {
        padding: 48px 0;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 8px;
    }

    .post-body-container {
        padding: 40px 16px;
    }

    .post-sidebar {
        order: -1;
        position: sticky;
        top: 72px;
        z-index: 15;
        gap: 0;
    }

    .post-sidebar .sidebar-card:not(:first-child) {
        display: none;
    }

    /* #article-content {
        display: flex;
        flex-direction: column;
    }

    #article-content>.inline-static-promo {
        order: -3;
    }

    #article-content>.inline-static-divider {
        order: -2;
    } */

    .blog-card-content,
    .sidebar-card {
        padding: 18px;
    }

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

    .btn-orange,
    .btn-outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .promo-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        margin: 40px 0;
    }

    .inline-static-promo {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
        margin: 20px 0 12px;
    }

    .inline-static-promo-copy h4 {
        font-size: 16px;
    }

    .inline-static-promo-copy p {
        font-size: 13px;
    }

    .inline-static-promo-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .inline-static-divider {
        margin: 0 0 24px;
    }

    .promo-cta .btn-orange {
        width: 100%;
    }
}

/* Fallback specificity for single-post promo card */
body.single #article-content .promo-cta {
    background: #1a1a1a;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

@media (max-width: 767px) {
    body.single #article-content .promo-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        margin: 40px 0;
    }
}