/* ==========================================================================
   WAVES FREE DIAMONDS - Premium Dark Gaming CSS
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 33, 0.75);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(10, 14, 22, 0.9);
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #7b2cbf;
    --accent-magenta: #d946ef;
    --accent-amber: #ffb703;
    --accent-gold: #fb8500;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
    --glow-purple: 0 0 30px rgba(123, 44, 191, 0.4);
    --glow-gold: 0 0 20px rgba(251, 133, 0, 0.3);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.glow-orb-1 {
    top: -10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
}

.glow-orb-2 {
    bottom: 10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
}

/* Ticker Marquee Bar */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.ticker {
    display: inline-flex;
    animation: ticker 35s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 24px;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ticker-item .highlight {
    color: var(--accent-amber);
    font-weight: 700;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-dots {
    display: flex;
    gap: 5px;
}

.brand-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.brand-dots .dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.brand-dots .dot.cyan { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.brand-dots .dot.gold { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-green);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Main Content Layout */
.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.content-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .content-container {
        grid-template-columns: 1fr;
    }
}

/* Step Badges */
.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.step-badge.cyan-glow { color: var(--accent-cyan); }
.step-badge.amber-glow { color: var(--accent-amber); margin-top: 24px; }

.badge-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.4;
}

/* Video Section (Left) */
.video-card-frame {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-purple);
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
}

.video-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
}

.video-tags {
    display: flex;
    gap: 8px;
}

.v-tag {
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.v-tag.active {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.v-tag.alert-tag {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.video-live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-red);
    font-weight: 800;
    font-size: 0.7rem;
}

.video-live-pill .pill-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Section CTA & Card */
.cta-header {
    text-align: center;
    margin-bottom: 24px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 128, 0, 0.3);
    margin-bottom: 6px;
}

.sub-title {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.viewers-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--text-main);
}

/* CTA Button: GET DIAMONDS */
.btn-get-diamonds {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #7b2cbf 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 114, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
}

.btn-get-diamonds:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 242, 254, 0.7), 0 0 30px rgba(123, 44, 191, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-get-diamonds:active {
    transform: translateY(1px) scale(0.99);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    30% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.btn-icon-left svg {
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.btn-icon-right {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.btn-get-diamonds:hover .btn-icon-right {
    transform: translateX(6px);
}

/* App Info Card */
.app-info-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.app-card-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.app-icon-container {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.icon-ring {
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    border: 2px solid var(--accent-cyan);
    opacity: 0.4;
    filter: blur(4px);
}

.app-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pills-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.pill {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.pill-trending {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
}

.pill-verified {
    background: rgba(123, 44, 191, 0.3);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.app-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.app-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.rating-num {
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
}

/* App Metrics Grid */
.app-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
}

.text-green { color: var(--accent-green); }
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-amber); }

.metric-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 40px auto 32px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    max-width: 600px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-icon {
    font-size: 1rem;
}

.trust-dot {
    color: rgba(255, 255, 255, 0.2);
}

/* Live Comments Section */
.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot-red {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
    animation: pulse 1.5s infinite;
}

.comments-title h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.comments-watching-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comments-watching-count span {
    color: var(--accent-cyan);
    font-weight: 700;
}

.comments-stream-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 18px;
}

/* Custom Scrollbar for Comments */
.comments-stream-container::-webkit-scrollbar {
    width: 4px;
}
.comments-stream-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.comments-stream-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.comment-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    animation: fadeInComment 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInComment {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

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

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.time-ago {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.comment-text {
    font-size: 0.85rem;
    color: #e5e7eb;
    word-break: break-word;
}

/* Comment Input Form */
.comment-input-form {
    display: flex;
    gap: 10px;
}

.comment-input-form input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input-form input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.btn-send-comment {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    border-radius: var(--radius-md);
    padding: 0 20px;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-send-comment:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}
