/* ==========================================================================
   HOMEPAGE STYLES (front-page.php)
   ==========================================================================
   TABLE OF CONTENTS
   
   1.0: Homepage Sections
       1.1: Hero Section & Search Form
       1.2: Hero Logo Ticker
       1.3: Hero Software Showcase
       1.4: Featured Reviews Section
       1.5: Latest Reviews Section
       1.6: Categories Section
       1.7: Dual Section (How it Works & Hot Picks)

   2.0: Homepage Components
       2.1: Trending/Hot Picks Card

   3.0: Responsive Styles (Homepage Specific)
       3.1: Tablet Breakpoints (< 992px)
       3.2: Mobile Breakpoints (< 768px)

   4.0: Homepage Overrides
   ========================================================================== */

/* ==========================================================================
   1.0: Homepage Sections
   ========================================================================== */

/* 1.1: Hero Section & Search Form
   -------------------------------------------------------------------------- */
.hero-section { 
    padding: 100px 0; 
    display: flex; 
    align-items: center; 
    min-height: 80vh; 
}
.hero-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}
.hero-text {
    position: relative;
    padding-bottom: 100px;
}
.hero-text h1 { 
    font-size: 64px; 
    line-height: 1.1; 
    margin-bottom: 24px; 
    font-weight: 700; 
    color: var(--text-heading); 
}
.hero-text .subtitle { 
    font-size: 17px; 
    margin-bottom: 40px; 
    line-height: 1.6; 
}
.hero-search-form { 
    position: relative; 
    max-width: 500px; 
}
.hero-search-form .search-field { 
    width: 100%; 
    padding: 20px 70px 20px 30px; 
    border-radius: var(--radius-full); 
    border: 2px solid var(--border-color); 
    font-size: 16px; 
    font-family: var(--font-primary); 
    transition: all 0.3s ease; 
}
.hero-search-form .search-field:focus { 
    outline: none; 
    border-color: var(--brand-primary); 
    box-shadow: var(--shadow-md); 
}
.hero-search-form .search-submit { 
    position: absolute; 
    right: 8px; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: var(--brand-primary); 
    border: none; 
    border-radius: 50%; 
    width: 48px; 
    height: 48px; 
    cursor: pointer; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
} 
.hero-search-form .search-submit:hover { 
    background-color: var(--brand-primary-hover); 
    transform: translateY(-50%) scale(1.1); 
}

/* 1.2: Hero Logo Ticker
   -------------------------------------------------------------------------- */
.logo-ticker-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}
.logo-ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-ticker {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 40s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-ticker-wrap:hover .logo-ticker {
    animation-play-state: paused;
}
.logo-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-item img {
    max-height: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* 1.3: Hero Software Showcase
   -------------------------------------------------------------------------- */
.hero-visual { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.software-showcase { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}
a.software-card { 
    text-decoration: none; 
    color: inherit; 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    transition: all 0.3s ease; 
    cursor: pointer; 
}
a.software-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--brand-primary); 
}
.software-card .card-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 16px; 
    background-color: var(--bg-light); 
    color: var(--brand-primary); 
}
.software-card .card-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    border-radius: var(--radius-md); 
}
.software-card .card-name { 
    font-weight: 600; 
    margin-bottom: 8px; 
    font-size: 16px; 
}
.software-card .card-category { 
    font-size: 14px; 
    color: var(--text-body); 
    margin-bottom: 12px; 
}
.software-card .card-rating { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 14px; 
}
.software-card .card-rating .stars-wrapper { 
    position: relative; 
    display: inline-block; 
    line-height: 1; 
}
.software-card .card-rating .stars-background { 
    color: #e2e8f0; 
}
.software-card .card-rating .stars-foreground { 
    position: absolute; 
    top: 0; 
    left: 0; 
    white-space: nowrap; 
    overflow: hidden; 
    color: var(--color-warning); 
    line-height: 1; 
}
.software-card .rating-number { 
    font-weight: 500; 
}

/* 1.4: Featured Reviews Section
   -------------------------------------------------------------------------- */
.featured-reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}
.featured-card { 
    border-radius: var(--radius-lg); 
    padding: 40px; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    min-height: 300px; 
    position: relative; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}
.featured-card:hover { 
    transform: translateY(-8px); 
}
.featured-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.3)); 
    z-index: 1; 
}
.featured-card-content { 
    position: relative; 
    z-index: 2; 
}
.featured-card h3 { 
    color: #fff; 
    font-size: 24px; 
    margin-bottom: 10px; 
}
.featured-card p { 
    opacity: 0.8; 
    margin-bottom: 20px; 
    line-height: 1.6; 
}
.featured-card .card-link { 
    font-weight: 600; 
    color: #fff; 
}
.featured-card-bg-icon { 
    position: absolute; 
    right: -30px; 
    bottom: -30px; 
    width: 180px; 
    height: 180px; 
    z-index: 1; 
    opacity: 0.1; 
    pointer-events: none; 
    transition: transform 0.4s ease; 
}
.featured-card:hover .featured-card-bg-icon { 
    transform: scale(1.1) rotate(-5deg); 
}
.featured-card-bg-icon img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

/* 1.5: Latest Reviews Section
   -------------------------------------------------------------------------- */
.latest-reviews-section { 
    background: var(--bg-light); 
}
.latest-reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}
.latest-card-wrapper { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.latest-card-wrapper:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--brand-primary); 
}
.latest-card { 
    background: none; 
    border: none; 
    text-align: center; 
    flex-grow: 1; 
}
.latest-card .latest-card-logo-wrapper img { 
    height: 150px; 
    width: 100%; 
    object-fit: contain; 
    padding: 20px; 
}
.latest-card-content { 
    padding: 0 20px 20px 20px; 
}
.latest-card h3 { 
    font-size: 18px; 
    margin: 0 0 5px 0; 
}
.latest-card p { 
    font-size: 14px; 
    margin: 0 0 15px 0; 
}
.latest-card .rating { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    color: var(--color-warning); 
    font-size: 14px; 
}
.latest-card .rating span { 
    color: var(--text-body); 
    font-weight: 500; 
}
.latest-card-action { 
    padding: 0 20px 20px 20px; 
}
.latest-card-action .btn-get-tool { 
    display: block; 
    width: 100%; 
    text-align: center; 
}

/* 1.6: Categories Section
   -------------------------------------------------------------------------- */
.categories-section {
    background: var(--bg-light); 
}
.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 25px; 
}
.category-card { 
    background-color: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 30px 20px; 
    text-align: center; 
    transition: all 0.3s ease; 
}
.category-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--brand-primary); 
    color: var(--brand-primary); 
}
.category-card .category-icon { 
    margin: 0 auto 20px; 
    width: 64px; 
    height: 64px; 
    border-radius: 50%; 
    background: var(--bg-light); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.category-card h3 { 
    font-size: 18px; 
    margin: 0; 
}

/* 1.7: Dual Section (How it Works & Hot Picks)
   -------------------------------------------------------------------------- */
.dual-section { 
    background: var(--bg-light); 
}
.dual-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: stretch; 
}
.how-it-works-panel { 
    background-color: var(--text-heading); 
    padding: 50px 40px; 
    border-radius: var(--radius-lg); 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
}
.how-it-works-panel .section-title { 
    color: #fff; 
    margin-bottom: 40px; 
}
.how-it-works-panel .button { 
    margin-top: auto; 
}
.steps-infographic { 
    position: relative; 
    padding-left: 45px; 
    margin-bottom: 40px; 
}
.steps-infographic::before { 
    content: ''; 
    position: absolute; 
    left: 20px; top: 10px; bottom: 10px; 
    width: 2px; 
    background: rgba(255, 255, 255, 0.1); 
}
.steps-infographic .step { 
    position: relative; 
    margin-bottom: 30px; 
}
.step-number { 
    position: absolute; 
    left: -45px; 
    top: -5px; 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    background-color: var(--brand-primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    border: 3px solid var(--text-heading); 
}
.step-content h4 { 
    font-size: 18px; 
    color: #fff; 
    margin: 0 0 5px 0; 
}
.step-content p { 
    font-size: 15px; 
    line-height: 1.6; 
    color: var(--border-color); 
    margin: 0; 
}

/* ==========================================================================
   2.0: Homepage Components
   ========================================================================== */

/* 2.1: Trending/Hot Picks Card
   -------------------------------------------------------------------------- */
.trending-grid { 
    display: grid; 
    gap: 15px; 
}
.trending-card { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 16px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    transition: all 0.2s ease-in-out; 
}
.trending-card:hover { 
    border-color: var(--brand-primary); 
    box-shadow: var(--shadow-md); 
    transform: translateY(-4px); 
}
.trending-card-link { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
    color: inherit; 
}
.trending-logo { 
    flex-shrink: 0; 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.trending-logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.trending-info h4 { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-heading); 
    margin: 0 0 4px 0; 
    transition: color 0.2s ease; 
}
.trending-card-link:hover h4 { 
    color: var(--brand-primary); 
}
.trending-rating { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 14px; 
}
.trending-rating .stars { 
    color: var(--color-warning); 
    letter-spacing: 1px; 
}
.trending-rating .rating-num { 
    font-weight: 500; 
    color: var(--text-body); 
}

/* ==========================================================================
   3.0: Responsive Styles (Homepage Specific)
   ========================================================================== */

/* 3.1: Tablet Breakpoints (< 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-visual { margin-top: 40px; }
    .software-showcase { max-width: 600px; margin: 0 auto; }
    .hero-search-form { margin-left: auto; margin-right: auto; }
    .featured-reviews-grid, .latest-reviews-grid { grid-template-columns: 1fr 1fr; }
    .dual-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 48px; }
}

/* 3.2: Mobile Breakpoints (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-section { padding: 60px 0; }
    .hero-text { padding-bottom: 80px; }
    .hero-text h1 { font-size: 40px; }
    .logo-item { height: 30px; }
    .software-showcase { grid-template-columns: repeat(2, 1fr); }
    .featured-reviews-grid, 
    .latest-reviews-grid,
    .dual-grid,
    .categories-grid { 
        grid-template-columns: 1fr; 
    }
    .categories-grid { 
        grid-template-columns: 1fr 1fr; 
    }
}

/* ==========================================================================
   4.0: Homepage Overrides
   ========================================================================== */
body.home .site-content > .ast-container,
body.front-page .site-content > .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}