/* ============================================================
   VELOSBET77 ADDITIONAL CSS FOR JS FUNCTIONALITY
   ============================================================ */

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-up {
    transform: translateY(30px);
}

.reveal-fade-left {
    transform: translateX(-30px);
}

.reveal-fade-right {
    transform: translateX(30px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-fade-up.revealed,
.reveal-fade-left.revealed,
.reveal-fade-right.revealed,
.reveal-scale.revealed {
    transform: translate(0) scale(1);
}

/* Demo Modal */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.demo-modal__content {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    z-index: 1;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.demo-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.demo-modal__header h3 {
    margin: 0 0 8px;
    color: #fff;
}

.demo-modal__header .provider {
    color: #888;
    font-size: 14px;
}

.demo-modal__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat__label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.stat__value {
    display: block;
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
}

.demo-modal__actions {
    display: flex;
    gap: 12px;
}

.demo-modal__actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: #fff;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Live Activity */
.live-activity {
    max-height: 400px;
    overflow: hidden;
}

.live-activity__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.live-activity__item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.live-activity__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.live-activity__content {
    flex: 1;
}

.live-activity__user {
    color: #fff;
    font-weight: 600;
}

.live-activity__action {
    color: #888;
    font-size: 13px;
}

.live-activity__game {
    color: #ffd700;
    font-size: 13px;
}

.live-activity__amount {
    color: #00ff88;
    font-weight: bold;
}

.live-activity__item--deposit .live-activity__amount {
    color: #ff6b00;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.countdown__item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    min-width: 70px;
}

.countdown__value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    line-height: 1;
}

.countdown__label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b00;
}

.form-group input.is-invalid {
    border-color: #ff4444;
}

.form-group input.is-valid {
    border-color: #00ff88;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success__icon {
    width: 64px;
    height: 64px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1a1a2e;
}

.form-success h4 {
    color: #fff;
    margin: 0 0 8px;
}

.form-success p {
    color: #888;
    margin: 0;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

.tooltip--top::after {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #333;
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee__content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee.is-paused .marquee__content {
    animation-play-state: paused;
}

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

/* RTP Display */
.rtp-value {
    font-weight: bold;
    color: #fff;
}

.rtp-value.is-hot {
    color: #ff4444;
    animation: pulse 1s infinite;
}

.rtp-bar {
    height: 4px;
    background: #00ff88;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.rtp-bar.down {
    background: #ff4444;
}

.rtp-bar.up {
    background: #00ff88;
}

.hot-indicator {
    display: inline-block;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
}

.search-results.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.search-results__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-results__provider {
    color: #888;
    font-size: 12px;
}

/* Confetti Animation */
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Selection Color */
::selection {
    background: #ff6b00;
    color: #fff;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Header Scrolled State */
.site-header.is-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Body Loaded State */
body.is-loaded {
    opacity: 1;
}

body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Lazy Load Image States */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.is-loaded {
    opacity: 1;
}

img.is-error {
    opacity: 0.5;
}

/* Mobile Menu States */
.js-off-canvas-left.is-open {
    transform: translateX(0);
}

.page__overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.page__overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Slot Game Hover */
.slot-game-item.is-hovered {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.2);
}

.slot-game-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PWA Install Button */
.pwa-install-btn {
    display: none;
}

.pwa-install-btn.is-visible {
    display: block;
}
