/*
Theme Name: ThemePlace Child
Theme URI: https://vfxhydra.com
Description: Custom child theme for VFX Hydra - built on ThemePlace parent theme.
Author: Aisha Rani
Template: themeplace
Version: 1.0.0
Text Domain: themeplace-child
*/

/* Yahan se aage har page ki CSS clearly sectioned hogi, jaise:
   1. GLOBAL / RESET
   2. HEADER
   3. HOMEPAGE
   4. SINGLE POST
   5. AUTHOR PAGE
   6. CATEGORY PAGE
   7. SEARCH PAGE
   8. FOOTER
   ... taake sab kuch organized rahe, koi cheez idhar-udhar na ho
*/

/* =================================================================
   GLOBAL RESET (Globe Reads mein tha, VFX Hydra mein missing tha -
   yeh missing hona hi bade logo/tooti grid jaisi problems ki asal wajah thi)
================================================================= */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* full-width wave/hero se horizontal scroll na ho */
    max-width: 100%;
}

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

/* =================================================================
   GLOBAL CONTAINER (header aur post-grid isi width ko follow karte hain)
================================================================= */
.vh-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo image ki size fix - WordPress custom logo original size mein render hoti hai,
   parent theme (ThemePlace) ki CSS bohot strong hai, isliye !important use kiya hai */
.vh-header .custom-logo,
.vh-header img.custom-logo,
.vh-mobile-overlay .custom-logo,
.vh-mobile-overlay img.custom-logo,
.vh-footer .custom-logo,
.vh-footer img.custom-logo {
    max-width: 150px !important;
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
    display: block !important;
}

.vh-footer__brand .custom-logo,
.vh-footer__brand img.custom-logo {
    max-width: 130px !important;
    max-height: 50px !important;
}

@media (max-width: 600px) {
    .vh-header .custom-logo,
    .vh-header img.custom-logo,
    .vh-mobile-overlay .custom-logo,
    .vh-mobile-overlay img.custom-logo {
        max-width: 110px !important;
        max-height: 40px !important;
    }

    .vh-footer__brand .custom-logo,
    .vh-footer__brand img.custom-logo {
        max-width: 100px !important;
        max-height: 36px !important;
        margin: 0 auto; /* mobile pe center rakhna, footer center-aligned hota hai */
    }
}

/* =================================================================
   HEADER (Desktop: logo left, menu right - constrained width)
================================================================= */
.vh-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    height: 76px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.vh-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vh-logo-text {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #010011;
}

.vh-header__mobile-triggers {
    display: none;
    gap: 12px;
}

.vh-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #010011;
}

.vh-hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vh-hamburger-icon span {
    width: 22px;
    height: 2px;
    background: #010011;
    display: block;
}

.vh-primary-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.vh-primary-menu li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #010011;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.vh-primary-menu li a:hover {
    color: #463da3;
}

@media (max-width: 991px) {
    .vh-header {
        height: 62px !important;
    }
    .vh-header__container {
        justify-content: center !important;
        position: relative !important;
    }
    .vh-header__mobile-triggers {
        display: flex !important;
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .vh-header__primary-nav {
        display: none !important;
    }
}

/* =================================================================
   MOBILE FULL-SCREEN OVERLAY MENU
================================================================= */
.vh-mobile-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    padding: 16px 24px !important;
    overflow-y: auto !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin: 0 !important;
}

.vh-mobile-overlay.is-open {
    transform: translateX(0) !important;
}

.vh-mobile-overlay__backdrop {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 0, 17, 0.5);
    z-index: 999998 !important;
    display: none;
}

.vh-mobile-overlay__backdrop.is-open {
    display: block;
}

.vh-mobile-overlay__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.vh-mobile-overlay__spacer {
    width: 40px;
}

.vh-mobile-overlay__search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.vh-mobile-overlay__search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
}

.vh-mobile-overlay__search button {
    background: #010011;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.vh-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vh-mobile-menu-list li {
    border-bottom: 1px solid #eee;
}

.vh-mobile-menu-list li a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: #010011;
    font-family: 'Poppins', sans-serif;
}

.vh-mobile-overlay__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.vh-mobile-overlay__buttons .vh-btn {
    text-align: center;
}

/* =================================================================
   HERO - Mobile responsive (search hide, heading resize)
================================================================= */
@media (max-width: 991px) {
    .vh-hero {
        padding: 80px 20px;
    }
    .vh-hero__title {
        font-size: 32px;
    }
    .vh-hero__subtitle {
        font-size: 16px;
    }
    .vh-search-bar-container {
        display: none;
    }
}

@media (max-width: 600px) {
    .vh-hero__title {
        font-size: 26px;
    }
    .vh-button-container {
        flex-direction: column;
        gap: 12px;
    }
}

/* =================================================================
   FOOTER (full-width, wavy top, purple bg)
================================================================= */
.vh-footer {
    width: 100%;
}

.vh-footer__wave {
    line-height: 0;
}

.vh-footer__wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

.vh-footer__wave svg path {
    fill: #463da3;
}

.vh-footer__main {
    background: #463da3;
    padding: 0 0 40px 0;
}

.vh-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 991px) {
    .vh-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vh-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.vh-footer__logo-text {
    color: #ffffff;
}

.vh-footer__tagline {
    color: #E4E2F5;
    font-size: 14px;
    line-height: 1.6;
    margin: 16px 0;
    font-family: 'Poppins', sans-serif;
}

.vh-footer__divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 16px 0;
}

.vh-footer__contact {
    color: #E4E2F5;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.vh-footer__contact strong {
    color: #ffffff;
}

.vh-footer__col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 16px;
}

.vh-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vh-footer__col li {
    margin-bottom: 10px;
}

.vh-footer__col a {
    color: #E4E2F5;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vh-footer__col a:hover {
    color: #ffffff;
}

.vh-footer__bottom {
    background: #000000;
    padding: 20px 0;
}

.vh-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
}

.vh-footer__copyright {
    color: #cccccc;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.vh-footer__credit a {
    color: #A9A0F5;
}

.vh-footer__credit a:hover {
    color: #ffffff;
}

.vh-footer__social {
    display: flex;
    gap: 16px;
}

.vh-social-icon {
    color: #ffffff;
    display: inline-flex;
}

.vh-social-icon:hover {
    color: #A9A0F5;
}

@media (max-width: 600px) {
    .vh-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =================================================================
   HOMEPAGE (template-homepage.php)
================================================================= */
.vh-hero {
    background-color: #010011;
    text-align: center;
    padding: 187px 20px;
}

.vh-hero__title {
    font-size: 55px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    max-width: 1600px;
    margin: 0 auto;
}

.vh-hero__subtitle {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #ffffff;
    max-width: 1200px;
    margin: 20px auto;
}

.vh-search-bar-container {
    margin: 30px auto;
}

.vh-search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.vh-search-input {
    width: 800px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.vh-search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #463da3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.vh-button-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.vh-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #463da3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.vh-post-grid-section {
    margin: 30px auto;
}

.vh-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vh-search-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.vh-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Fixed ratio container - layout shift na ho image load hote waqt (CLS ke liye zaroori, SEO ko bhi help karta hai) */
.vh-featured-image-container {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0; /* image load hone se pehle placeholder color */
}

.vh-featured-image-container img.vh-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vh-post-info {
    padding: 10px;
}

.vh-post-title {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 10px 0 10px 0;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.vh-post-title a {
    text-decoration: none;
    color: inherit;
}

.vh-meta-info {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.vh-meta-info a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.vh-author-name {
    font-weight: 600;
    margin-left: 5px;
}

.vh-meta-separator {
    margin: 0 5px;
}

.vh-watch-icon {
    margin: 0 5px;
    font-size: 16px;
}

.vh-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vh-no-results {
    text-align: center;
    color: #555;
}
