/*
Theme Name: Astra Child - Nerdisa
Template: astra
Description: Custom child theme for Nerdisa editorial homepage
Author: Your Name
Version: 1.0.0
*/

/* ============================================
   HERO SECTION
   ============================================ */

body.page-template-homepage #nerdisa-homepage {
    width: 100%;
    margin: 0;
    padding: 0;
}

.nerdisa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nerdisa-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 auto 40px;
    opacity: 0.95;
    max-width: 700px;
    color: white;
}

.hero-search {
    max-width: 650px;
    margin: 0 auto 50px;
    position: relative;
}

.hero-search form {
    position: relative;
    display: block;
}

.hero-search input[type="search"] {
    width: 100%;
    padding: 24px 60px 22px 24px; /* Was 20px */
    font-size: 20px; /* Was 17px */
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.hero-search input[type="search"]:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.hero-search input[type="search"]::placeholder {
    color: #999;
}

/* Show only the icon button, hide text button */
.hero-search button[type="submit"] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: color 0.3s ease;
}

.hero-search button[type="submit"]:hover {
    color: #333;
}

/* Hide text from button, show only icon */
.hero-search button[type="submit"] .search-submit-text {
    display: none;
}

/* Hide ALL Astra search buttons */
.hero-search button[type="submit"],
.hero-search .search-submit,
.hero-search input[type="submit"] {
    display: none !important;
}

/* Add search icon inside input using CSS */
.hero-search input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 28px; }
}

/* ============================================
   STEP 2: CATEGORIES SECTION
   ============================================ */

.nerdisa-categories {
    padding: 60px 20px;
    background: #f8f9fa;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 35px 0;
    color: #1a1a1a;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.category-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.category-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.category-count {
    font-size: 13px;
    color: #666;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   STEP 3: FEATURED GUIDES
   ============================================ */

.nerdisa-featured-guides {
    padding: 60px 20px;
    background: #f0f4f8; /* Light blue-gray instead of white */
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.guide-image {
    overflow: hidden;
    height: 200px;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.05);
}

.guide-content {
    padding: 24px;
}

.guide-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.guide-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.guide-title a:hover {
    color: #667eea;
}

.guide-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.guide-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.guide-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STEP 4: LATEST REVIEWS - DARK MODE
   ============================================ */

.nerdisa-latest-reviews {
    padding: 60px 20px;
    background: #1a1a2e; /* Dark background */
}

.nerdisa-latest-reviews .section-title {
    color: #ffffff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: #16213e; /* Darker card background */
    border: 1px solid #2d3748;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.review-image {
    height: 180px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .review-image img {
    transform: scale(1.05);
}

.review-content {
    padding: 20px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.review-title a {
    color: #ffffff;
    text-decoration: none;
}

.review-title a:hover {
    color: #667eea;
}

.review-meta {
    font-size: 13px;
    color: #a0aec0;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #667eea;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STEP 5: TESTIMONIALS SLIDER - IMPROVED
   ============================================ */

.nerdisa-trust {
    padding: 60px 20px;
    background: #f0f4f8;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-track {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    padding: 0 20px;
}

.testimonial.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.7;
    color: #1a1a1a;
    font-style: italic;
    margin-bottom: 24px;
    background: white;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    color: #667eea;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    font-size: 15px;
    color: #666;
    font-weight: 600;
    margin-top: 16px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.testimonial-dots .dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.testimonial-dots .dot.active {
    background: #667eea;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .testimonial-text {
        font-size: 18px;
        padding: 35px 40px 35px 35px;
    }
    
    .testimonial-text::before {
        font-size: 50px;
        left: 15px;
    }
}

/* ============================================
   STEP 6: VENDOR CTA - TWO COLUMN
   ============================================ */

.nerdisa-vendor-cta {
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-left {
    text-align: left;
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: white;
}

.cta-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cta-pricing {
    font-size: 15px;
    margin: 20px 0;
    opacity: 0.9;
}

.cta-right {
    text-align: left;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.cta-benefits li {
    font-size: 16px;
    margin-bottom: 14px;
    padding-left: 8px;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 14px 35px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-left,
    .cta-right {
        text-align: center;
    }
    
    .cta-benefits {
        display: inline-block;
        text-align: left;
    }
    
    .cta-title {
        font-size: 26px;
    }
}

