/**
 * MyChooz Aesthetic - Homepage Base Styles v0.4
 *
 * Section components split into:
 *   components/homepage-hero.css     — Featured + Hub Tiles
 *   components/homepage-ratings.css  — TOP 100 Carousel
 *   components/homepage-videos.css   — YouTube Videos
 *   components/homepage-posts.css    — Latest Posts
 *   components/homepage-savings.css  — AliExpress Savings
 *
 * @version 0.4.0
 */

/* ═══════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════ */

.homepage {
    /* Colors */
    --hp-primary: var(--wp--preset--color--primary, #e71d1d);
    --hp-primary-hover: var(--wp--preset--color--primary-hover, #c41818);
    --hp-text: var(--wp--preset--color--text, #1a1a1a);
    --hp-muted: var(--wp--preset--color--muted, #6b7280);
    --hp-border: var(--wp--preset--color--border, #e5e7eb);
    --hp-surface: var(--wp--preset--color--surface, #f7f8fa);
    --hp-content: var(--wp--preset--color--content, #ffffff);

    /* Radius */
    --hp-radius-sm: 8px;
    --hp-radius-md: 12px;
    --hp-radius-lg: 16px;

    /* Island */
    --hp-island-bg: var(--hp-content);
    --hp-island-border: var(--hp-border);
    --hp-island-radius: var(--hp-radius-lg);
    --hp-island-shadow: 0 1px 3px rgba(0,0,0,0.04);
    --hp-island-padding: 24px;
    --hp-section-gap: 24px;

    /* Transitions */
    --hp-transition-fast: 150ms ease;
    --hp-transition-normal: 200ms ease;
    --hp-transition-slow: 300ms ease;
}

.homepage {
    padding-bottom: 40px;
    background: var(--hp-surface);
}

/* ═══════════════════════════════════════════════════════════════
   ISLAND BASE
   ═══════════════════════════════════════════════════════════════ */

.hp-island {
    background: var(--hp-island-bg);
    border: 1px solid var(--hp-island-border);
    border-radius: var(--hp-island-radius);
    box-shadow: var(--hp-island-shadow);
    padding: var(--hp-island-padding);
    margin-bottom: var(--hp-section-gap);
}

.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED SECTION HEADER
   Black title left + Red link with arrow right
   ═══════════════════════════════════════════════════════════════ */

.hp-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hp-section-header::after {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--mca-primary);
    border-radius: 1px;
}

.hp-section-header__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.hp-section-header__title a {
    color: var(--mca-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-section-header__title a:hover {
    color: var(--mca-primary);
}

.hp-section-header__title .hp-arrow {
    color: var(--mca-primary);
    font-size: 18px;
    font-weight: 700;
    transition: transform 200ms ease;
}

.hp-section-header__title a:hover .hp-arrow {
    transform: translateX(4px);
}

.hp-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-primary);
    text-decoration: none;
    transition: all var(--hp-transition-normal);
}

.hp-section-header__link:hover {
    color: var(--hp-primary-hover);
}

.hp-section-header__link .hp-arrow {
    color: var(--mca-primary);
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    transition: transform 200ms ease;
}

.hp-section-header__link:hover .hp-arrow {
    transform: translateX(3px);
}

/* Legacy: keep for backwards compatibility */
.hp-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hp-section-title::before,
.hp-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hp-border);
}

.hp-section-title span {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hp-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hp-section-header__title {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DEV: Placeholder links highlight (TEMPORARY)
   ═══════════════════════════════════════════════════════════════ */

.hp-tile__quick[href="#"] {
    outline: 2px dashed var(--mca-primary);
    outline-offset: -2px;
}
