/* Homepage Discover Sections — Trending strip + Category grid
   Theme: cyberpunk / cyan, square corners, matches existing site style.
   Safe to remove: only loaded by includes/homepage_discover.php on the default homepage. */

.hd-section {
    margin: 28px 0 32px;
    padding: 0;
}

.hd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 0 4px 14px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    margin-bottom: 18px;
}

.hd-section-title {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}
.hd-section-title i {
    margin-right: 8px;
    opacity: 0.9;
}
.hd-section-sub {
    color: #9aa0a8;
    font-size: 0.9rem;
}

/* ---------- Trending strip ---------- */
.hd-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.hd-trend-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.15);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hd-trend-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.15);
}

.hd-trend-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 7px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    letter-spacing: 1px;
}

.hd-trend-banner {
    position: relative;
    aspect-ratio: 468 / 60;
    width: 100%;
    background: rgba(0, 255, 255, 0.04);
    overflow: hidden;
}
.hd-trend-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hd-trend-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 255, 255, 0.5);
    font-size: 1.6rem;
}

.hd-growth {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.5px;
    border: 1px solid currentColor;
    background: rgba(0, 0, 0, 0.7);
}
.hd-growth-up   { color: #00ff88; text-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }
.hd-growth-new  { color: #ffcc00; text-shadow: 0 0 8px rgba(255, 204, 0, 0.5); }
.hd-growth-down { color: #ff5577; }
.hd-growth-flat { color: #9aa0a8; }

.hd-trend-body {
    padding: 10px 12px 12px;
}
.hd-trend-name {
    font-weight: 700;
    color: #e8faff;
    font-size: 0.98rem;
    line-height: 1.2;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-trend-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: #9aa0a8;
}
.hd-trend-cat {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(0, 255, 255, 0.75);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
}
.hd-trend-votes {
    color: #00ff88;
    font-weight: 600;
    white-space: nowrap;
}
.hd-trend-votes i { margin-right: 3px; }

/* ---------- Category grid ---------- */
.hd-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.hd-cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.12);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hd-cat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.04);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.12);
}
.hd-cat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.15);
}
.hd-cat-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.hd-cat-body {
    flex: 1 1 auto;
    min-width: 0;
}
.hd-cat-name {
    font-weight: 700;
    color: #e8faff;
    font-size: 0.95rem;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hd-cat-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: #9aa0a8;
}
.hd-cat-stats strong {
    color: #00ffff;
    font-weight: 700;
}
.hd-cat-week {
    color: #00ff88;
}
.hd-cat-week i { margin-right: 2px; }
.hd-cat-go {
    flex: 0 0 auto;
    color: rgba(0, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: transform .2s ease, color .2s ease;
}
.hd-cat-card:hover .hd-cat-go {
    color: #00ffff;
    transform: translateX(3px);
}
.hd-cat-foot {
    text-align: right;
    margin-top: 14px;
}
.hd-cat-all {
    color: rgba(0, 255, 255, 0.85);
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 255, 255, 0.4);
    padding-bottom: 2px;
}
.hd-cat-all:hover {
    color: #00ffff;
    border-bottom-color: #00ffff;
}
.hd-cat-all i { margin-left: 4px; }

@media (max-width: 768px) {
    .hd-section-title { font-size: 1.15rem; }
    .hd-trending-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
    .hd-cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
