/* ── Tampouri Bot Overlay — OBS Browser Source ───────────────── */
/* NOX/Tampouri brand: deep navy + orange amber accents            */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Transparent background for OBS */
html, body {
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Overlay Container ───────────────────────────────────────── */
#overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
}

/* ── Card Wrapper — handles positioning ──────────────────────── */
#card {
    position: relative;
    min-width: 260px;
    max-width: 380px;
}

/* ── Glow ring — animated border effect ──────────────────────── */
#card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        #E8930C,
        #F5A623,
        transparent 40%,
        transparent 60%,
        #E8930C
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
}

#card.visible::before,
#card.entering::before {
    opacity: 1;
    animation: rotateBorder 3s linear infinite;
}

@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --glow-angle: 360deg; }
}

/* ── Inner card ──────────────────────────────────────────────── */
.card-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 43, 0.96) 0%, rgba(20, 16, 48, 0.96) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(232, 147, 12, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Orange accent bar on top — animated gradient sweep */
.card-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, #E8930C, #F5A623, #E8930C, transparent);
    background-size: 200% 100%;
    animation: sweepAccent 2s ease-in-out infinite;
}

@keyframes sweepAccent {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Content area — compact, centered */
.card-content {
    padding: 14px 18px;
    position: relative;
    text-align: center;
}

/* Floating ember particles inside the card */
.card-content::before,
.card-content::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #F5A623;
    opacity: 0;
}

#card.visible .card-content::before {
    right: 20px;
    top: 12px;
    animation: ember 2.5s ease-in-out infinite;
}

#card.visible .card-content::after {
    right: 40px;
    bottom: 14px;
    animation: ember 3s ease-in-out 0.5s infinite;
}

@keyframes ember {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    30% { opacity: 0.6; transform: translateY(-6px) scale(1); }
    70% { opacity: 0.4; transform: translateY(-10px) scale(0.8); }
}

/* Title */
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #F5A623;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(232, 147, 12, 0.5);
}

/* Main text */
.card-text {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* User attribution */
.card-user {
    font-size: 11px;
    color: rgba(245, 166, 35, 0.35);
    font-weight: 400;
}

/* ── Animation States ────────────────────────────────────────── */

/* Hidden — off screen */
#card.hidden {
    opacity: 0;
    transform: translateX(-40px) scale(0.85);
    pointer-events: none;
    filter: blur(4px);
}

/* Entering — dramatic slide + scale + blur clear */
#card.entering {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.4s ease-out;
}

/* Visible — subtle breathing glow + float */
#card.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.01);
    }
}

/* Exiting — smooth fade out */
#card.exiting {
    opacity: 0;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    animation: none;
    transition: opacity 0.8s ease-out;
}
