/*
Theme Name: VSLPLAY Pro V4
Theme URI: https://vslplay.com
Author: VSLPLAY Team
Description: Professional theme for VSL and video marketing. Version 4.0 - SEO & Mobile Optimized.
 * Version: 4.7.1
 * Author: VSLPlay Team
 * Text Domain: vslplay-pro
 */

:root {
    /* Core Colors */
    --color-bg: #F8F9FB;
    --color-bg-card: #FFFFFF;

    /* Typography Colors */
    --color-text-main: #555555;
    --color-text-heading: #111111;
    --color-text-light: #888888;

    /* Brand Colors */
    --color-primary: #9700FF;
    --color-secondary: #00E6FF;
    --gradient-brand: linear-gradient(90deg, #9700FF 0%, #00E6FF 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: transparent;
    padding: 0;
    /* Removed padding to avoid whitespace */
}

.header-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 10px;
}

.site-logo-centered {
    text-align: center;
}

.site-logo-centered img {
    max-height: 40px;
    vertical-align: middle;
}

.site-logo img,
.site-logo-centered img,
.custom-logo {
    max-height: 60px;
    vertical-align: middle;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    color: #444;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* White Navbar (Optional) */
.white-navbar {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.white-navbar.sticky-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img,
.navbar-logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-menu-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar-menu-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.navbar-menu-list a:hover {
    color: var(--color-primary);
}

/* Spacer when navbar is sticky */
body:has(.sticky-navbar) .site-header {
    margin-top: 0px;
}

/* Hero Section (Blog Home) */
.blog-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eaff 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-logo-container {
    margin-bottom: 20px;
}

.hero-logo {
    max-height: 70px;
    width: auto;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-main);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Hero Search */
.hero-search {
    max-width: 500px;
    margin: 0 auto 30px auto;
}

.hero-search-form {
    display: flex;
    box-shadow: 0 5px 20px rgba(151, 0, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(151, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 5px 25px rgba(151, 0, 255, 0.3);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.hero-search-field {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.hero-search-submit {
    background: var(--gradient-brand);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.hero-search-submit:hover {
    opacity: 0.9;
}

/* Hero Categories */
.hero-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.cat-label {
    font-weight: 600;
    color: #888;
    margin-right: 5px;
}

.hero-cat-pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--color-text-main);
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hero-cat-pill:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(151, 0, 255, 0.3);
    color: #fff;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
}

/* Single Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Content + Sidebar */
    gap: 60px;
}

/* Featured Post */
.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.featured-post-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    height: 100%;
    min-height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content-wrap {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-badge {
    background: rgba(151, 0, 255, 0.1);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}

.post-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.excerpt {
    font-size: 15px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more-link {
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 13px;
    margin-top: auto;
}

/* 
   SINGLE POST CARD
*/
.single-post-content {
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    /* Soft Shadow */
    margin-bottom: 40px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.post-meta {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-title {
    font-size: 48px;
    line-height: 1.1;
    color: #111;
    margin-bottom: 30px;
}

.post-hero-image {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ENTRY CONTENT */
.entry-content {
    margin-top: 45px;
    margin-bottom: 20px;
    color: #222;
}

.entry-content ul,
.entry-content ol {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 30px 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.entry-content ul li {
    list-style: none;
    /* Custom bullet */
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.entry-content ul li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

.entry-content blockquote {
    background: linear-gradient(135deg, rgba(151, 0, 255, 0.05) 0%, rgba(0, 230, 255, 0.05) 100%);
    border-left: 5px solid var(--color-primary);
    padding: 30px 40px;
    margin: 50px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #444;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.entry-footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.entry-footer a {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
}

/* 
   SIDEBAR STYLING (v2.8.0 REFACTORED)
*/
/* Container for Single Posts */
.single-page-container {
    padding: 60px 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    /* Soft, modern shadow */
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    /* Comfortable spacing */
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

/* Modern Sidebar Search */
.sidebar-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    /* Gap between input and button */
}

.sidebar-search-input {
    flex-grow: 1;
    height: 48px;
    /* Fixed height match */
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 15px;
    border-radius: 8px;
    /* Rounded corners */
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}

.sidebar-search-input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(151, 0, 255, 0.1);
}

.sidebar-search-submit {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    /* Match input */
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.sidebar-search-submit:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

.sidebar-search-submit svg {
    stroke: #fff;
    /* Force white icon */
}

/* Recent Posts Modern List */
.sidebar-post-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.sidebar-post-list li {
    margin-bottom: 20px;
    /* Space between items */
    padding-bottom: 0;
}

.sidebar-post-list li:last-child {
    margin-bottom: 0;
}

.sidebar-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}

.icon-wrap {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-primary);
    opacity: 0.7;
    transition: transform 0.2s;
}

.sidebar-post-link:hover .icon-wrap {
    transform: translateX(3px);
    opacity: 1;
}

.text-wrap {
    display: flex;
    flex-direction: column;
}

.sidebar-post-title {
    font-size: 15px;
    font-weight: 600;
    /* Darker & Bolder */
    color: #222;
    /* Dark Text */
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-post-link:hover .sidebar-post-title {
    color: var(--color-primary);
}

.sidebar-post-date {
    display: block;
    /* Separate block */
    font-size: 12px;
    color: #888;
    /* Light gray */
    margin-top: 5px;
    /* Hierarchy spacing */
    font-weight: 400;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-content {
        padding: 30px 20px;
    }

    .post-title {
        font-size: 32px;
    }
}

/* 
   PAGINATION STYLING (v2.9.0)
*/
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination .page-numbers:not(.current):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.pagination .page-numbers.current {
    background: #4466FF;
    /* Blue from image */
    color: #fff;
    border-color: #4466FF;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(68, 102, 255, 0.3);
}

.pagination .next,
.pagination .prev {
    padding: 0 25px;
    font-weight: 600;
}

.pagination .prev {
    display: none;
}

.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================================
   MOBILE RESPONSIVENESS (V4.0)
   ========================================= */

/* Smartphones (Portrait) */
@media (max-width: 480px) {

    /* Fluid Container: 92% width, centered, no fixed padding */
    .container {
        padding: 0;
        width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .single-page-container {
        padding: 20px 0;
        /* Vertical padding only, no horizontal */
    }

    /* Remove horizontal padding from main layout to respect container width */
    .main-layout {
        padding: 30px 0;
        gap: 30px;
    }

    /* Typography */
    .post-title {
        font-size: 26px !important;
        line-height: 1.3;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Fluid padding for cards - Overridden by Customizer */
    .single-post-content {
        padding: 5px;
        /* Default Fallback */
        width: 100%;
    }

    .navbar-menu-list {
        gap: 15px;
        font-size: 14px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-header {
        padding: 0;
        width: 100%;
    }

    /* Logo Sizing & Alignment */
    .site-logo-centered img {
        max-height: 50px;
        width: auto;
    }

    .post-card h2 {
        font-size: 18px;
    }

    /* Sidebar Fix */
    .single-post-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 200px;
    }

    .featured-content {
        padding: 25px;
    }
}

/* Tablets & Large Phones */
@media (min-width: 481px) and (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 36px;
    }
}