/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Description:  Custom Child Theme for SongSubtext (Hero Top + Grid Bottom)
 Author:       WPCodeQuill
 Version:      2.1.0
*/

/* =========================================
   1. GLOBAL & WRAPPER
   ========================================= */
.wpcq-split-wrapper {
    background-color: #ffffff;
    color: #172033;
    font-family: system-ui, -apple-system, sans-serif;
}

/* =========================================
   2. TOP SECTION: HERO & SEARCH
   ========================================= */
.wpcq-home-hero {
    padding: clamp(60px, 8vw, 100px) 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.wpcq-hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.wpcq-hero-title {
    margin: 0 0 15px;
    color: #0f172a;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.wpcq-hero-subtitle {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #475569;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

/* Search Form */
.wpcq-main-search {
    max-width: 650px;
    margin: 0 auto 30px;
    /* Added padding to prevent it from touching the screen edges */
    padding: 0 15px; 
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input-group .search-field {
    flex-grow: 1;
    padding: 16px 24px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #1e293b;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ensures it doesn't overflow its container */
}

.search-input-group .search-field:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.search-input-group .search-submit {
    padding: 16px 32px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap; /* Prevents button text from wrapping awkwardly */
}

.search-input-group .search-submit:hover {
    background: #0284c7;
}

.search-input-group .search-submit:active {
    transform: scale(0.98);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column; /* Stacks the input and button vertically */
    }
    
    .search-input-group .search-submit {
        width: 100%; /* Makes the button full width on mobile */
    }
}

/* Category Pills */
.wpcq-hero-cats {
    margin-top: 10px;
}

.cat-label {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-cat-pill {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-cat-pill:hover,
.hero-cat-pill:focus-visible {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

/* =========================================
   3. BOTTOM SECTION: GRID & CARDS
   ========================================= */
.wpcq-latest-section {
    padding: clamp(50px, 6vw, 80px) 20px;
    background-color: #ffffff;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    margin: 0 0 40px;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
}

.wpcq-song-grid {
    display: grid;
    /* Responsive Grid: Cards will never shrink below 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Card Styling */
.song-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.song-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.song-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.song-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.song-card:hover .song-card-image img {
    transform: scale(1.06);
}

/* Category Badge on Image */
.song-cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

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

.song-card-content h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.read-more-link {
    margin-top: auto;
    color: #0ea5e9;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.song-card:hover .read-more-link {
    color: #0284c7;
}



/* =========================================
   SIDEBAR WIDGET: TRENDING SONGS (Block-3)
   ========================================= */

/* 1. The Main Card Container */
#block-3 {
    background: #ffffff;
    border-radius: 16px; /* Smooth rounded corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Padding Adjustment */
#block-3 .wp-block-group__inner-container {
    padding: 25px 30px;
}

/* 2. The Title "Trending Songs" */
#block-3 h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a; /* Dark Blue Text */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0; /* Subtle separator line */
    display: flex;
    align-items: center;
}

/* Add a FIRE Icon automatically */
#block-3 h2::before {
    content: "ðŸ”¥";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 3. The List (Remove bullets, add chart numbers) */
#block-3 ul.wp-block-latest-posts {
    list-style: none !important;
    padding: 0;
    margin: 0;
    counter-reset: chart-counter; /* Starts the counting */
}

/* 4. List Items */
#block-3 ul.wp-block-latest-posts li {
    position: relative;
    padding: 12px 0 12px 35px; /* Left padding makes room for the number */
    border-bottom: 1px dashed #f1f5f9; /* Dotted line between songs */
    transition: transform 0.2s ease;
}



#block-3 ul.wp-block-latest-posts li:last-child {
    border-bottom: none;
}


/* 4. Add SONG Emoji (ðŸŽµ) instead of Numbers */
#block-3 ul.wp-block-latest-posts li::before {
    content: "ðŸŽµ"; /* Song Emoji */
    position: absolute;
  	color:blue;
    left: 0;
    top: 12px;
    font-size: 14px;
    filter: grayscale(100%); /* Start grey */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Top 3 Numbers get special colors */
#content ul.wp-block-latest-posts li:nth-child(1)::before { background: #fee2e2; color: #ef4444; } /* Red for #1 */
#block-3 ul.wp-block-latest-posts li:nth-child(2)::before { background: #ffedd5; color: #f97316; } /* Orange for #2 */
#block-3 ul.wp-block-latest-posts li:nth-child(3)::before { background: #fef9c3; color: #eab308; } /* Yellow for #3 */

/* 6. The Links */
#block-3 a.wp-block-latest-posts__post-title {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    display: block;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* 7. Hover Effects */
#block-3 li:hover {
    transform: translateX(5px); /* Slight nudge to right */
}

#block-3 li:hover a {
    color: #0ea5e9; /* Turns Blue */
}

#block-3 li:hover::before {
    background: #0ea5e9 !important; /* Circle turns Blue */
    color: #fff !important;
}

/* =========================================
   SIDEBAR WIDGET: BEST LABEL (Categories)
   ========================================= */

/* 1. Target the Categories List */
ul.wp-block-categories {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    padding: 20px 25px !important; /* Internal spacing */
    margin: 0;
    list-style: none !important; /* Remove default bullets */
}
/* 2. Style the Title "Best Label" */
h2.wp-block-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Add FOLDER Icon to Title */
h2.wp-block-heading::before {
    content: "ðŸ“"; /* Folder Icon */
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 3. Style the List Items */
ul.wp-block-categories li {
    position: relative;
    padding: 10px 0 10px 30px; /* Space for the emoji */
    border-bottom: 1px solid #f1f5f9; /* Light separator line */
    transition: transform 0.2s ease;
}

ul.wp-block-categories li:last-child {
    border-bottom: none;
}
/* 4. Add SONG Emoji (ðŸ“) instead of Numbers */
ul.wp-block-categories li::before {
    content: "ðŸ“"; /* Song Emoji */
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 14px;
    filter: grayscale(100%); /* Start grey */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* 5. Style the Links */
ul.wp-block-categories li a {
    text-decoration: none;
    color: #475569; /* Soft Grey Text */
    font-weight: 600;
    font-size: 15px;
    display: block;
    transition: color 0.2s ease;
}

/* 6. Hover Effects */
ul.wp-block-categories li:hover {
    transform: translateX(5px); /* Slide right */
    background: #f8fafc;
}

ul.wp-block-categories li:hover a {
    color: #0ea5e9; /* Blue Text on Hover */
}

ul.wp-block-categories li:hover::before {
    filter: grayscale(0%); /* Emoji becomes colorful */
    opacity: 1;
    transform: scale(1.2); /* Emoji pops */
}


/* =========================================
   PREMIUM DARK FOOTER STYLES
   ========================================= */

/* 1. Main Footer Container */
.wpcq-site-footer {
    background-color: #0f172a; /* Deep Dark Blue */
    color: #94a3b8; /* Soft Grey Text */
    padding: 60px 20px;
    margin-top: auto; /* Pushes footer to bottom */
    position: relative;
    font-family: 'Segoe UI', sans-serif;
}

/* 2. The Top Gradient Border (The "Glowing" Line) */
.wpcq-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8); /* Blue to Purple */
}

/* 3. Inner Layout (Grid System) */
.wpcq-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

/* 4. Column 1: Brand & Copyright */
.footer-col.footer-brand {
    flex: 2; /* Takes up more space */
    min-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
    letter-spacing: -0.5px;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 400px;
    color: #cbd5e1;
}

.copyright-text {
    font-size: 0.9rem;
    opacity: 0.6;
    display: block;
    margin-top: 10px;
}

/* 5. Column 2: Legal Links */
.footer-col.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* 6. The Menu Styling (Removing Bullets) */
ul.footer-menu {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

ul.footer-menu li {
    margin-bottom: 12px;
}

ul.footer-menu li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* 7. Hover Effect (Slide & Brighten) */
ul.footer-menu li a:hover {
    color: #38bdf8; /* Bright Blue */
    transform: translateX(5px); /* Slide Right */
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    .wpcq-footer-inner {
        flex-direction: column; /* Stack vertically */
        text-align: left;
    }
    
    .footer-col.footer-brand {
        margin-bottom: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 30px;
    }
}

/* --- FOOTER RECENT POSTS (With Images) --- */

.footer-recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-post-card {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03); /* Subtle background */
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-post-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.3); /* Blue border on hover */
    transform: translateX(5px);
}

/* Image Styling */
.footer-post-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the square */
}

.no-img {
    font-size: 24px;
}

/* Text Styling */
.footer-post-info .post-title {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.footer-post-card:hover .post-title {
    color: #38bdf8; /* Blue text on hover */
}

/* =========================================
   6. PAGINATION
   ========================================= */
.wpcq-pagination {
    grid-column: 1 / -1; /* Spans the entire width of the grid */
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.wpcq-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.wpcq-pagination li a,
.wpcq-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Active Page Number */
.wpcq-pagination li span.current {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

/* Hover State */
.wpcq-pagination li a:hover,
.wpcq-pagination li a:focus {
    background: #f8fafc;
    color: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

/* Pagination Dots (...) */
.wpcq-pagination li span.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    min-width: auto;
    padding: 0 8px;
}


/* =========================================
   SINGLE POST CUSTOM HERO BOX
   ========================================= */
.wpcq-single-hero-box {
    display: flex;
    background-color: #ffffff;
    border: 4px solid #00aae4;
    padding: 6px; 
    margin-bottom: 40px;
    gap: 20px;
    align-items: center; /* Changed to center to prevent image stretching/cropping */
}

.wpcq-hero-image {
    flex: 0 0 35%; 
    max-width: 400px;
    display: flex;
}

.wpcq-hero-image img {
    width: 100%;
    height: auto; /* Changed to auto so the full image displays proportionally */
    display: block;
}

.no-thumb-placeholder {
    width: 100%;
    min-height: 250px;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: #475569;
    background: #e2e8f0;
}

.wpcq-hero-meta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 15px 15px 0;
}

.wpcq-hero-title {
    margin: 0 0 25px 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #000000;
    line-height: 1.2;
}

.wpcq-meta-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.meta-row {
    font-size: 1.05rem;
    color: #000000;
}

.meta-label {
    font-weight: 900;
}

.meta-value {
    font-weight: 400; /* Removed bold styling for dates/values */
}

/* Styling for the new clickable category link */
.meta-value a {
    color: #000000;
    text-decoration: none;
    font-weight: 700; /* Keeps the category name slightly bold if desired, remove if you want it normal */
    transition: color 0.2s ease;
}

.meta-value a:hover {
    color: #00aae4;
    text-decoration: underline;
}

.wpcq-credit-text {
    margin: auto 0 0 0; 
    color: #00aae4; 
    font-weight: 800;
    font-size: 1.05rem;
}

/* Hide GeneratePress default titles & meta on single posts */
.single .entry-header {
    display: none !important;
}


.wpcq-eeat-wrapper{
margin-top:40px;
padding:30px;
background:#fff;
border:1px solid #ddd;
border-radius:10px;
}

.wpcq-eeat-wrapper h2{
margin-top:35px;
margin-bottom:15px;
font-size:24px;
}

.wpcq-eeat-table{
width:100%;
border-collapse:collapse;
margin-bottom:25px;
}

.wpcq-eeat-table th,
.wpcq-eeat-table td{

padding:12px;

border:1px solid #ddd;

text-align:left;

}

.wpcq-eeat-table th{

background:#f6f6f6;

width:220px;

}

.wpcq-copyright{

padding:20px;

background:#fff8dc;

border-left:5px solid #f0ad4e;

border-radius:8px;

}



.wpcq-related{

margin-top:50px;

}

.wpcq-related h2{

margin-bottom:25px;

}

.wpcq-related-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:20px;

}

.wpcq-song-card{

background:#fff;

border:1px solid #eee;

border-radius:10px;

overflow:hidden;

transition:.3s;

}

.wpcq-song-card:hover{

transform:translateY(-5px);

box-shadow:0 10px 20px rgba(0,0,0,.08);

}

.wpcq-song-card img{

width:100%;

height:170px;

object-fit:cover;

display:block;

}

.wpcq-song-card h3{

padding:15px;

font-size:18px;

margin:0;

}

.wpcq-song-card p{

padding:0 15px 15px;

font-size:14px;

color:#666;

}

/* ==================================================
   Share Buttons Styling
   ================================================== */
.wpcq-share-wrapper {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.wpcq-share-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

.wpcq-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Brand Colors */
.share-x { background-color: #0f1419; } /* Twitter/X Black */
.share-fb { background-color: #1877f2; } /* Facebook Blue */
.share-wa { background-color: #25d366; } /* WhatsApp Green */

/* ==================================================
   Manual Author Box Styling
   ================================================== */
.wpcq-author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.author-location {
    display: inline-block;
    font-size: 13px;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-bio {
    margin: 0;
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

/* Mobile Responsiveness for Author Box */
@media (max-width: 600px) {
    .wpcq-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .wpcq-single-hero-box {
        flex-direction: column;
        padding: 4px;
        gap: 15px;
    }

    .wpcq-hero-image {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .wpcq-hero-meta-content {
        padding: 10px 15px 20px;
    }
    
    .wpcq-meta-details {
        margin-bottom: 20px;
    }
}


/* =========================================
   4. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    /* Stack them on Tablets/Phones */
    .wpcq-home-hero {
        width: 100%;
        height: auto;
        position: relative; /* Not sticky on mobile */
        padding: 80px 30px;
    }
    
    .wpcq-latest-section {
        width: 100%;
        padding: 50px 20px;
    }

    .wpcq-hero-title { font-size: 2.5rem; }
}

/* --- HIDE AUTHOR/DATE ON POSTS --- */
.entry-meta, .entry-footer {
    display: none !important;
}