/* ==========================================================================
   Modern Layout Styling - Ticketjes.be
   Fresh, compact design with orange theme
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-orange: #df691a;
    --primary-orange-hover: #c55a17;
 --accent-orange: #ffbb8e;
    --secondary-beige: #e8e4e0;
    --text-dark: #2b3e50;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

/* ==========================================================================
   Base Layout
   ========================================================================== */
html {
    background-color: var(--secondary-beige);
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   Header
   ========================================================================== */
.fresh-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-orange);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-orange));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.brand-text:hover {
    color: var(--primary-orange);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
  padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
color: var(--primary-orange);
}

.desktop-nav {
  display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
  width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
 transition: opacity 0.3s ease;
    visibility: hidden; /* ? ADDED - Extra safeguard */
    pointer-events: none; /* ? ADDED - Don't block clicks when hidden */
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible; /* ? ADDED */
    pointer-events: auto; /* ? ADDED - Allow clicks when active */
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
height: 100%;
    background: white;
    z-index: 1002;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    padding: 1.5rem;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-orange);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-close:hover {
  color: var(--primary-orange);
}

/* ==========================================================================
   Navigation Styling
   ========================================================================== */
.navbar-nav {
    display: flex;
    flex-direction: row;
  align-items: center;
 gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.navbar-nav .nav-item {
  margin: 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
    background: none;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
    background: rgba(223, 105, 26, 0.1);
}

.navbar-nav .btn-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.navbar-nav .btn-link:hover {
    color: var(--primary-orange) !important;
}

/* Language switcher */
.language-control {
    position: relative;
}

.language-control select,
.language-control .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.language-control select:hover,
.language-control .form-select:hover {
    border-color: var(--primary-orange);
    background: white;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.fresh-main {
    flex: 1;
    display: flex;
    flex-direction: column;
  padding: 1.5rem 0;
}

.main-container {
    width: 90%; /* Changed from 75% for better mobile, adjust for desktop */
    max-width: 1400px; /* Add max-width to prevent too wide on large screens */
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Desktop adjustments */
@media (min-width: 992px) {
    .main-container {
  width: 85%;
        max-width: 1300px;
    }
}

@media (min-width: 1200px) {
    .main-container {
width: 80%;
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .main-container {
        width: 75%;
 max-width: 1500px;
    }
}

#app {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1;
  min-height: 0;
    width: 100%;
}

#app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--accent-orange), var(--primary-orange));
    z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.fresh-footer {
    background: var(--primary-orange);
    color: var(--text-light);
    padding: 0.5rem 0;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.footer-container {
    max-width: 1200px;
  margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
  margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  white-space: nowrap;
}

.footer-links a:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* ==========================================================================
   Global Improvements
   ========================================================================== */
/* Better touch targets - preserve existing display modes */
button, .btn, input[type="button"], input[type="submit"] {
  min-height: 44px;
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto !important; /* Force clickability */
}

/* Ensure ALL block buttons work properly - HIGHEST PRIORITY */
.btn-block,
.btn.btn-block,
a.btn-block,
a.btn.btn-block,
button.btn-block,
.btn-lg.btn-block,
a.btn-lg.btn-block,
.d-block.btn,
a.d-block.btn,
[class*="btn-block"],
.w-100.btn,
button.w-100 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    text-align: center !important;
}

/* Social login buttons - specific handling */
.btn-google,
.btn-facebook {
display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    text-align: center !important;
}

.btn-google i,
.btn-facebook i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Ensure icons inside buttons are properly aligned */
.btn i,
.btn .fas,
.btn .far,
.btn .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Ensure badges inside buttons don't break alignment */
.btn .badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Only apply flex to inline buttons, not block-level ones */
button:not(.btn-block):not([class*="d-block"]),
.btn:not(.btn-block):not([class*="d-block"]),
input[type="button"]:not(.btn-block),
input[type="submit"]:not(.btn-block) {
 display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

/* Links should not have forced flex unless they're styled as buttons */
a:not(.btn) {
    display: inline;
  min-height: auto;
    min-width: auto;
}

/* Regular button links - but not if they're block buttons */
a.btn:not(.btn-block):not([class*="d-block"]) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent text selection on buttons */
button, .btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better input fields for mobile */
input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    border-radius: var(--radius-sm);
}

/* Improve focus states for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better table responsiveness */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Card hover effects - disable on touch devices */
@media (hover: none) {
    .card:hover, .btn:hover {
        transform: none;
 }
}

/* Override old problematic styles */
.main {
    margin-top: 0;
}

.footer {
    position: static;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
  opacity: 0;
     transform: translateY(20px);
    }
    to {
    opacity: 1;
        transform: translateY(0);
    }
}
