﻿/* ==========================================================================
   MODULE: HOME TAB (CLEAN FLAT MATERIAL - ZERO DROP SHADOW)
   ========================================================================== */

:root {
    --fs-title: 45px;
    --fs-subtitle: 30px;
    --fs-body: 16px;
    --fs-small: 16px;
    --btn-bg: #1a73e8;
    --btn-bg-hover: #1557b0;
    --grid-gap: 0.625rem;
}

[data-theme="dark"] {
    --btn-bg: #ffffff;
    --btn-bg-hover: #e4e4e7;
}

/* --------------------------------------------------------------------------
   💻 1. DESKTOP HOME CONTAINER & HEROS (100% NO DROP SHADOW)
   -------------------------------------------------------------------------- */
.desktop-home-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: var(--grid-gap) var(--grid-gap) 40px var(--grid-gap);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.home-hero-stack {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    width: 100%;
}

.home-two-col-row {
    display: flex;
    gap: var(--grid-gap);
    width: 100%;
}

.home-hero-card {
    position: relative;
    width: 100%;
    height: 590px;
    border-radius: var(--radius-box);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-surface);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.home-hero-card.half-width {
    flex: 1;
    width: calc((100% - var(--grid-gap)) / 2);
    height: 590px;
}

.home-hero-video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 0;
    display: block;
    background-color: var(--bg-surface);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.home-hero-video-canvas.is-active {
    opacity: 1 !important;
}

.hero-card-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3.25rem;
    text-align: center;
    background: transparent !important;
    z-index: 1;
}

.home-hero-card.text-light .hero-card-title {
    color: #ffffff !important;
}
.home-hero-card.text-light .hero-card-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.home-hero-card.text-dark .hero-card-title {
    color: #000000 !important;
}
.home-hero-card.text-dark .hero-card-subtitle {
    color: rgba(0, 0, 0, 0.85) !important;
}

.hero-card-title {
    font-size: var(--fs-title);
    font-weight: 500;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.01em;
}

.hero-card-subtitle {
    font-size: var(--fs-subtitle);
    font-weight: 400;
    margin: 0 0 1.25rem 0;
}

.hero-card-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}

.hero-card-btn.btn-primary {
    font-size: var(--fs-body);
    font-weight: 500;
    background-color: var(--btn-bg) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--btn-bg) !important;
    border-radius: 2rem;
    padding: 0.65rem 1.35rem;
    min-width: 120px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hero-card-btn.btn-secondary {
    font-size: var(--fs-body);
    font-weight: 500;
    background-color: transparent !important;
    color: var(--btn-bg) !important;
    border: 1.5px solid var(--btn-bg) !important;
    border-radius: 2rem;
    padding: 0.65rem 1.35rem;
    min-width: 120px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

[data-theme="dark"] .hero-card-btn.btn-primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .hero-card-btn.btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Collection Section */
.collection-section {
    margin-top: 3.5rem;
    text-align: center;
    width: 100%;
}

.collection-title {
    font-size: var(--fs-title);
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 1.5rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    width: 100%;
}

.collection-item-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.collection-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-item-card .collection-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem 0.75rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    color: #ffffff;
    font-size: var(--fs-body);
    font-weight: 500;
    text-align: center;
}

/* Desktop Updates Feed */
.desktop-feed-section {
    margin-top: 3.5rem;
    width: 100%;
}

.desktop-feed-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-title);
    margin-bottom: 20px;
    text-align: left;
}

.desktop-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.desktop-feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-box);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.desktop-feed-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.desktop-feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-feed-body {
    padding: 18px 20px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desktop-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-feed-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 500;
}

.desktop-author-name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-title);
}

.desktop-post-time {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.desktop-post-caption {
    font-size: var(--fs-base);
    color: var(--text-title);
    line-height: 1.45;
}

/* Footer Section */
.home-minimal-footer {
    margin-top: 4rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: transparent;
}

.footer-disclaimer-text {
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-columns-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.f-col h4 {
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-title);
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.01em;
}

.f-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.f-col ul li a, .f-col ul li span {
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
}

.f-col ul li a:hover, .f-col ul li span:hover {
    color: var(--text-title);
    text-decoration: underline;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy-text {
    font-size: var(--fs-body);
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal-links a {
    font-size: var(--fs-body);
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-legal-links .divider {
    color: var(--text-muted);
}

.footer-bottom-right {
    font-size: var(--fs-body);
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   📱 2. MOBILE HOME VIEW
   -------------------------------------------------------------------------- */
.m-home-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-main);
}

.m-hscroll-row {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    width: 100%;
}
.m-hscroll-row::-webkit-scrollbar { display: none; }

.m-app-card {
    flex: 0 0 146px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.m-app-thumb {
    width: 146px;
    height: 146px;
    border-radius: var(--radius-box);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.m-app-name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.m-feed-divider {
    width: 100%;
    height: 10px;
    background-color: var(--bg-divider);
}

.m-card-stream { display: flex; flex-direction: column; width: 100%; }
.m-stream-card { display: flex; flex-direction: column; width: 100%; }

.m-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.m-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--bg-main);
    font-weight: 500;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-author-name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-title);
}

.m-post-time { font-size: var(--fs-xs); color: var(--text-muted); }

.m-stream-img-wrap {
    width: 100%;
    background-color: var(--bg-surface);
    display: flex;
}

.m-stream-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}

.m-stream-info {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-stream-text { font-size: var(--fs-base); color: var(--text-title); line-height: 1.4; }