/* =========================================
   Theme: Casino Slot Edition (05)
   ========================================= */

:root {
    --bg-dark: #120000;
    --red-main: #660000;
    --red-bright: #cc0000;
    --gold-main: #ff2a2a; /* Changed to bright red for red theme */
    --gold-light: #ffcccc; /* Changed to light red */
    --gold-dark: #b30000; /* Changed to dark red */
    --text-main: #FFF;
    --slot-bg: #1a1a1a;
    --glow-gold: 0 0 10px rgba(255, 42, 42, 0.5), 0 0 20px rgba(255, 42, 42, 0.3);
    --btn-shadow: 0 8px 0 #8b0000, 0 10px 10px rgba(0,0,0,0.5);
    --btn-shadow-active: 0 2px 0 #8b0000, 0 4px 5px rgba(0,0,0,0.5);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at center, rgba(102, 0, 0, 0.3) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for bottom nav */
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to bottom, #2a0000, #120000);
    border-bottom: 2px solid var(--gold-dark);
}

.logo {
    max-width: 180px;
    filter: drop-shadow(0 0 5px var(--gold-main));
}

/* LED Marquee */
.marquee-container {
    background: #0a0000;
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid var(--red-bright);
    border-top: 2px solid var(--red-bright);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    font-family: 'Play', sans-serif;
    letter-spacing: 1px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 35s linear infinite;
    font-size: 15px;
    font-weight: 700;
}

.marquee-item {
    margin-right: 40px;
}

.marquee-item i {
    color: var(--gold-light);
    margin-right: 8px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Content */
.content-area {
    padding: 20px 10px;
}

/* Promo Slider */
.promo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--gold-dark);
    box-shadow: var(--glow-gold);
    margin-bottom: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold-main);
    box-shadow: 0 0 5px var(--gold-main);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.slot-btn {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    transition: all 0.1s ease;
    border: 2px solid var(--gold-main);
}

.slot-btn-primary {
    background: linear-gradient(to bottom, #ff3333, var(--red-bright));
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.slot-btn-secondary {
    background: linear-gradient(to bottom, #06C755, #05a044);
    border-color: #048b3b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    color: #ffffff;
}

.slot-btn:active {
    transform: translateY(2px);
}

.slot-btn-primary:active { box-shadow: 0 2px 3px rgba(0,0,0,0.3); }
.slot-btn-secondary:active { box-shadow: 0 2px 3px rgba(0,0,0,0.3); }


/* Slot Machine Wrapper */
.slot-machine-wrapper {
    background: linear-gradient(135deg, #3a0000, #1a0000);
    border: 1px solid var(--gold-main);
    border-radius: 15px;
    padding: 2px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    position: relative;
}

.slot-machine-header {
    background: linear-gradient(to right, var(--gold-dark), var(--gold-main), var(--gold-dark));
    padding: 10px;
    text-align: center;
    border-radius: 12px 12px 0 0;
    color: #FFD700;
    text-shadow: 0 0 5px #FFD700;
}

.slot-machine-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

.slot-machine-body {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi2rV7928GBgYgwcDAAAgwAAh4A8+q/gH1AAAAAElFTkSuQmCC') repeat;
    padding: 10px 5px;
    border-radius: 0 0 12px 12px;
}

.lottery-group {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--red-main);
    border-radius: 8px;
    padding: 8px 6px;
    margin-bottom: 12px;
}

.lottery-group:last-child { margin-bottom: 0; }

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--red-main);
    padding-bottom: 4px;
}

.group-header h3 {
    color: var(--gold-main);
    font-size: 16px;
    font-weight: 600;
}

.group-header .date {
    color: #ccc;
    font-size: 13px;
}

/* Slot Displays */
.slot-display {
    text-align: center;
    margin-bottom: 6px;
}

.slot-row {
    display: flex;
    gap: 8px;
}

.slot-row .slot-display {
    flex: 1;
    margin-bottom: 0;
}

.slot-display .label {
    display: block;
    color: #fff;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.slot-number-box {
    background: linear-gradient(to bottom, #d3d3d3, #ffffff, #d3d3d3);
    border: 1px solid #999;
    border-radius: 6px;
    padding: 6px 4px;
    font-family: 'Play', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #990000;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: inset 0 6px 12px rgba(0,0,0,0.5), inset 0 -2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
}

.main-prize .slot-number-box {
    font-size: 32px;
    color: #990000;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    border-color: #666;
    padding: 10px 5px;
    letter-spacing: 6px;
}

/* Spinning Animation Effect */
@keyframes slotSpin {
    0% { transform: translateY(-30px); opacity: 0; filter: blur(2px); }
    50% { opacity: 1; filter: blur(0px); }
    100% { transform: translateY(30px); opacity: 0; filter: blur(2px); }
}

.spinning {
    animation: slotSpin 0.1s linear infinite;
    color: #444 !important;
    text-shadow: none !important;
}


/* Jackpot Feed */
.jackpot-feed-section {
    background: linear-gradient(to bottom, #1a0000, #000);
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    padding: 15px;
}

.feed-title {
    text-align: center;
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #FFD700;
}

.feed-item {
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    animation: slideIn 0.4s ease-out;
}

.feed-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    margin-right: 12px;
    object-fit: cover;
}

.feed-info { flex: 1; }
.feed-name { color: #fff; font-size: 14px; font-weight: 600; display: block; }
.feed-detail { color: #aaa; font-size: 12px; }
.feed-amount { color: var(--gold-main); font-weight: 700; font-size: 16px; }

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

/* Toast */
.toast-container {
    position: fixed;
    bottom: 90px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--gold-main);
    border-radius: 50px;
    padding: 8px 15px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glow-gold);
    animation: toastIn 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards;
}

.toast.hide {
    animation: toastOut 0.4s ease-in forwards;
}

.toast-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    object-fit: cover;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title { color: #fff; font-size: 12px; }
.toast-message { color: var(--gold-main); font-size: 14px; font-weight: bold; }

@keyframes toastIn {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-120%); opacity: 0; }
}

/* Sticky Bottom Nav */
.sticky-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: #111;
    display: flex;
    padding: 10px 15px;
    gap: 10px;
    border-top: 2px solid var(--gold-dark);
    z-index: 999;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}

.sticky-btn-primary {
    background: linear-gradient(to bottom, #ff3333, var(--red-bright));
    border: 1px solid var(--red-main);
}

.sticky-btn-secondary {
    background: linear-gradient(to bottom, #444, #222);
    border: 1px solid var(--gold-dark);
    color: var(--gold-main);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0 40px;
    color: #666;
    font-size: 12px;
}
.footer-logo { max-width: 100px; opacity: 0.5; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 600px) {
    .slot-number-box { font-size: 20px; padding: 4px 2px; letter-spacing: 2px; }
    .main-prize .slot-number-box { font-size: 26px; padding: 8px 4px; letter-spacing: 3px; }
    .action-buttons { flex-direction: column; gap: 10px; }
    .logo { max-width: 140px; }
    .slot-machine-header h2 { font-size: 18px; }
    .content-area { padding: 15px 10px; }
    .marquee-content { font-size: 13px; }
    .group-header h3 { font-size: 14px; }
    .slot-display .label { font-size: 10px; }
}

/* Icon styling */

/* Icon styling */
.icon {
  display: inline-block;
  font-style: normal;
  margin-right: 6px;
  font-size: 1.2em;
  vertical-align: middle;
  color: #f59e0b;
}
