/* ===== shorts.css – Tottenham Hotspur Theme ===== */
/* Navy (#132257) · Light Blue (#A9C0FF) – a premium video shopping feed */

:root {
    /* Tottenham Hotspur palette */
    --primary: #132257;          /* navy */
    --primary-dark: #0e1b3f;     /* deeper navy */
    --primary-light: #e0e7ff;    /* very light blue for backgrounds */
    --accent: #A9C0FF;            /* light blue */
    --secondary: #0f172a;         /* dark charcoal – kept for depth */
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --feed-width: 400px;
}

/* ---------- RESET & BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    height: 100%; width: 100%;
    overflow: hidden;               /* prevent body scroll, feed scrolls inside */
    background: #000; color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- MODERN HEADER (glassmorphism) ---------- */
.modern-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}
.modern-header.hidden { transform: translateY(-100%); }
.logo-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.25rem; font-weight: 700;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}
.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800; letter-spacing: -0.02em;
}
.header-actions button {
    color: white; font-size: 1.25rem;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.header-actions button:hover { background: rgba(255,255,255,0.1); }

/* ---------- FLOATING CATEGORIES (scrollable chips) ---------- */
.floating-categories {
    position: fixed; top: 70px; left: 0; right: 0;
    z-index: 45;
    display: flex; gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    transition: transform 0.3s ease;
}
.floating-categories::-webkit-scrollbar { display: none; }
.floating-categories.hidden { transform: translateY(-100%); }
.category-chip {
    flex: 0 0 auto;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 500;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.category-chip.active {
    background: var(--primary);
    border-color: transparent;
}
.category-chip:hover { background: rgba(255,255,255,0.3); }

/* ---------- VIDEO FEED (snap scroll) ---------- */
.modern-feed {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;   /* smooth iOS scrolling */
    scroll-snap-type: y mandatory;       /* snap to each video */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}
.feed-container {
    width: 100%;
    max-width: var(--feed-width);
    margin: 0 auto;
    position: relative;
}

/* VIDEO CARD */
.modern-video-card {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}

/* Video container */
.video-container-modern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    cursor: pointer; /* for play/pause */
}
.video-player-modern {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    pointer-events: none;
}
.video-loading-modern {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    display: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* VIDEO HEADER */
.video-header-modern {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    z-index: 20;
}
.user-info-modern {
    display: flex; align-items: center; gap: 0.75rem;
}
.user-avatar-modern {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}
.user-details h3 {
    font-size: 1rem; font-weight: 600;
    margin-bottom: 0.125rem;
}
.user-details p {
    font-size: 0.75rem; opacity: 0.7;
}

/* PRODUCT BADGE */
.product-badge-floating {
    position: absolute; top: 80px; right: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 30;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.product-badge-floating i { margin-right: 0.25rem; }

/* SOUND TOGGLE BUTTON */
.sound-toggle {
    position: absolute;
    bottom: 100px;
    right: 16px;
    z-index: 60;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s;
}
.sound-toggle.muted i::before {
    content: "\f6a9"; /* fa-volume-off */
}
.sound-toggle:not(.muted) i::before {
    content: "\f6a8"; /* fa-volume-up */
}

/* RIGHT SIDE CONTROLS */
.video-controls-side {
    position: absolute; right: 1rem; bottom: 120px;
    display: flex; flex-direction: column; gap: 1.5rem;
    z-index: 30;
}
.side-action {
    display: flex; flex-direction: column; align-items: center;
    color: white; border: none; background: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.side-action:hover { transform: scale(1.05); }
.side-action-icon {
    width: 48px; height: 48px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.side-action-count {
    font-size: 0.75rem; font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.like-btn.liked i { color: #f91880; } /* keep heart red for contrast */

/* PROGRESS BAR */
.video-progress-modern {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 30;
}
.progress-fill-modern {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* BOTTOM INFO OVERLAY */
.bottom-info-modern {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 2rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 20;
}
.caption-modern {
    font-size: 1rem; font-weight: 500;
    margin-bottom: 0.5rem;
    max-width: 70%;
}
.hashtags-modern {
    display: flex; gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.hashtag-modern {
    font-size: 0.875rem; color: var(--accent);
}
.shop-button-modern {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}
.shop-button-modern:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* UPLOAD FAB */
.upload-fab {
    position: fixed; bottom: 80px; right: 1.5rem;
    width: 56px; height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 40;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
}
.upload-fab:hover { transform: scale(1.05); background: var(--primary-dark); }

/* BOTTOM NAVIGATION */
.modern-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-around;
    padding: 0.5rem 1rem 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 50;
    transition: transform 0.3s ease;
}
.modern-bottom-nav.hidden { transform: translateY(100%); }
.nav-item-modern {
    display: flex; flex-direction: column; align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    transition: var(--transition);
}
.nav-item-modern i { font-size: 1.25rem; margin-bottom: 0.125rem; }
.nav-item-modern.active { color: var(--primary); }
.nav-item-modern:hover { color: white; }

/* ===== COMMENT PANEL (drawer from bottom) ===== */
.comment-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}
.comment-panel.active { transform: translateY(0); }
.comment-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.comment-panel-header h3 {
    font-size: 1.125rem; font-weight: 600;
}
.comment-panel-header button {
    color: white; font-size: 1.25rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.comment-panel-header button:hover { background: rgba(255,255,255,0.1); }
.comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-item {
    display: flex; gap: 0.75rem;
}
.comment-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 600;
}
.comment-content {
    flex: 1;
}
.comment-author {
    font-weight: 600; font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.comment-text {
    font-size: 0.875rem; color: rgba(255,255,255,0.8);
    line-height: 1.4;
}
.comment-time {
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
    margin-top: 0.25rem;
}
.comment-input-area {
    display: flex; gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #1a1a1a;
}
.comment-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
}
.comment-input-area input:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-input-area button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}
.comment-input-area button:hover {
    background: var(--primary-dark);
}

/* Overlay behind comment panel */
.comment-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.comment-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== MOBILE: edge-to-edge ===== */
@media (max-width: 767px) {
    .feed-container { max-width: 100%; }
    .modern-video-card { margin: 0; border-radius: 0; }
}

/* ===== DESKTOP: centered, rounded ===== */
@media (min-width: 768px) {
    .feed-container { max-width: var(--feed-width); }
    .modern-video-card {
        border-radius: var(--radius-xl);
        overflow: hidden;
        margin: 0.5rem auto;
        height: calc(100vh - 1rem);
    }
}