/* ========================================
   THEMED CSS CLASSES
   Using CSS variables from theme system
   ======================================== */

/* LEGACY WOOD COLORS - For exact legacy compatibility */
:root {
    /* Wood tones */
    --dark-wood: #2d1b00;
    --medium-wood: #503628;
    --light-wood: #7a5a47;
    --wood-border: #2a1c14;
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */

/* EXACT LEGACY .forest-card STYLES */
.themed-card {
    /* EXACT LEGACY GRADIENT */
    background: linear-gradient(145deg, var(--medium-wood), rgba(45, 27, 0, 0.9)) !important;
    color: var(--theme-text) !important;
    border-radius: 16px;

    /* EXACT LEGACY BORDER */
    border: 3px solid var(--wood-border) !important;

    /* EXACT LEGACY SHADOWS */
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.3),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.6) !important;

    backdrop-filter: blur(10px);
}

.themed-modal {
    background: var(--theme-modal-bg) !important;
    border-color: var(--theme-card-border) !important;
    color: var(--theme-text) !important;
    backdrop-filter: blur(10px);
}

/* EXACT LEGACY .wood-texture */
.wood-texture {
    background:
        /* Fine wood grain */
        repeating-linear-gradient(
            90deg,
            rgba(80, 54, 40, 0.1) 0px,
            rgba(80, 54, 40, 0.1) 2px,
            transparent 2px,
            transparent 60px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(42, 28, 20, 0.08) 0px,
            rgba(42, 28, 20, 0.08) 1px,
            transparent 1px,
            transparent 30px
        ),
        linear-gradient(145deg, var(--medium-wood), var(--dark-wood));
}

/* EXACT LEGACY .campfire-glow */
.campfire-glow {
    box-shadow:
        0 0 30px rgba(255, 111, 0, 0.4),
        0 0 60px rgba(255, 160, 0, 0.2),
        inset 0 0 20px rgba(255, 111, 0, 0.1) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* EXACT LEGACY @keyframes emberGlow */
@keyframes emberGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 111, 0, 0.4),
            0 0 40px rgba(255, 160, 0, 0.2),
            inset 0 0 20px rgba(255, 111, 0, 0.1);
        filter: brightness(1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 111, 0, 0.6),
            0 0 60px rgba(255, 160, 0, 0.3),
            inset 0 0 30px rgba(255, 111, 0, 0.15);
        filter: brightness(1.15);
    }
}

.ember-glow-active {
    animation: emberGlow 3s ease-in-out infinite;
}

/* ========================================
   BUTTONS
   ======================================== */

/* EXACT LEGACY .forest-button STYLES */
.themed-button-primary {
    /* EXACT LEGACY GRADIENT - Not using var()! */
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    color: var(--theme-button-primary-text) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    min-height: 52px;
    text-transform: none;
    position: relative;
    overflow: hidden;

    /* EXACT LEGACY BORDER - 2px not 3px! */
    border: 2px solid var(--wood-border) !important;

    /* EXACT LEGACY SHADOWS */
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 6px 0 var(--dark-wood),
        0 8px 20px rgba(0, 0, 0, 0.5) !important;

    /* EXACT LEGACY TEXT SHADOW */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* EXACT LEGACY HOVER - Only -2px movement! */
.themed-button-primary:hover {
    /* Keep same gradient on hover, just brightness filter */
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 8px 0 var(--dark-wood),
        0 12px 25px rgba(0, 0, 0, 0.6) !important;
    filter: brightness(1.1);
}

/* EXACT LEGACY ACTIVE - +4px movement! */
.themed-button-primary:active {
    transform: translateY(4px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 2px 0 var(--dark-wood),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.themed-button-secondary {
    /* Direct gradient like legacy */
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    color: var(--theme-button-secondary-text) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    min-height: 52px;
    position: relative;
    overflow: hidden;

    /* EXACT LEGACY */
    border: 2px solid var(--wood-border) !important;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 6px 0 var(--dark-wood),
        0 8px 20px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.themed-button-secondary:hover {
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 8px 0 var(--dark-wood),
        0 12px 25px rgba(0, 0, 0, 0.6) !important;
    filter: brightness(1.1);
}

.themed-button-secondary:active {
    transform: translateY(4px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 2px 0 var(--dark-wood),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.themed-button-danger {
    /* Same gradient as all legacy buttons */
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    color: var(--theme-button-primary-text) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    min-height: 52px;
    position: relative;
    overflow: hidden;

    /* EXACT LEGACY */
    border: 2px solid var(--wood-border) !important;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 6px 0 var(--dark-wood),
        0 8px 20px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.themed-button-danger:hover {
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 8px 0 var(--dark-wood),
        0 12px 25px rgba(0, 0, 0, 0.6) !important;
    filter: brightness(1.1);
}

.themed-button-danger:active {
    transform: translateY(4px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 2px 0 var(--dark-wood),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.themed-button-success {
    /* Same gradient as all legacy buttons */
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    color: var(--theme-text-dark) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    min-height: 52px;
    position: relative;
    overflow: hidden;

    /* EXACT LEGACY */
    border: 2px solid var(--wood-border) !important;
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 6px 0 var(--dark-wood),
        0 8px 20px rgba(0, 0, 0, 0.5) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.themed-button-success:hover {
    background: linear-gradient(145deg, var(--medium-wood), var(--dark-wood)) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 8px 0 var(--dark-wood),
        0 12px 25px rgba(0, 0, 0, 0.6) !important;
    filter: brightness(1.1);
}

.themed-button-success:active {
    transform: translateY(4px);
    box-shadow:
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1),
        0 2px 0 var(--dark-wood),
        0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Small action buttons - LESS 3D effect */
.action-button-small {
    min-height: auto !important;

    /* Subtle border */
    border: 2px solid rgba(0, 0, 0, 0.3) !important;

    /* Minimal shadows - flat appearance */
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.05),
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.action-button-small:hover {
    transform: translateY(-1px) !important;
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.08),
        0 3px 0 rgba(0, 0, 0, 0.35),
        0 5px 12px rgba(0, 0, 0, 0.4) !important;
}

.action-button-small:active {
    transform: translateY(1px) !important;
    box-shadow:
        inset 1px 1px 4px rgba(0, 0, 0, 0.3),
        inset -1px -1px 2px rgba(255, 255, 255, 0.03),
        0 1px 0 rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   TAB BUTTONS (Status/Activity)
   ENHANCED CARVED WOOD TOGGLE DESIGN
   ======================================== */

/* Tab button - INACTIVE state (Light wood) */
.tab-button-inactive {
    /* Light wood gradient */
    background: linear-gradient(145deg,
        rgba(68, 64, 60, 0.9) 0%,
        rgba(41, 37, 36, 0.85) 50%,
        rgba(28, 25, 23, 0.9) 100%) !important;
    color: #f59e0b !important;
    border: 3px solid rgba(87, 83, 78, 0.6) !important;

    /* Carved wood depth */
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.3),
        inset -2px -2px 6px rgba(255, 255, 255, 0.05),
        0 4px 0 var(--dark-wood),
        0 6px 16px rgba(0, 0, 0, 0.4) !important;

    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Wood grain texture overlay - inactive */
.tab-button-inactive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
        rgba(0, 0, 0, 0.05) 0px,
        transparent 1px,
        transparent 3px);
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

.tab-button-inactive:hover {
    background: linear-gradient(145deg,
        rgba(87, 83, 78, 0.95) 0%,
        rgba(68, 64, 60, 0.9) 50%,
        rgba(41, 37, 36, 0.95) 100%) !important;
    color: #fbbf24 !important;
    border-color: rgba(120, 113, 108, 0.8) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.3),
        inset -2px -2px 6px rgba(255, 255, 255, 0.08),
        0 6px 0 var(--dark-wood),
        0 10px 20px rgba(0, 0, 0, 0.5) !important;
    filter: brightness(1.15);
}

/* Tab button - ACTIVE state (Burnt wood with static ember glow) */
.tab-button-active {
    /* Burnt wood gradient (dark charcoal to burnt umber) */
    background: linear-gradient(145deg,
        #3d1a0f 0%,
        #2d0e08 40%,
        #1a0700 70%,
        #0d0300 100%) !important;
    color: #fef3c7 !important;

    /* Burnt edges - thick dark border */
    border: 4px solid #1a0700 !important;

    /* Static ember glow (NO ANIMATION) */
    box-shadow:
        /* Inner ember glow (static) */
        inset 0 0 30px rgba(255, 111, 0, 0.25),
        inset 0 0 15px rgba(255, 160, 0, 0.2),
        inset 0 -10px 20px rgba(252, 163, 17, 0.15),
        /* Burnt wood depth */
        inset 3px 3px 6px rgba(0, 0, 0, 0.6),
        inset -2px -2px 4px rgba(255, 111, 0, 0.05),
        /* Outer glow (subtle, no pulsing) */
        0 0 20px rgba(255, 111, 0, 0.3),
        0 0 40px rgba(255, 160, 0, 0.15),
        /* 3D depth */
        0 6px 0 #0d0300,
        0 8px 20px rgba(0, 0, 0, 0.6) !important;

    text-shadow:
        0 0 8px rgba(255, 160, 0, 0.6),
        1px 1px 3px rgba(0, 0, 0, 0.9);

    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

    /* NO ANIMATION - Static glow only */
}

/* Burnt wood texture overlay - active */
.tab-button-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Charred texture */
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.3) 0px,
            transparent 1px,
            transparent 2px),
        /* Ember cracks */
        repeating-linear-gradient(45deg,
            transparent 0px,
            rgba(255, 111, 0, 0.03) 1px,
            transparent 2px);
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

/* ========================================
   INPUTS & FORMS
   ======================================== */

.themed-input {
    background: var(--theme-input-bg) !important;
    border: 2px solid var(--theme-input-border) !important;
    color: var(--theme-text) !important;
    transition: all 0.2s ease;
}

.themed-input:focus {
    border-color: var(--theme-input-border-focus) !important;
    box-shadow: 0 0 0 3px var(--theme-input-border-focus) !important;
    box-shadow: 0 0 15px var(--theme-glow-color);
    outline: none !important;
}

.themed-input::placeholder {
    color: var(--theme-text-muted) !important;
    opacity: 0.7;
}

.themed-textarea {
    background: var(--theme-input-bg) !important;
    border: 2px solid var(--theme-input-border) !important;
    color: var(--theme-text) !important;
    transition: all 0.2s ease;
}

.themed-textarea:focus {
    border-color: var(--theme-input-border-focus) !important;
    box-shadow: 0 0 15px var(--theme-glow-color);
    outline: none !important;
}

.themed-select {
    background: var(--theme-input-bg) !important;
    border: 2px solid var(--theme-input-border) !important;
    color: var(--theme-text) !important;
    transition: all 0.2s ease;
}

.themed-select:focus {
    border-color: var(--theme-input-border-focus) !important;
    outline: none !important;
}

/* ========================================
   TEXT & TYPOGRAPHY
   ======================================== */

.themed-text {
    color: var(--theme-text) !important;
}

.themed-text-muted {
    color: var(--theme-text-muted) !important;
}

.themed-heading {
    color: var(--theme-heading) !important;
    text-shadow: 0 2px 4px var(--theme-shadow-color);
}

.themed-text-primary {
    color: var(--theme-primary) !important;
}

.themed-text-secondary {
    color: var(--theme-secondary) !important;
}

.themed-text-accent {
    color: var(--theme-accent) !important;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.themed-badge-success {
    background: var(--theme-success) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.themed-badge-warning {
    background: var(--theme-warning) !important;
    color: var(--theme-text-dark) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.themed-badge-error {
    background: var(--theme-error) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.themed-badge-info {
    background: var(--theme-info) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.themed-badge-primary {
    background: var(--theme-primary) !important;
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ========================================
   BORDERS & DIVIDERS
   ======================================== */

.themed-border {
    border-color: var(--theme-card-border) !important;
}

.themed-border-primary {
    border-color: var(--theme-primary) !important;
}

.themed-border-secondary {
    border-color: var(--theme-secondary) !important;
}

.themed-divider {
    border-top: 2px solid var(--theme-card-border);
    opacity: 0.5;
}

/* ========================================
   SPECIAL EFFECTS
   ======================================== */

.themed-glow {
    /* Subtle glow - minimal */
    box-shadow: 0 0 12px var(--theme-glow-color) !important;
    opacity: 0.8;
}

.themed-glow-strong {
    /* Stronger glow for emphasis */
    box-shadow: 0 0 20px var(--theme-glow-color) !important;
}

.themed-shimmer {
    position: relative;
    overflow: hidden;
}

.themed-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--theme-shimmer-color),
        transparent
    );
    opacity: 0.3;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* ========================================
   LINKS
   ======================================== */

.themed-link {
    color: var(--theme-primary) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.themed-link:hover {
    color: var(--theme-primary-hover) !important;
    text-shadow: 0 0 10px var(--theme-glow-color);
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.themed-progress-bg {
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border);
}

.themed-progress-bar {
    background: linear-gradient(
        90deg,
        var(--theme-primary),
        var(--theme-secondary)
    ) !important;
    box-shadow: 0 0 10px var(--theme-glow-color);
    transition: width 0.5s ease;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.themed-alert-success {
    background: var(--theme-success) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--theme-success);
    padding: 1rem;
    border-radius: 0.5rem;
}

.themed-alert-warning {
    background: var(--theme-warning) !important;
    color: var(--theme-text-dark) !important;
    border-left: 4px solid var(--theme-warning);
    padding: 1rem;
    border-radius: 0.5rem;
}

.themed-alert-error {
    background: var(--theme-error) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--theme-error);
    padding: 1rem;
    border-radius: 0.5rem;
}

.themed-alert-info {
    background: var(--theme-info) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--theme-info);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.themed-hover-lift {
    transition: all 0.2s ease;
}

.themed-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--theme-shadow-color) !important;
}

.themed-card-hover {
    transition: background 0.2s ease;
}

.themed-card-hover:hover {
    background: var(--theme-card-bg-hover) !important;
}

.themed-hover-glow:hover {
    box-shadow: 0 0 30px var(--theme-glow-color);
}

.themed-hover-scale:hover {
    transform: scale(1.05);
}

/* ========================================
   BACKGROUNDS
   ======================================== */

.themed-bg-primary {
    background: var(--theme-primary) !important;
}

.themed-bg-secondary {
    background: var(--theme-secondary) !important;
}

.themed-bg-card {
    background: var(--theme-card-bg) !important;
}

.themed-bg-input {
    background: var(--theme-input-bg) !important;
}

/* ========================================
   TRANSITIONS
   ======================================== */

.themed-transition {
    transition: all 0.3s ease;
}

.themed-transition-fast {
    transition: all 0.15s ease;
}

.themed-transition-slow {
    transition: all 0.5s ease;
}

/* ========================================
   🔥 PREMIUM FIRE EFFECTS - Mobile Optimized
   ======================================== */

/* 1. GRADIENT SHIFT ON TOUCH - Smooth ember glow transition */
.themed-button-primary,
.themed-button-secondary,
.themed-button-danger,
.themed-button-success {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--theme-button-primary), var(--theme-button-primary-hover)) !important;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.themed-button-primary:active,
.themed-button-secondary:active,
.themed-button-danger:active,
.themed-button-success:active {
    background-position: 100% 50% !important;
    box-shadow: 0 2px 8px var(--theme-shadow-color), inset 0 0 20px rgba(255, 111, 0, 0.3) !important;
}

/* 2. PULSING FIRE GLOW - Active status indicator */
@keyframes firePulse {
    0%, 100% {
        box-shadow: 0 0 15px var(--theme-status-there), 0 0 30px var(--theme-status-there);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 25px var(--theme-status-there), 0 0 45px var(--theme-status-there);
        opacity: 0.9;
    }
}

.fire-pulse {
    animation: firePulse 2s ease-in-out infinite;
}

/* Status badge pulse for "Там съм" */
.status-there-glow {
    position: relative;
}

.status-there-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid var(--theme-status-there);
    opacity: 0.6;
    animation: firePulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* 3. SHIMMER SWEEP ON LOAD - Gold light reflection */
@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

.shimmer-sweep {
    position: relative;
    overflow: hidden;
}

.shimmer-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(251, 191, 36, 0.3),
        transparent
    );
    animation: shimmerSweep 2s ease-out;
    pointer-events: none;
}

/* 4. 3D CARVED WOOD BUTTONS - Enhanced richness & depth */
.carved-wood {
    background: linear-gradient(145deg, var(--theme-button-primary), var(--theme-primary-dark)) !important;
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.12),
        0 6px 0 var(--theme-primary-dark),
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 111, 0, 0.2) !important; /* Subtle ember glow */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 20px var(--theme-glow-color);
    border: 2px solid var(--theme-primary-dark) !important;
    position: relative;
}

.carved-wood::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 140, 66, 0.15) 50%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carved-wood:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.15),
        0 8px 0 var(--theme-primary-dark),
        0 12px 28px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 111, 0, 0.4) !important; /* Enhanced ember glow */
    filter: brightness(1.15);
}

.carved-wood:hover::after {
    opacity: 1;
}

.carved-wood:active {
    transform: translateY(4px);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.12),
        0 2px 0 var(--theme-primary-dark),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 111, 0, 0.3) !important;
}

/* 5. STAGGER ANIMATION - Cards appear one by one */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    animation: slideUpFade 0.5s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.2s; }
.stagger-item:nth-child(4) { animation-delay: 0.3s; }
.stagger-item:nth-child(5) { animation-delay: 0.4s; }
.stagger-item:nth-child(6) { animation-delay: 0.5s; }
.stagger-item:nth-child(7) { animation-delay: 0.6s; }
.stagger-item:nth-child(8) { animation-delay: 0.7s; }
.stagger-item:nth-child(9) { animation-delay: 0.8s; }
.stagger-item:nth-child(10) { animation-delay: 0.9s; }

/* 6. WOOD GRAIN TEXTURE OVERLAY - Subtle realistic texture */
.wood-grain {
    position: relative;
}

.wood-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 40px
    ),
    repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02) 0px,
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 80px
    );
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
}

/* 7. EMBER ACCENT HIGHLIGHTS - Subtle orange glow on important elements */
.ember-accent {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--theme-card-bg), var(--theme-card-bg)),
        linear-gradient(135deg, var(--theme-accent), var(--theme-accent-hover));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.ember-accent:hover {
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

/* BONUS: Touch feedback ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.touch-ripple {
    position: relative;
    overflow: hidden;
}

.touch-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.4), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.touch-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* ========================================
   🪵 RUSTIC WOOD CRAFTSMANSHIP - Premium Details
   ======================================== */

/* 1. PREMIUM CARVED WOOD CARDS - Hand-carved 3D wooden signs */
.wood-sign {
    position: relative;
    background:
        /* Wood planks horizontal lines */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 48px,
            rgba(0, 0, 0, 0.15) 48px,
            rgba(0, 0, 0, 0.15) 50px
        ),
        /* Base wood color - LEGACY gradient */
        linear-gradient(145deg, var(--theme-card-bg), rgba(80, 54, 40, 0.5));

    /* THICK BRIGHT BORDER - Makes cards pop! LEGACY WOOD */
    border: 4px solid #7a5a47 !important;

    /* MULTI-LAYER 3D SHADOWS - Premium carved effect */
    box-shadow:
        /* Inset top-left dark (carved in) */
        inset 3px 3px 8px rgba(0, 0, 0, 0.5),
        /* Inset bottom-right light (raised edge) */
        inset -3px -3px 8px rgba(255, 200, 150, 0.1),
        /* Inner warm wood glow */
        inset 0 0 30px rgba(80, 54, 40, 0.2),
        /* Bottom depth strip - fake 3D thickness */
        0 6px 0 #2a1c14,
        /* Deep outer shadow */
        0 12px 32px rgba(0, 0, 0, 0.7),
        /* Outer warm wood glow */
        0 0 40px rgba(80, 54, 40, 0.3);

    /* Smooth transitions for hover */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* 3D RAISED HOVER - Card lifts up */
.wood-sign:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.5),
        inset -3px -3px 8px rgba(255, 200, 150, 0.15),
        inset 0 0 30px rgba(80, 54, 40, 0.25),
        /* Increased bottom strip for lift effect */
        0 10px 0 #2a1c14,
        /* Deeper shadow when lifted */
        0 16px 40px rgba(0, 0, 0, 0.8),
        /* Brighter warm glow */
        0 0 50px rgba(80, 54, 40, 0.5);
    border-color: #a1887f;
    filter: brightness(1.05);
}

/* 3D PRESSED ACTIVE - Card presses down */
.wood-sign:active {
    transform: translateY(2px);
    box-shadow:
        inset 3px 3px 10px rgba(0, 0, 0, 0.6),
        inset -3px -3px 6px rgba(255, 200, 150, 0.08),
        inset 0 0 20px rgba(80, 54, 40, 0.15),
        /* Reduced bottom strip (pressed) */
        0 3px 0 #2a1c14,
        /* Shallower shadow */
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(80, 54, 40, 0.2);
}

.wood-sign::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

/* 2. CHARCOAL SHADOW DEPTH - Dramatic 3D layering */
.deep-shadow {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 32px 64px rgba(0, 0, 0, 0.2),
        /* Inner ember glow */
        inset 0 0 30px rgba(255, 111, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.deep-shadow:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.45),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.35),
        0 32px 64px rgba(0, 0, 0, 0.3),
        0 64px 128px rgba(0, 0, 0, 0.25),
        /* Enhanced ember glow */
        inset 0 0 40px rgba(255, 111, 0, 0.2),
        0 0 30px rgba(255, 111, 0, 0.3);
}

/* 3. RICH WOOD STAIN GRADIENT - Natural wood coloring */
.wood-stain {
    background:
        /* Varnish shine spots */
        radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
        /* LEGACY wood stain gradient */
        linear-gradient(
            135deg,
            #2a1c14 0%,
            #503628 15%,
            #7a5a47 30%,
            #a1887f 50%,
            #7a5a47 70%,
            #503628 85%,
            #2a1c14 100%
        );
    background-size: 100% 100%, 100% 100%, 100% 100%;
}

/* 4. BURNED EDGE EFFECT - Fire-touched borders */
.burned-edge {
    position: relative;
    border-radius: 14px; /* Slightly irregular */
}

.burned-edge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background:
        /* Charcoal gradient from edges */
        linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.6;
}

.burned-edge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        /* Ember glow на края */
        inset 0 0 20px rgba(255, 111, 0, 0.1),
        /* Dark charcoal edge */
        inset 0 0 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* 5. HAMMERED METAL CORNERS - Rustic metal brackets */
.metal-corners {
    position: relative;
}

.metal-corners::before,
.metal-corners::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background:
        /* Metallic gradient */
        radial-gradient(circle at 30% 30%, #6b7280 0%, #4b5563 50%, #374151 100%);
    border: 1px solid #1f2937;
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.2),
        inset -1px -1px 2px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Top-left corner */
.metal-corners::before {
    top: -3px;
    left: -3px;
    border-radius: 4px 0 8px 0;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 100%, 0 100%);
}

/* Bottom-right corner */
.metal-corners::after {
    bottom: -3px;
    right: -3px;
    border-radius: 0 8px 0 4px;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%, 0 60%, 60% 60%);
}

/* Rivet dots on corners */
.metal-corners .themed-card::before,
.metal-corners .themed-card::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #9ca3af 0%, #4b5563 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Top-left rivet */
.metal-corners .themed-card::before {
    top: 6px;
    left: 6px;
}

/* Bottom-right rivet */
.metal-corners .themed-card::after {
    bottom: 6px;
    right: 6px;
}

/* BONUS: Smoke particle effect (subtle) */
@keyframes smokeRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.8);
    }
    20% {
        opacity: 0.3;
    }
    80% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.2) translateX(10px);
    }
}

.smoke-effect {
    position: relative;
    overflow: visible;
}

.smoke-effect::before,
.smoke-effect::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.3), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: smokeRise 4s ease-out infinite;
}

.smoke-effect::before {
    left: 30%;
    animation-delay: 0s;
}

.smoke-effect::after {
    left: 60%;
    animation-delay: 2s;
}

/* ============================================
   CARVED WOODEN SIGN HEADER EFFECTS
   ============================================ */

/* 3D Carved Text Effect - Engraved into wood */
.logo-carved {
    text-shadow:
        /* Deep engraving shadow */
        2px 2px 4px rgba(0, 0, 0, 0.8),
        /* Highlight edge (carved lip) */
        -1px -1px 2px rgba(255, 255, 255, 0.1),
        /* Ember glow from below */
        0 0 20px rgba(255, 111, 0, 0.3),
        /* Additional depth */
        3px 3px 8px rgba(0, 0, 0, 0.6);
    font-weight: 900;
    letter-spacing: 0.15em;
    position: relative;
}

/* Extra wood grain texture for logo bar */
.logo-bar-wood {
    background:
        /* Fine wood grain lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 2px,
            transparent 12px
        ),
        /* Subtle vertical grain */
        repeating-linear-gradient(
            180deg,
            transparent,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 2px,
            transparent 8px
        ),
        var(--theme-button-primary);
}

/* ============================================
   THICK WOODEN FRAME (NO NAILS)
   ============================================ */

/* Massive wooden frame - VERY visible! LEGACY WOOD */
.wooden-frame {
    position: relative;
    border: 6px solid #2a1c14 !important;
    box-shadow:
        /* Inner lighter border for depth */
        inset 0 0 0 3px #503628,
        /* Double border effect */
        inset 0 0 0 5px rgba(0, 0, 0, 0.3),
        /* Deep outer shadow */
        0 15px 40px rgba(0, 0, 0, 0.8),
        /* Extra depth layer */
        0 8px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Large bold logo text */
.logo-bold {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================
   WOOD KNOTS & GRAIN DETAILS
   ============================================ */

/* Realistic wood knots (възли в дървото) */
.wood-knots {
    position: relative;
    background:
        /* Wood knot 1 - top left */
        radial-gradient(
            ellipse 40px 30px at 15% 20%,
            rgba(45, 27, 0, 0.6) 0%,
            rgba(42, 28, 20, 0.4) 40%,
            transparent 70%
        ),
        /* Wood knot 2 - right side */
        radial-gradient(
            ellipse 35px 25px at 85% 45%,
            rgba(45, 27, 0, 0.5) 0%,
            rgba(42, 28, 20, 0.3) 40%,
            transparent 70%
        ),
        /* Wood knot 3 - bottom left */
        radial-gradient(
            ellipse 30px 20px at 25% 75%,
            rgba(45, 27, 0, 0.4) 0%,
            rgba(42, 28, 20, 0.25) 40%,
            transparent 70%
        ),
        /* Enhanced horizontal grain */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.08) 3px,
            rgba(0, 0, 0, 0.08) 4px,
            transparent 4px,
            transparent 12px
        ),
        /* Fine vertical grain lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 2px,
            transparent 15px
        ),
        /* Subtle color variation */
        linear-gradient(
            135deg,
            var(--theme-button-primary) 0%,
            var(--theme-primary-dark) 50%,
            var(--theme-button-primary) 100%
        );
}

/* Wood knots for cards */
.wood-knots-card {
    position: relative;
}

.wood-knots-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* Wood knot - top right */
        radial-gradient(
            ellipse 50px 35px at 80% 15%,
            rgba(45, 27, 0, 0.4) 0%,
            rgba(42, 28, 20, 0.25) 40%,
            transparent 70%
        ),
        /* Wood knot - center left */
        radial-gradient(
            ellipse 40px 28px at 20% 50%,
            rgba(45, 27, 0, 0.35) 0%,
            rgba(42, 28, 20, 0.2) 40%,
            transparent 70%
        ),
        /* Enhanced grain texture */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 0, 0, 0.06) 4px,
            rgba(0, 0, 0, 0.06) 5px,
            transparent 5px,
            transparent 15px
        );
    border-radius: inherit;
    z-index: 1;
}

/* Keep content above the knots overlay */
.wood-knots-card > * {
    position: relative;
    z-index: 2;
}

/* Deep wood grain for buttons */
.deep-grain {
    background:
        /* Strong horizontal grain */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.12) 2px,
            rgba(0, 0, 0, 0.12) 3px,
            transparent 3px,
            transparent 8px
        ),
        /* Vertical fiber lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 2px,
            transparent 10px
        ),
        var(--theme-button-primary);
}

/* ============================================
   ELEVATION & LAYERING SYSTEM
   ============================================ */

/* Level 1 - Base cards (грунд ниво) */
.elevation-1 {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevation-1:hover {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Level 2 - Important cards (среден слой) */
.elevation-2 {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 111, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevation-2:hover {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(255, 111, 0, 0.25);
    transform: translateY(-4px);
}

/* Level 3 - Hero/Primary (най-горен слой) */
.elevation-3 {
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.5),
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 111, 0, 0.3),
        0 0 60px rgba(255, 111, 0, 0.15);
    transform: translateY(-4px) scale(1.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevation-3:hover {
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(255, 111, 0, 0.4),
        0 0 80px rgba(255, 111, 0, 0.2);
    transform: translateY(-6px) scale(1.02);
}

/* ============================================
   DECORATIVE WOOD DETAILS
   ============================================ */

/* Thick wood plank dividers - LEGACY WOOD */
.wood-plank-divider {
    position: relative;
    border-top: 8px solid #503628;
    border-bottom: 8px solid #2a1c14;
}

.wood-plank-divider::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.3);
}

.wood-plank-divider::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.3);
}

/* Rope/twine decorative divider */
.rope-divider {
    position: relative;
    padding: 1.5rem 0;
    text-align: center;
}

.rope-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #7a5a47 0px,
        #503628 4px,
        #7a5a47 8px
    );
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

/* Wood corner brackets - LEGACY WOOD */
.wood-brackets {
    position: relative;
}

.wood-brackets::before,
.wood-brackets::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #503628;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.wood-brackets::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.wood-brackets::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Decorative wood studs/bolts - LEGACY WOOD */
.wood-studs {
    position: relative;
}

.wood-studs::before,
.wood-studs::after {
    content: '◆';
    position: absolute;
    color: #2a1c14;
    font-size: 1rem;
    text-shadow:
        1px 1px 2px rgba(255, 220, 180, 0.1),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.wood-studs::before {
    top: 1rem;
    left: 1rem;
}

.wood-studs::after {
    top: 1rem;
    right: 1rem;
}

/* Burned wood edge accent */
.burned-accent {
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.4);
}

.burned-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 111, 0, 0.3);
    pointer-events: none;
    border-radius: inherit;
}

/* ============================================
   ALTERNATING COLORS FOR LISTS
   ============================================ */

/* Light row (odd items) - LEGACY light wood */
.item-light {
    background: rgba(122, 90, 71, 0.7) !important;
    border: 3px solid #2a1c14 !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 220, 180, 0.1);
}

/* Dark row (even items) - LEGACY medium wood */
.item-dark {
    background: rgba(80, 54, 40, 0.8) !important;
    border: 3px solid #2a1c14 !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 2px rgba(255, 200, 150, 0.05);
}

/* Fire orange buttons - HIGHLY VISIBLE */
.button-fire-orange {
    background: linear-gradient(135deg, #ff8c42, #ffa060) !important;
    border: 2px solid #ff6f00 !important;
    color: #1a0a00 !important;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 111, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.button-fire-orange:hover {
    background: linear-gradient(135deg, #ffa060, #ffb380) !important;
    box-shadow:
        0 6px 16px rgba(255, 111, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.button-fire-orange:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(255, 111, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* ============================================
   ANIMATED EMOJIS & ICONS
   ============================================ */

/* Fire icon wobble - dancing flames */
@keyframes fireWobble {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
    }
    25% {
        transform: rotate(5deg) scale(1.1);
    }
    50% {
        transform: rotate(-3deg) scale(1.05);
    }
    75% {
        transform: rotate(3deg) scale(1.08);
    }
}

.fire-icon-animated {
    display: inline-block;
    animation: fireWobble 1.5s ease-in-out infinite;
}

/* Star twinkle - glittering stars */
@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
        filter: brightness(1.5);
    }
}

.star-icon {
    display: inline-block;
    animation: starTwinkle 2s ease-in-out infinite;
}

/* Camp bounce - gentle up and down */
@keyframes campBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.camp-icon {
    display: inline-block;
    animation: campBounce 2.5s ease-in-out infinite;
}

/* Hiking boot walk animation */
@keyframes bootWalk {
    0%, 100% {
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(-10deg) translateX(-2px);
    }
    75% {
        transform: rotate(10deg) translateX(2px);
    }
}

.boot-icon {
    display: inline-block;
    animation: bootWalk 1.2s ease-in-out infinite;
}

/* Clock tick */
@keyframes clockTick {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.clock-icon {
    display: inline-block;
    animation: clockTick 1s ease-in-out infinite;
}

/* ============================================
   DYNAMIC STATUS PULSES
   ============================================ */

/* Active "There" - Fast fire pulse (most urgent) */
.pulse-there {
    animation: pulseFire 1s ease-in-out infinite !important;
}

@keyframes pulseFire {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 111, 0, 0.8),
            0 0 40px rgba(255, 111, 0, 0.3),
            inset 0 0 20px rgba(255, 111, 0, 0.1) !important;
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 111, 0, 1),
            0 0 60px rgba(255, 111, 0, 0.5),
            inset 0 0 30px rgba(255, 111, 0, 0.2) !important;
        transform: scale(1.02);
    }
}

/* Coming - Medium blue trail pulse */
.pulse-coming {
    animation: pulseTrail 2s ease-in-out infinite !important;
}

@keyframes pulseTrail {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(2, 132, 199, 0.6),
            0 0 30px rgba(2, 132, 199, 0.25),
            inset 0 0 15px rgba(2, 132, 199, 0.08) !important;
    }
    50% {
        box-shadow:
            0 0 25px rgba(2, 132, 199, 0.9),
            0 0 45px rgba(2, 132, 199, 0.4),
            inset 0 0 25px rgba(2, 132, 199, 0.15) !important;
    }
}

/* Later - Slow purple sunset pulse */
.pulse-later {
    animation: pulseSunset 3s ease-in-out infinite !important;
}

@keyframes pulseSunset {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(168, 85, 247, 0.4),
            0 0 20px rgba(168, 85, 247, 0.2),
            inset 0 0 10px rgba(168, 85, 247, 0.05) !important;
    }
    50% {
        box-shadow:
            0 0 20px rgba(168, 85, 247, 0.7),
            0 0 35px rgba(168, 85, 247, 0.3),
            inset 0 0 20px rgba(168, 85, 247, 0.1) !important;
    }
}

/* Leaving - Fast orange-red pulse */
.pulse-leaving {
    animation: pulseLeaving 1.5s ease-in-out infinite !important;
}

@keyframes pulseLeaving {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(249, 115, 22, 0.5),
            0 0 30px rgba(249, 115, 22, 0.25),
            inset 0 0 15px rgba(249, 115, 22, 0.08) !important;
    }
    50% {
        box-shadow:
            0 0 25px rgba(249, 115, 22, 0.8),
            0 0 45px rgba(249, 115, 22, 0.4),
            inset 0 0 25px rgba(249, 115, 22, 0.15) !important;
    }
}

/* ============================================
   FIRE GLOW EFFECTS FOR "ОКОЛО ОГЪНЯ"
   ============================================ */

/* Animated Fire Ring - Pulsing border glow */
.fire-ring-glow {
    position: relative;
    overflow: visible;
}

.fire-ring-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    padding: 4px;
    background: linear-gradient(
        45deg,
        #ff6f00 0%,
        #ff8c42 25%,
        #ffa060 50%,
        #ff8c42 75%,
        #ff6f00 100%
    );
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: fireRingPulse 2s ease-in-out infinite, fireRingRotate 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes fireRingPulse {
    0%, 100% {
        opacity: 0.6;
        filter: blur(8px);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        filter: blur(12px);
        transform: scale(1.02);
    }
}

@keyframes fireRingRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Gradient Fire Aura - Soft blur background */
.fire-aura {
    position: relative;
}

.fire-aura::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 111, 0, 0.5) 0%,
        rgba(255, 140, 66, 0.3) 20%,
        rgba(255, 160, 96, 0.2) 40%,
        rgba(217, 119, 6, 0.1) 60%,
        transparent 80%
    );
    filter: blur(25px);
    animation: auraBreathing 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

@keyframes auraBreathing {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Combined effect - Keep card content above glows */
.fire-ring-glow > *,
.fire-aura > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   TRAIL EFFECTS FOR "НА ПЪТ КЪМ НАВЕСА"
   ============================================ */

/* Dust Trail Clouds - Hiking path dust */
.dust-trail {
    position: relative;
    overflow: visible;
}

.dust-trail::before,
.dust-trail::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(
        circle,
        rgba(139, 110, 99, 0.4) 0%,
        rgba(161, 136, 127, 0.2) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(20px);
    animation: dustFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.dust-trail::before {
    bottom: -20px;
    left: 10%;
    animation-delay: 0s;
}

.dust-trail::after {
    top: -20px;
    right: 15%;
    animation-delay: 2s;
    width: 100px;
    height: 100px;
}

@keyframes dustFloat {
    0%, 100% {
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translateX(30px) scale(1.2);
    }
}

/* Blue Trail Glow - GPS path line */
.blue-trail-glow {
    position: relative;
    overflow: visible;
}

.blue-trail-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    padding: 4px;
    background: linear-gradient(
        90deg,
        #0284c7 0%,
        #38bdf8 25%,
        #7dd3fc 50%,
        #38bdf8 75%,
        #0284c7 100%
    );
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: trailPulse 2.5s ease-in-out infinite, trailFlow 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes trailPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(6px);
    }
    50% {
        opacity: 0.9;
        filter: blur(10px);
    }
}

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

/* Trail Aura - Soft blue background glow */
.trail-aura {
    position: relative;
}

.trail-aura::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(
        ellipse at center,
        rgba(2, 132, 199, 0.4) 0%,
        rgba(56, 189, 248, 0.25) 20%,
        rgba(125, 211, 252, 0.15) 40%,
        rgba(14, 165, 233, 0.08) 60%,
        transparent 80%
    );
    filter: blur(25px);
    animation: trailAuraBreathing 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    border-radius: inherit;
}

@keyframes trailAuraBreathing {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.12);
    }
}

/* Combined effect - Keep card content above glows */
.dust-trail > *,
.blue-trail-glow > *,
.trail-aura > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   CAMPFIRE LOADING ANIMATION
   ============================================ */

/* ============================================
   LOADING SCREEN - CAMPING LANTERN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom,
        #1a1412 0%,
        #2d1b00 50%,
        #1a1412 100%
    );
}

.loading-container {
    position: relative;
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.loading-scene {
    position: relative;
    height: 300px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lantern {
    position: relative;
    width: 120px;
    height: 180px;
}

/* Top handle */
.lantern-handle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    border: 3px solid #3a3a3a;
    border-bottom: none;
    border-radius: 30px 30px 0 0;
    z-index: 5;
}

/* Top cap */
.lantern-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    border-radius: 8px 8px 0 0;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 4;
}

.lantern-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2a2a2a;
    border-radius: 50%;
}

/* Glass chamber */
.lantern-glass {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 110px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    border-radius: 8px;
    border: 2px solid rgba(80, 80, 80, 0.6);
    backdrop-filter: blur(2px);
    box-shadow:
        inset -2px 0 8px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 3;
}

/* Warm glow inside lantern */
.lantern-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 60px;
    background: radial-gradient(ellipse at center,
        rgba(255, 223, 186, 1) 0%,
        rgba(255, 200, 124, 0.9) 20%,
        rgba(255, 167, 38, 0.7) 40%,
        rgba(251, 146, 60, 0.4) 70%,
        transparent 100%
    );
    border-radius: 50%;
    animation: flame-flicker 2.5s ease-in-out infinite;
    filter: blur(3px);
}

@keyframes flame-flicker {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    25% {
        transform: translate(-50%, -52%) scale(0.95);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
    75% {
        transform: translate(-50%, -48%) scale(0.98);
        opacity: 0.95;
    }
}

/* Bright core */
.lantern-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 35px;
    background: radial-gradient(ellipse at center,
        #fffbeb 0%,
        #fef3c7 30%,
        #fde047 70%,
        rgba(251, 191, 36, 0) 100%
    );
    border-radius: 50%;
    animation: core-pulse 2.5s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Metal frame bars */
.lantern-frame-left,
.lantern-frame-right {
    position: absolute;
    top: 25px;
    width: 3px;
    height: 110px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    z-index: 4;
}

.lantern-frame-left {
    left: 50%;
    transform: translateX(-38px);
}

.lantern-frame-right {
    left: 50%;
    transform: translateX(35px);
}

/* Bottom cap */
.lantern-bottom {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 0 0 8px 8px;
    box-shadow:
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 4;
}

/* Base */
.lantern-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 4;
}

/* Warm ambient glow around lantern */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(251, 146, 60, 0.15) 0%,
        rgba(234, 88, 12, 0.08) 40%,
        transparent 70%
    );
    animation: ambient-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes ambient-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Subtle light rays */
.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 2;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom,
        rgba(255, 200, 124, 0.3) 0%,
        transparent 100%
    );
    transform-origin: top center;
    animation: ray-rotate 20s linear infinite;
}

.ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.ray:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.ray:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.ray:nth-child(4) { transform: translate(-50%, -50%) rotate(180deg); }
.ray:nth-child(5) { transform: translate(-50%, -50%) rotate(240deg); }
.ray:nth-child(6) { transform: translate(-50%, -50%) rotate(300deg); }

@keyframes ray-rotate {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}

/* Branding */
.loading-brand {
    margin-bottom: 40px;
}

.loading-brand-title {
    font-size: 54px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(251, 191, 36, 0.3);
    letter-spacing: 12px;
    margin-bottom: 12px;
}

.loading-brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(251, 191, 36, 0.5);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.loading-status {
    font-size: 14px;
    font-weight: 500;
    color: rgba(251, 191, 36, 0.7);
    letter-spacing: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-scene {
        height: 260px;
    }

    .lantern {
        width: 100px;
        height: 150px;
        transform: scale(0.9);
    }

    .ambient-glow {
        width: 250px;
        height: 250px;
    }

    .light-rays {
        width: 160px;
        height: 160px;
    }

    .loading-brand-title {
        font-size: 44px;
        letter-spacing: 10px;
    }

    .loading-brand-subtitle {
        font-size: 10px;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .lantern {
        transform: scale(0.8);
    }

    .loading-brand-title {
        font-size: 36px;
        letter-spacing: 8px;
    }
}


/* ============================================
   FLOATING EMBERS & FIREFLIES 🔥✨
   Mobile Optimized - GPU Accelerated
   ============================================ */

/* Main atmosphere container */
.campfire-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* FLOATING EMBERS 🔥 - Rising from bottom */
.ember {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ff8c42, #ff6f00);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.8), 0 0 30px rgba(255, 140, 66, 0.5);
    opacity: 0;
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Ember size variations */
.ember-small {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 8px rgba(255, 111, 0, 0.6);
}

.ember-medium {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 12px rgba(255, 111, 0, 0.7);
}

.ember-large {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 20px rgba(255, 111, 0, 0.9), 0 0 40px rgba(255, 140, 66, 0.6);
}

/* Ember animations - Different speeds */
@keyframes emberRise1 {
    0% {
        bottom: -20px;
        left: 10%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(5px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        left: 15%;
        opacity: 0;
        transform: translateX(30px) scale(0.3);
    }
}

@keyframes emberRise2 {
    0% {
        bottom: -20px;
        left: 30%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(-5px) scale(1);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 100%;
        left: 25%;
        opacity: 0;
        transform: translateX(-40px) scale(0.3);
    }
}

@keyframes emberRise3 {
    0% {
        bottom: -20px;
        left: 50%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(10px) scale(1);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        bottom: 100%;
        left: 55%;
        opacity: 0;
        transform: translateX(20px) scale(0.3);
    }
}

@keyframes emberRise4 {
    0% {
        bottom: -20px;
        left: 70%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(-10px) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        left: 65%;
        opacity: 0;
        transform: translateX(-25px) scale(0.3);
    }
}

@keyframes emberRise5 {
    0% {
        bottom: -20px;
        left: 90%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(5px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        left: 85%;
        opacity: 0;
        transform: translateX(35px) scale(0.3);
    }
}

/* FIREFLIES ✨ - Dancing around screen */
.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fde047, #facc15);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(253, 224, 71, 0.9), 0 0 25px rgba(250, 204, 21, 0.6);
    transform: translateZ(0);
    will-change: transform, opacity;
    animation: fireflyPulse 2s ease-in-out infinite;
}

/* Firefly glow pulse */
@keyframes fireflyPulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 8px rgba(253, 224, 71, 0.6), 0 0 15px rgba(250, 204, 21, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(253, 224, 71, 1), 0 0 30px rgba(250, 204, 21, 0.8);
    }
}

/* Firefly flight paths - Smooth curves */
@keyframes fireflyFloat1 {
    0% {
        top: 20%;
        left: 10%;
        transform: translate(0, 0);
    }
    25% {
        top: 40%;
        left: 30%;
        transform: translate(20px, -15px);
    }
    50% {
        top: 60%;
        left: 15%;
        transform: translate(-10px, 10px);
    }
    75% {
        top: 35%;
        left: 25%;
        transform: translate(15px, 5px);
    }
    100% {
        top: 20%;
        left: 10%;
        transform: translate(0, 0);
    }
}

@keyframes fireflyFloat2 {
    0% {
        top: 50%;
        left: 80%;
        transform: translate(0, 0);
    }
    25% {
        top: 30%;
        left: 65%;
        transform: translate(-25px, -20px);
    }
    50% {
        top: 55%;
        left: 75%;
        transform: translate(10px, 15px);
    }
    75% {
        top: 70%;
        left: 85%;
        transform: translate(-15px, 10px);
    }
    100% {
        top: 50%;
        left: 80%;
        transform: translate(0, 0);
    }
}

@keyframes fireflyFloat3 {
    0% {
        top: 70%;
        left: 50%;
        transform: translate(0, 0);
    }
    25% {
        top: 50%;
        left: 40%;
        transform: translate(-20px, -25px);
    }
    50% {
        top: 30%;
        left: 60%;
        transform: translate(25px, -15px);
    }
    75% {
        top: 55%;
        left: 45%;
        transform: translate(-10px, 20px);
    }
    100% {
        top: 70%;
        left: 50%;
        transform: translate(0, 0);
    }
}

@keyframes fireflyFloat4 {
    0% {
        top: 15%;
        left: 60%;
        transform: translate(0, 0);
    }
    25% {
        top: 35%;
        left: 70%;
        transform: translate(15px, 20px);
    }
    50% {
        top: 25%;
        left: 55%;
        transform: translate(-20px, 5px);
    }
    75% {
        top: 45%;
        left: 65%;
        transform: translate(10px, -10px);
    }
    100% {
        top: 15%;
        left: 60%;
        transform: translate(0, 0);
    }
}

@keyframes fireflyFloat5 {
    0% {
        top: 80%;
        left: 20%;
        transform: translate(0, 0);
    }
    25% {
        top: 60%;
        left: 35%;
        transform: translate(20px, -15px);
    }
    50% {
        top: 75%;
        left: 25%;
        transform: translate(-15px, 10px);
    }
    75% {
        top: 65%;
        left: 30%;
        transform: translate(5px, -5px);
    }
    100% {
        top: 80%;
        left: 20%;
        transform: translate(0, 0);
    }
}

@keyframes fireflyFloat6 {
    0% {
        top: 40%;
        left: 85%;
        transform: translate(0, 0);
    }
    25% {
        top: 25%;
        left: 75%;
        transform: translate(-25px, -20px);
    }
    50% {
        top: 45%;
        left: 90%;
        transform: translate(15px, 15px);
    }
    75% {
        top: 30%;
        left: 80%;
        transform: translate(-10px, 5px);
    }
    100% {
        top: 40%;
        left: 85%;
        transform: translate(0, 0);
    }
}

/* MOBILE OPTIMIZATION - Reduce particles */
@media (max-width: 768px) {
    .ember {
        width: 6px;
        height: 6px;
    }

    .ember-small {
        width: 3px;
        height: 3px;
    }

    .ember-large {
        width: 8px;
        height: 8px;
    }

    .firefly {
        width: 5px;
        height: 5px;
    }

    /* Hide some particles on mobile for performance */
    .ember:nth-child(n+9),
    .firefly:nth-child(n+5) {
        display: none;
    }
}


/* ============================================
   COLOR-CODED STATUS BUTTONS 🎯
   Unique colors for each status action
   ============================================ */

/* 🔥 FIRE BUTTON - "ОКОЛО ОГЪНЯ" / "Вече съм там" */
.status-button-fire {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8c42 25%, #ff5722 50%, #d84315 75%, #bf360c 100%) !important;
    border: 3px solid #ff8c42 !important;
    box-shadow:
        0 0 20px rgba(255, 111, 0, 0.6),
        0 0 40px rgba(255, 140, 66, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 200, 100, 0.4) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.status-button-fire::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.3) 0%, transparent 70%);
    animation: fireButtonGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fireButtonGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(10px, -10px) scale(1.1); opacity: 0.8; }
}

.status-button-fire:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa060 25%, #ff6f00 50%, #f4511e 75%, #d84315 100%) !important;
    box-shadow:
        0 0 30px rgba(255, 111, 0, 0.8),
        0 0 50px rgba(255, 140, 66, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 220, 120, 0.5) !important;
    transform: translateY(-2px);
}

.status-button-fire:active {
    transform: translateY(0);
}

/* 🥾 TRAIL BUTTON - "НА ПЪТ" / "Тръгвам сега" */
.status-button-trail {
    background: linear-gradient(135deg, #0288d1 0%, #03a9f4 25%, #00bcd4 50%, #0097a7 75%, #006064 100%) !important;
    border: 3px solid #4fc3f7 !important;
    box-shadow:
        0 0 20px rgba(3, 169, 244, 0.6),
        0 0 40px rgba(79, 195, 247, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(129, 212, 250, 0.4) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.status-button-trail::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(129, 212, 250, 0.3) 0%, transparent 70%);
    animation: trailButtonGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes trailButtonGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-15px, 10px) scale(1.15); opacity: 0.7; }
}

.status-button-trail:hover {
    background: linear-gradient(135deg, #03a9f4 0%, #4fc3f7 25%, #00e5ff 50%, #00acc1 75%, #0097a7 100%) !important;
    box-shadow:
        0 0 30px rgba(3, 169, 244, 0.8),
        0 0 50px rgba(79, 195, 247, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(129, 212, 250, 0.5) !important;
    transform: translateY(-2px);
}

.status-button-trail:active {
    transform: translateY(0);
}

/* ⏰ SUNSET BUTTON - "ПО-КЪСНО" / "Задай час" */
.status-button-sunset {
    background: linear-gradient(135deg, #8e24aa 0%, #ab47bc 25%, #ec407a 50%, #f06292 75%, #d81b60 100%) !important;
    border: 3px solid #ce93d8 !important;
    box-shadow:
        0 0 20px rgba(156, 39, 176, 0.6),
        0 0 40px rgba(206, 147, 216, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(240, 98, 146, 0.4) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.status-button-sunset::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 98, 146, 0.3) 0%, transparent 70%);
    animation: sunsetButtonGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sunsetButtonGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(10px, -15px) scale(1.2); opacity: 0.7; }
}

.status-button-sunset:hover {
    background: linear-gradient(135deg, #ab47bc 0%, #ce93d8 25%, #f48fb1 50%, #ec407a 75%, #c2185b 100%) !important;
    box-shadow:
        0 0 30px rgba(156, 39, 176, 0.8),
        0 0 50px rgba(206, 147, 216, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(244, 143, 177, 0.5) !important;
    transform: translateY(-2px);
}

.status-button-sunset:active {
    transform: translateY(0);
}

/* 🌲 FOREST BUTTON - Alternative/Extra actions */
.status-button-forest {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 25%, #66bb6a 50%, #4caf50 75%, #388e3c 100%) !important;
    border: 3px solid #81c784 !important;
    box-shadow:
        0 0 20px rgba(76, 175, 80, 0.6),
        0 0 40px rgba(129, 199, 132, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(165, 214, 167, 0.4) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.status-button-forest:hover {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 25%, #81c784 50%, #4caf50 75%, #2e7d32 100%) !important;
    box-shadow:
        0 0 30px rgba(76, 175, 80, 0.8),
        0 0 50px rgba(129, 199, 132, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(165, 214, 167, 0.5) !important;
    transform: translateY(-2px);
}

.status-button-forest:active {
    transform: translateY(0);
}

/* Common button text styling for all status buttons */
.status-button-fire,
.status-button-trail,
.status-button-sunset,
.status-button-forest {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-button-fire,
    .status-button-trail,
    .status-button-sunset,
    .status-button-forest {
        border-width: 2px !important;
    }
}
