﻿/* ============================================
   Uahdoa - Homepage Styles (Comic Doodle)
   ============================================ */

/* --- Hero Banner --- */
.uh-hero {
    position: relative;
    background: var(--uh-surface);
    border: var(--uh-border-width) solid var(--uh-border);
    border-radius: var(--uh-radius-lg);
    padding: 40px 36px;
    margin-bottom: 36px;
    box-shadow: 5px 5px 0 var(--uh-border);
    overflow: hidden;
}

.uh-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: var(--uh-accent);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.uh-hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 40%;
    width: 100px;
    height: 100px;
    background: var(--uh-secondary);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.uh-hero-content {
    position: relative;
    z-index: 1;
}

.uh-hero-badge {
    display: inline-block;
    font-family: var(--uh-font-heading);
    font-size: 14px;
    letter-spacing: 1px;
    padding: 4px 14px;
    background: var(--uh-primary);
    color: #fff;
    border: 2px solid var(--uh-border);
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 2px 2px 0 var(--uh-border);
}

.uh-hero-title {
    font-family: var(--uh-font-heading);
    font-size: 44px;
    letter-spacing: 2px;
    color: var(--uh-text);
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 var(--uh-accent);
}

.uh-hero-desc {
    font-size: 17px;
    color: var(--uh-text-light);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.uh-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Category Pills --- */
.uh-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.uh-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--uh-font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 18px;
    background: var(--uh-surface);
    border: var(--uh-border-width) solid var(--uh-border);
    border-radius: 24px;
    color: var(--uh-text);
    text-decoration: none;
    box-shadow: 2px 2px 0 var(--uh-border);
    transition: all var(--uh-transition);
}

.uh-cat-pill:hover {
    background: var(--uh-accent);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--uh-border);
    color: var(--uh-text);
}

.uh-cat-pill-icon {
    font-size: 18px;
}

/* --- Section Header --- */
.uh-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.uh-section-more {
    font-family: var(--uh-font-hand);
    font-size: 15px;
    color: var(--uh-primary);
    text-decoration: none;
    border: 2px solid var(--uh-primary);
    border-radius: 20px;
    padding: 5px 16px;
    transition: all var(--uh-transition);
}

.uh-section-more:hover {
    background: var(--uh-primary);
    color: #fff;
}

/* --- Trending Row --- */
.uh-trending-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 36px;
}

.uh-trending-row::-webkit-scrollbar {
    height: 6px;
}

.uh-trending-row::-webkit-scrollbar-thumb {
    background: var(--uh-primary);
    border-radius: 4px;
}

.uh-trending-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

/* --- Featured Row (Spotlight + Daily Pick) --- */
.uh-featured-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* --- Spotlight --- */
.uh-spotlight {
    background: var(--uh-surface);
    border: var(--uh-border-width) solid var(--uh-border);
    border-radius: var(--uh-radius-lg);
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--uh-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--uh-transition), box-shadow var(--uh-transition);
}

.uh-spotlight:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--uh-border);
}

.uh-spotlight-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.uh-spotlight-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: var(--uh-border-width) solid var(--uh-border);
}

.uh-spotlight-main-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uh-spotlight-main-title {
    font-family: var(--uh-font-heading);
    font-size: 26px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.uh-spotlight-main-desc {
    font-size: 14px;
    color: var(--uh-text-light);
    line-height: 1.65;
}

/* --- Daily Pick --- */
.uh-daily-pick {
    background: linear-gradient(135deg, var(--uh-surface) 0%, #FFF5E6 100%);
    border: var(--uh-border-width) solid var(--uh-border);
    border-radius: var(--uh-radius-lg);
    box-shadow: 4px 4px 0 var(--uh-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--uh-transition), box-shadow var(--uh-transition);
}

.uh-daily-pick:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--uh-border);
}

.uh-daily-pick-img {
    width: 100%;
    flex-shrink: 0;
    border-bottom: var(--uh-border-width) solid var(--uh-border);
    overflow: hidden;
}

.uh-daily-pick-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.uh-daily-pick-info {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uh-daily-pick-label {
    font-family: var(--uh-font-heading);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--uh-highlight);
    margin-bottom: 6px;
}

.uh-daily-pick-name {
    font-family: var(--uh-font-heading);
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.25;
}

.uh-daily-pick-desc {
    font-size: 13px;
    color: var(--uh-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

/* --- Tag Cloud --- */
.uh-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.uh-tag-item {
    font-family: var(--uh-font-hand);
    font-size: 14px;
    padding: 5px 14px;
    background: var(--uh-surface);
    border: 2px solid var(--uh-border-light);
    border-radius: 18px;
    color: var(--uh-text-light);
    text-decoration: none;
    transition: all var(--uh-transition);
}

.uh-tag-item:hover {
    border-color: var(--uh-primary);
    color: var(--uh-primary);
    background: rgba(255, 107, 107, 0.05);
}

/* --- Stats Bar --- */
.uh-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--uh-surface);
    border: var(--uh-border-width) solid var(--uh-border);
    border-radius: var(--uh-radius-lg);
    box-shadow: 3px 3px 0 var(--uh-border);
    margin-bottom: 36px;
}

.uh-stat-item {
    text-align: center;
}

.uh-stat-num {
    font-family: var(--uh-font-heading);
    font-size: 32px;
    color: var(--uh-primary);
    line-height: 1;
}

.uh-stat-label {
    font-family: var(--uh-font-hand);
    font-size: 14px;
    color: var(--uh-text-muted);
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .uh-featured-row {
        grid-template-columns: 1fr;
    }

    .uh-spotlight-side {
        flex-direction: row;
        overflow-x: auto;
    }

    .uh-spotlight-side .uh-comic-card {
        flex: 0 0 200px;
    }

    .uh-hero-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .uh-hero { padding: 28px 20px; }
    .uh-hero-title { font-size: 28px; }
    .uh-hero-desc { font-size: 15px; }

    .uh-daily-pick-name { font-size: 20px; }
    .uh-spotlight-main-title { font-size: 22px; }

    .uh-stats-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .uh-trending-card { flex: 0 0 220px; }
}

@media (max-width: 380px) {
    .uh-hero-title { font-size: 24px; }
    .uh-cat-pills { gap: 6px; }
    .uh-cat-pill { padding: 6px 12px; font-size: 13px; }
}
