/*
Theme Name: Lounge & Events Theme
Theme URI: https://loungeevents.local
Author: Antigravity
Author URI: https://loungeevents.local
Description: A mobile-first block theme for lounges and events featuring digital QR menus and event archives.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lounge-events-theme
*/

/* Core styles for custom layout elements & fallback overrides */
body {
    background-color: var(--wp--preset--color--background);
    color: var(--wp--preset--color--on-surface);
}

.fixed-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    background: rgba(254, 249, 239, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(218, 194, 179, 0.3) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    height: 80px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding-bottom: env(safe-area-inset-bottom, 20px) !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.nav-item-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--wp--preset--color--on-surface-variant) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.nav-item-btn:hover, .nav-item-btn.active {
    color: var(--wp--preset--color--primary) !important;
    transform: scale(1.05);
}

.nav-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    font-family: var(--wp--preset--font-family--body) !important;
}

/* Hide event links if configuration disables events on frontend */
body.events-disabled .events-nav-link {
    display: none !important;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary) !important;
    outline-offset: 2px !important;
}

/* Elegant Empty States Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--wp--preset--color--surface);
    border: 1px dashed var(--wp--preset--color--border-tint);
    border-radius: 1.25rem;
    max-width: 450px;
    margin: 2rem auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.empty-state__icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background-color: rgba(var(--wp--preset--color--primary-rgb, 181, 101, 29), 0.1);
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.5rem;
    animation: pulse-ring 2.5s infinite;
}

.empty-state__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wp--preset--color--on-surface);
    margin: 0 0 0.5rem 0;
}

.empty-state__subtitle {
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.875rem;
    color: var(--wp--preset--color--on-surface-variant);
    margin: 0 0 1.5rem 0;
    max-width: 320px;
    line-height: 1.5;
}

.empty-state__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--wp--preset--color--primary);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.empty-state__cta:hover {
    background-color: var(--wp--preset--color--primary-hover, var(--wp--preset--color--primary));
    transform: translateY(-1px);
}

.empty-state__cta:active {
    transform: translateY(0);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--wp--preset--color--primary-rgb, 181, 101, 29), 0.2);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(var(--wp--preset--color--primary-rgb, 181, 101, 29), 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(var(--wp--preset--color--primary-rgb, 181, 101, 29), 0);
    }
}

