/* =============================================
   KASYOON.COM - ADDITIONAL STYLES
   Inventory bar wrapper fix & extras
   ============================================= */

/* Fix for inventory bars */
.inv-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inv-bar {
    display: block;
    height: 8px;
    width: var(--w);
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 10px;
    transition: width 1s ease;
    flex: 1;
    max-width: 100%;
}

/* Hero badge pulse */
.hero-badge {
    animation: pulse-badge 3s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

/* Notification toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(124,58,237,0.15);
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}
.toast-icon.error { background: linear-gradient(135deg, #EF4444, #DC2626); }
.toast-text { }
.toast-title { display: block; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.toast-sub { display: block; font-size: 13px; color: var(--text-secondary); }

/* Loading overlay */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: logoAppear 0.8s ease;
}
.loader-logo-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 24px;
    border: 2px solid rgba(255,255,255,0.3);
}
.loader-logo-text {
    font-size: 32px;
    font-weight: 900;
    color: white;
}
@keyframes logoAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.loader-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Highlight on hover for nav */
.nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: white;
}
.navbar.scrolled .nav-links a.active {
    background: var(--primary-50);
    color: var(--primary);
}

/* Feature card hover effect */
.feature-card .feature-icon-wrap {
    transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

/* Glowing border on feature card hover */
.feature-card.feature-large:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 10px 40px rgba(124,58,237,0.2);
}

/* Tab mockup animations */
.tab-pane.active .table-item,
.tab-pane.active .drink-item,
.tab-pane.active .inv-item,
.tab-pane.active .queue-item {
    animation: slideInItem 0.3s ease both;
}
.tab-pane.active .table-item:nth-child(1) { animation-delay: 0s; }
.tab-pane.active .table-item:nth-child(2) { animation-delay: 0.05s; }
.tab-pane.active .table-item:nth-child(3) { animation-delay: 0.1s; }
.tab-pane.active .table-item:nth-child(4) { animation-delay: 0.15s; }
.tab-pane.active .table-item:nth-child(5) { animation-delay: 0.2s; }
.tab-pane.active .table-item:nth-child(6) { animation-delay: 0.25s; }

@keyframes slideInItem {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Selection color */
::selection {
    background: var(--primary-lighter);
    color: var(--primary-darker);
}
