@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ========== GLOBAL RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    /* keep content clear of the fixed bottom navbar */
    padding-bottom: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== NAVBAR (BOTTOM) ========== */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px; /* slightly taller for tap targets */
    background: #000;
    border-top: 2px solid #ff0055;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(255, 0, 85, 0.3);
    backdrop-filter: blur(10px);
}

.navbar a {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #ff0055;
    transform: scale(1.2);
}

/* ========== HOME PAGE ========== */
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* allow page to scroll; don't lock to 100vh */
    height: auto;
    min-height: calc(100vh - 140px);

    padding: 40px 20px 20px;
    text-align: center;

    /* also keep this page clear of the navbar */
    padding-bottom: 90px;
}

.home-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ff0055, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.home-container p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

.home-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-buttons a {
    padding: 12px 24px;
    background: linear-gradient(90deg, #ff0055, #ff3c00);
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.home-buttons a:hover {
    background: linear-gradient(90deg, #ff3366, #ff6600);
    transform: scale(1.08);
}

/* ========== LEFT SIDEBAR ========== */
.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    background: #111;
    border-right: 1px solid #222;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 999;
}

.sidebar-left .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0055;
    margin-bottom: 20px;
}

.sidebar-left .menu a {
    color: #ccc;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-left .menu a:hover,
.sidebar-left .menu a.active {
    background: #ff0055;
    color: #fff;
}

/* ========== VIDEO FEED ========== */
.video-feed {
    margin-left: 220px;
    padding-bottom: 80px;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
}

.video-container {
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-video {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    margin: auto;
    border-radius: 10px;
}

/* ========== VIDEO CAPTION ========== */
.video-caption {
    position: absolute;
    bottom: 90px;
    left: 20px;
    z-index: 10;
    font-size: 1rem;
    max-width: 70%;
    line-height: 1.4;
    color: white;
}

.video-caption strong {
    display: block;
    margin-bottom: 4px;
}

/* ========== VIDEO INTERACTIONS ========== */
.video-sidebar {
    position: absolute;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.sidebar-btn {
    font-size: 1.6rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sidebar-btn:hover {
    transform: scale(1.2);
}

/* ========== WATERMARK ========== */
.watermark {
    position: absolute;
    top: 10px;
    left: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0,0,0,0.4);
    padding: 5px 10px;
    border-radius: 5px;
}

/* ========== AUTH LOGO ========== */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.auth-container .logo img {
    width: 100px;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

/* ========== UPLOAD PAGE ========== */
.upload-page {
    background-color: #000;
    padding: 40px 20px;
    margin-left: 220px;
}

.upload-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.upload-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #aaa;
    margin-bottom: 30px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.upload-box {
    border: 2px dashed #ff0055;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
}

.upload-box:hover {
    background: rgba(255, 255, 255, 0.08);
}

.upload-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1rem;
    color: #ddd;
}

.caption-input {
    height: 100px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    resize: none;
    font-size: 1rem;
    background: #111;
    color: #fff;
}

.caption-input::placeholder {
    color: #888;
}

.char-count {
    font-size: 0.9rem;
    color: #888;
    text-align: right;
    margin-top: -20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #ccc;
}

.form-row input,
.form-row select {
    padding: 12px;
    background: #111;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.upload-btn {
    padding: 14px;
    background: linear-gradient(90deg, #ff0055, #ff6600);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: linear-gradient(90deg, #ff3366, #ff8800);
}

.upload-status {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
    .sidebar-left { display: none; }
    .video-feed { margin-left: 0; }
    .main-video { max-width: 100%; border-radius: 0; }
    .video-caption { bottom: 75px; left: 15px; font-size: 0.9rem; }
    .video-sidebar { bottom: 75px; right: 15px; }
    .navbar a { font-size: 1.2rem; }
    .upload-page { margin-left: 0; padding: 25px 15px; }
    .upload-wrapper { padding-bottom: 100px; }
    .upload-box { padding: 30px 15px; }
    .caption-input { height: 80px; }
    .form-row { gap: 6px; }
}

/* ====== Landing: ticker / urgency bar ====== */
.ticker-bar,
.urgency-ticker,
.urgency-banner {
    position: relative;
    max-width: 980px;
    margin: 12px auto 32px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #ddd;
    text-align: center;
}

/* ====== Landing: comparison table ====== */
.comparison,
.comparison-section,
.table-wrap {
    max-width: 980px;
    margin: 16px auto 56px;
    padding: 0 12px;
}

.comparison table,
.comparison-section table,
.table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
}

.comparison th, .comparison td,
.comparison-section th, .comparison-section td,
.table-wrap th, .table-wrap td {
    padding: 16px 18px;
    border-top: 1px solid #222;
    text-align: left;
}

.comparison tr:nth-child(even),
.comparison-section tr:nth-child(even),
.table-wrap tr:nth-child(even) {
    background: #0f0f0f;
}

.comparison .cta-under-table,
.comparison-section .cta-under-table,
.table-wrap .cta-under-table {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* === About Echo Section (Dark Theme) === */
.about-echo {
    padding: 28px;
    margin: 30px auto 140px; /* big bottom gap so navbar never covers */
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #fff;

    /* when anchored, stop underlapping the navbar */
    scroll-margin-bottom: 90px;
}

.about-echo h2 {
    margin-top: 0;
    font-size: 1.9rem;
    color: #ff0055;
    text-align: center;
}

.about-echo p {
    line-height: 1.6;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.about-grid article {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 0, 85, 0.3);
}

.about-grid h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #ffcc00;
}

.about-grid p {
    font-size: 0.95rem;
    color: #aaa;
}

.about-cta {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff0055, #ff6600);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.about-btn:hover {
    background: linear-gradient(90deg, #ff3366, #ff8800);
    transform: scale(1.05);
}

.about-btn.ghost {
    background: transparent;
    border: 2px solid #ff0055;
    color: #ff0055;
}

.about-btn.ghost:hover {
    background: #ff0055;
    color: white;
}

/* ---------- Responsive tweaks for About grid ---------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .comparison,
    .comparison-section,
    .table-wrap {
        margin: 12px auto 44px;
    }

    .comparison th, .comparison td,
    .comparison-section th, .comparison-section td,
    .table-wrap th, .table-wrap td {
        padding: 12px;
    }
}
