/*
 * MaltLive 2026 - Exhibition Guide
 * File: styles.css
 * Version: v4.0 - 2025-01-10 16:15 UTC
 * Description: Panzoom integration, pulsing highlight animation
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --teal: #1A7B7B;
    --gold: #D4941A;
    --deep-gold: #8B6914;
    --charcoal: #2C2416;
    --warm-black: #1A1410;
    --cream: #F5F1E8;
    --smoke: #4A4035;
    --highlight: #FFB84D;
    --light-teal: #2A9B9B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, var(--warm-black) 0%, var(--charcoal) 100%);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

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

.main-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

.event-dates {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* Buttons */
.btn {
    padding: 1.2rem 2rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gold);
    color: var(--warm-black);
    box-shadow: 0 4px 20px rgba(212, 148, 26, 0.3);
}

.btn-primary:hover {
    background: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 148, 26, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 2px solid var(--teal);
    font-family: 'Roboto', sans-serif; font-weight: 700;
    letter-spacing: 0.08em;
}

.btn-secondary:hover {
    background: var(--teal);
    border-color: var(--light-teal);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Registration Form */
.registration-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--charcoal), var(--warm-black));
    border: 3px solid var(--gold);
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: slideIn 0.4s ease-out;
	
	/* ADD THIS LINE */
    text-align: left;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.close-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-form:hover {
    color: var(--gold);
}

.registration-form h2 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.form-subtitle {
    margin-bottom: 2rem;
    opacity: 0.8;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    background: rgba(74, 64, 53, 0.3);
    border: 2px solid var(--smoke);
    color: var(--cream);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif; font-weight: 300;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(74, 64, 53, 0.5);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: var(--cream);
}

.radio-group input[type="radio"] {
    width: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 20, 16, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 148, 26, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--gold);
}

/* ==================== APP PAGE ==================== */
.app-page {
    padding-bottom: 70px; /* Space for mobile nav */
}

.app-header {
    background: linear-gradient(to bottom, rgba(26, 20, 16, 0.98), rgba(44, 36, 22, 0.95));
    border-bottom: 2px solid var(--gold);
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-size: 1rem;
    color: var(--gold);
    font-family: 'Roboto', sans-serif; font-weight: 300;
    font-weight: 400;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, 0.98), rgba(44, 36, 22, 0.95));
    border-top: 2px solid var(--gold);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--cream);
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.nav-item.active {
    opacity: 1;
    color: var(--gold);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.75rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    letter-spacing: 0.05em;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, var(--charcoal), var(--warm-black));
    border-left: 3px solid var(--gold);
    padding: 2rem;
    z-index: 200;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.side-menu.show {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.menu-content {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    background: transparent;
    border: 2px solid var(--smoke);
    color: var(--cream);
    padding: 1rem;
    text-align: left;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-item:hover {
    border-color: var(--gold);
    background: rgba(212, 148, 26, 0.1);
}

/* Registration Banner */
.registration-banner {
    background: linear-gradient(90deg, var(--teal), var(--light-teal));
    color: white;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

.registration-banner button {
    background: white;
    color: var(--teal);
    border: none;
    padding: 0.4rem 1rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.registration-banner button:hover {
    background: var(--gold);
    color: var(--warm-black);
}

/* Main Content */
.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.view-container {
    display: none;
}

.view-container.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-header h2 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* Map Legend - REMOVED */

.map-container {
    background: rgba(245, 241, 232, 0.98);
    padding: 1.5rem;
    border: 3px solid var(--gold);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

/* Pulsing highlight for selected stand */
.selected {
    stroke: var(--gold) !important;
    stroke-width: 4px !important;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--gold));
}

@keyframes pulse {
    0%, 100% {
        stroke-width: 4px;
        opacity: 1;
    }
    50% {
        stroke-width: 6px;
        opacity: 0.7;
    }
}

.loader {
    text-align: center;
    padding: 3rem;
    color: var(--charcoal);
    font-size: 1.2rem;
}

/* Exhibitor Grid */
.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.exhibitor-card {
    background: linear-gradient(135deg, rgba(74, 64, 53, 0.3), rgba(44, 36, 22, 0.5));
    border: 2px solid var(--smoke);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.exhibitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--highlight));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.exhibitor-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 148, 26, 0.3);
}

.exhibitor-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 8px;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
    letter-spacing: 0.08em;
}

.stand-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--warm-black);
    padding: 0.3rem 0.8rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.brand-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(212, 148, 26, 0.2);
    border: 1px solid var(--gold);
    font-size: 0.85rem;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-favorite {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 0.6rem 1.2rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-favorite:hover {
    background: var(--gold);
    color: var(--warm-black);
}

.btn-favorite.favorited {
    background: var(--gold);
    color: var(--warm-black);
}

.btn-view-map {
    background: var(--teal);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    font-family: 'Roboto', sans-serif; font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-view-map:hover {
    background: var(--light-teal);
}

/* Search */
.search-container {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(74, 64, 53, 0.3);
    border: 2px solid var(--smoke);
    color: var(--cream);
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif; font-weight: 300;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(74, 64, 53, 0.5);
    box-shadow: 0 0 20px rgba(212, 148, 26, 0.2);
}

.search-input::placeholder {
    color: var(--cream);
    opacity: 0.5;
}

/* Stand Popup */
.stand-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    z-index: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stand-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background: linear-gradient(135deg, var(--charcoal), var(--warm-black));
    border: 3px solid var(--gold);
    padding: 2rem;
    max-width: 500px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.close-popup:hover {
    color: var(--gold);
}

.popup-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: #f0f0f0;
    padding: 12px;
    border-radius: 12px;
}

.popup-content h3 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.popup-stand {
    font-size: 1.2rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.popup-brands {
    margin: 1.5rem 0;
}

.popup-brands h4 {
    font-family: 'Roboto', sans-serif; font-weight: 700;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.08em;
}

.popup-brands .brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.popup-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(212, 148, 26, 0.3);
    line-height: 1.7;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 250;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--cream);
    opacity: 0.6;
}

.empty-state::before {
    content: '🥃';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* SVG Map Styles */
.floor-plan-svg {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floor-plan-svg rect {
    transition: all 0.2s;
    cursor: pointer;
}

.floor-plan-svg .occupied {
    fill: rgba(212, 148, 26, 0.15) !important;
    stroke: var(--gold) !important;
    stroke-width: 1.5 !important;
}

.floor-plan-svg .empty {
    fill: rgba(74, 64, 53, 0.05) !important;
    stroke: var(--smoke) !important;
    stroke-width: 0.5 !important;
    cursor: default;
}

.floor-plan-svg .selected {
    fill: var(--gold) !important;
    fill-opacity: 0.4 !important;
    stroke: var(--highlight) !important;
    stroke-width: 4 !important;
    animation: blink 1s infinite;
}

.floor-plan-svg rect:hover:not(.empty) {
    fill: var(--gold) !important;
    fill-opacity: 0.3 !important;
}

/* Stand Logo Overlays on Map */
.stand-logo-overlay {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.95;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stand Name Overlay (when logo missing) */
.stand-name-overlay {
    position: absolute;
    pointer-events: none;
    background: #f0f0f0;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sponsorship Banner */
.sponsor-banner {
    text-align: center;
    padding: 0.8rem 1rem;
    background: rgba(245, 241, 232, 0.15);
    border-top: 1px solid rgba(212, 148, 26, 0.2);
    border-bottom: 1px solid rgba(212, 148, 26, 0.2);
}

.sponsor-banner-landing {
    margin: 1.5rem 0;
}

.sponsor-banner-app {
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
}

.sponsor-text {
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 0.3rem;
    font-family: 'Roboto', sans-serif; font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 300;
}

.sponsor-logo {
    max-width: 100px;
    max-height: 30px;
    object-fit: contain;
}

.sponsor-logo-landing {
    max-width: 140px;
    max-height: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .exhibitor-grid {
        grid-template-columns: 1fr;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .header-logo {
        height: 30px;
    }

    .user-info span {
        display: none;
    }

    .view-header h2 {
        font-size: 1.5rem;
    }

    .map-container {
        padding: 1rem;
    }
}
