/*
Theme Name: Rangoli Modern
Theme URI: https://rangolidesigns.net
Author: Narmada
Description: Ultra Fast Custom WordPress Theme for Rangoli Designs
Version: 1.0
Text Domain: rangoli-modern
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f9f9f9;
    color: #0f0f0f;
}

a {
    text-decoration: none;
    color: inherit;
}

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


/* ===================================================== */
/* PREMIUM RESPONSIVE HEADER STARTING */.  
/* ===================================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Reduce left & right padding */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px; /* REDUCED */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* ================================= */
/* LOGO */
/* ================================= */

.logo a {
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 20px); /* Responsive font */
    text-decoration: none;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Always single line */
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: orange;
    border-radius: 50%;
}

/* ================================= */
/* NAVIGATION */
/* ================================= */

.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(13px, 1.2vw, 15px); /* Responsive font */
    color: #222;
    white-space: nowrap; /* FORCE SINGLE LINE */
    transition: color 0.2s ease;
}

.nav-menu li a:hover {
    color: #ff6a00;
}

/* ================================= */
/* SEARCH */
/* ================================= */

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

.header-search input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    width: 180px;
}

/* ================================= */
/* HAMBURGER */
/* ================================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #111;
}

/* ================================= */
/* MOBILE RESPONSIVE */
/* ================================= */

@media (max-width: 1024px) {

    .nav-wrapper {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        display: none;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .nav-wrapper.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 16px;
    }

    .hamburger {
        display: flex;
    }

    .header-search {
        display: none;
    }
}

/* =============================================== */
/* YOUTUBE STYLE HOME ROWS */
/* =============================================== */

.yt-home {
    max-width: 1600px;
    margin: 40px auto 80px auto;
    padding: 0 40px;
}

/* Section Title */
.yt-row {
    margin-bottom: 50px;
}

.yt-row-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

/* Horizontal Scroll */
.yt-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.yt-scroll::-webkit-scrollbar {
    display: none;
}

/* =============================================== */
/* CARD */
/* =============================================== */

.yt-card {
    flex: 0 0 auto;
    width: 360px;
    cursor: pointer;
}

/* Thumbnail */
.yt-thumb-wrap {
    position: relative;
    width: 100%;
}

.yt-thumb-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Duration badge */
.yt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 500;
}

/* =============================================== */
/* META SECTION */
/* =============================================== */

.yt-card-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    position: relative;
}

/* Avatar */
.yt-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Info */
.yt-info {
    flex: 1;
}

.yt-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: #111;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-channel {
    font-size: 14px;
    color: #606060;
    margin-bottom: 2px;
}

.yt-stats {
    font-size: 13px;
    color: #606060;
}

/* 3 dots */
.yt-menu {
    font-size: 18px;
    color: #606060;
    cursor: pointer;
    padding: 0 4px;
}

/* Hover */
.yt-thumb-wrap img {
    transition: transform 0.25s ease;
}

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

/* =============================================== */
/* RESPONSIVE */
/* =============================================== */

@media (max-width: 1400px) {
    .yt-card {
        width: 320px;
    }
    .yt-thumb-wrap img {
        height: 180px;
    }
}

@media (max-width: 1024px) {
    .yt-home {
        padding: 0 24px;
    }

    .yt-card {
        width: 280px;
    }

    .yt-thumb-wrap img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .yt-home {
        padding: 0 16px;
    }

    .yt-row-title {
        font-size: 18px;
    }

    .yt-card {
        width: 240px;
    }

    .yt-thumb-wrap img {
        height: 140px;
        border-radius: 10px;
    }

    .yt-title {
        font-size: 14px;
    }

    .yt-channel,
    .yt-stats {
        font-size: 12px;
    }
}


/* =========================================
   HORIZONTAL SCROLL SNAP (YouTube Style)
========================================= */

.yt-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.yt-scroll::-webkit-scrollbar {
    display: none;
}

.yt-card {
    scroll-snap-align: start;
}
/* ==============================
   PREMIUM FOOTER
============================== */

.premium-footer {
    margin-top: 120px;
    padding: 80px 60px 50px;
    background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-col a:hover {
    color: #ff7a00;
}

.footer-bottom {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-brand {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.footer-copy {
    font-size: 13px;
    color: #777;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .premium-footer {
        padding: 60px 25px 40px;
    }

    .footer-brand {
        font-size: 26px;
    }
}
/* ================================
   LEGAL PAGES (Privacy / Terms)
================================ */

.legal-page {
    padding: 80px 20px;
    background: #f6f6f7;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.legal-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.legal-container h2 {
    margin-top: 40px;
    font-size: 20px;
}

.legal-container p,
.legal-container li {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.legal-container ul {
    padding-left: 20px;
}


/* ==========================================================
   CATEGORY PAGE WRAPPER
========================================================== */

.category-container {
    padding: 70px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==========================================================
   CATEGORY HEADER
========================================================== */

.category-header {
    margin-bottom: 50px;
}

.category-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.category-description {
    font-size: 18px;
    color: #666;
    max-width: 750px;
    line-height: 1.6;
}

/* ==========================================================
   CATEGORY GRID LAYOUT
========================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 50px 32px;
}

/* IMPORTANT: Prevent width conflicts */
.category-grid .yt-card {
    width: 100% !important;
    flex: unset !important;
    min-width: 0;
}

/* ==========================================================
   CARD STRUCTURE
========================================================== */

.category-grid .yt-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-grid .yt-card:hover {
    transform: translateY(-8px);
}

/* Thumbnail */
.category-grid .yt-thumb-wrap {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.category-grid .yt-thumb-wrap img {
    width: 100%;
    border-radius: 18px;
}

/* Duration Badge */
.category-grid .yt-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 5px;
}

/* ==========================================================
   CARD META
========================================================== */

.category-grid .yt-meta {
    margin-top: 14px;
}

.category-grid .yt-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.category-grid .yt-title a {
    text-decoration: none;
    color: #111;
}

.category-grid .yt-title a:hover {
    color: #ff5a1f;
}

.category-grid .yt-sub {
    font-size: 14px;
    color: #777;
}

/* ==========================================================
   PAGINATION (YouTube Style Clean)
========================================================== */

.pagination,
.nav-links {
    margin-top: 60px;
    text-align: center;
}

.pagination a,
.nav-links a,
.pagination span,
.nav-links span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 6px;
    background: #f2f2f2;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pagination a:hover,
.nav-links a:hover {
    background: #ff5a1f;
    color: #fff;
}

.pagination .current,
.nav-links .current {
    background: #111;
    color: #fff;
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
========================================================== */

@media (max-width: 1200px) {
    .category-container {
        padding: 60px 40px;
    }

    .category-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 40px 24px;
    }
}

@media (max-width: 768px) {

    .category-container {
        padding: 40px 20px;
    }

    .category-header h1 {
        font-size: 28px;
    }

    .category-description {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px 20px;
    }

    .category-grid .yt-title {
        font-size: 16px;
    }
}
