﻿/* ===============================================
   GLOBAL STYLES
   Used on: All pages
   =============================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Used throughout all pages */
:root {
    --primary-color: #9333ea;
    --primary-hover: #7e22ce;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #e9d5ff;
    --bg-light: rgba(88, 28, 135, 0.35);
    --bg-white: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px -3px rgba(88, 28, 135, 0.5);
}

/* Body - All pages */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    background-image: url('../images/purple-backgrounds.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ===============================================
   LOGIN PAGE STYLES
   Used on: login.php
   =============================================== */

/* Main container for login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Login form box with glassmorphism effect */
.login-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(88, 28, 135, 0.5), 0 0 0 1px rgba(255,255,255,0.08) inset;
    width: 100%;
    max-width: 450px;
}

/* Main heading "Liquid Love Switzerland" */
.login-box h1 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(88, 28, 135, 0.6);
}

/* Subtitle text under main heading */
.login-box .subtitle {
    text-align: center;
    color: #e9d5ff;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form input wrapper */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #f3e8ff;
}

/* Email input field */
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Email input placeholder text */
.form-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Email input focus state */
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #d8b4fe;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

/* Primary submit button "Send Login Link" */
.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

/* Primary button hover state */
.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
    transform: translateY(-1px);
}

/* Primary button active/clicked state */
.btn-primary:active {
    transform: translateY(0);
}

/* Info text section at bottom of login box */
.info-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Info text paragraph */
.info-text p {
    font-size: 0.875rem;
    color: #e9d5ff;
    text-align: center;
    line-height: 1.5;
}

/* ===============================================
   MESSAGE BOXES
   Used on: login.php
   Purpose: Display success/error feedback messages
   =============================================== */

/* Base message box styling */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Success message variant */
.message.success {
    background-color: rgba(147, 51, 234, 0.25);
    color: #f3e8ff;
    border: 1px solid rgba(216, 180, 254, 0.4);
}

/* Error message variant */
.message.error {
    background-color: rgba(153, 27, 27, 0.4);
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.4);
}

/* ===============================================
   PAGE CONTAINER & LAYOUT
   Used on: home.php, explore.php, good-to-go.php, session-reg.php, video.php, tickets.php
   Purpose: Main page wrapper with flexbox layout
   =============================================== */

/* Main page container - all internal pages */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================================
   SITE HEADER
   Used on: home.php (with logo), all step pages (with back button)
   Purpose: Sticky header with navigation elements
   =============================================== */

/* Main header navigation bar */
.site-header {
    background: rgba(60, 10, 100, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 20px rgba(88, 28, 135, 0.4);
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header content wrapper */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    position: relative;
}

/* Page title - Used on step pages (explore.php, session-reg.php, etc.) */
.page-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 60px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 0;
    text-shadow: 0 2px 8px rgba(88, 28, 135, 0.5);
}

/* Liquid Love logo - Used on home.php */
.site-logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* User info container - Used on home.php */
.user-info {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Logout button - Used on home.php */
.btn-logout {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s;
}

/* Logout button hover state */
.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

/* User email display bar - Used on home.php */
.user-email-bar {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 1rem 0;
    letter-spacing: 0.03em;
}

/* Info bar - Used on home.php below the header */
.info-bar {
    background: rgba(186, 230, 253, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(125, 193, 229, 0.6);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.88rem;
    color: #0c4a6e;
    line-height: 1.5;
}

/* Info bar link */
.info-bar a {
    color: #075985;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Info bar link hover */
.info-bar a:hover {
    color: #0369a1;
}

/* Admin Dashboard link — pinned to the right of the info bar */
.info-bar-admin-link {
    position: absolute;
    right: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #075985 !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(7, 89, 133, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    transition: background 0.2s;
}

.info-bar-admin-link:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #0369a1 !important;
}

/* ===============================================
   MAIN CONTENT & FOOTER
   Used on: All internal pages
   Purpose: Main content area and footer styling
   =============================================== */

/* Main content area */
.site-main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Site footer */
.site-footer {
    background: rgba(60, 10, 100, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1rem;
    text-align: center;
    margin-top: auto;
}

/* Footer copyright text */
.site-footer p {
    color: #e9d5ff;
    font-size: 0.875rem;
}

.site-footer a {
    color: #ffffff !important;
    text-decoration: underline;
}

/* ===============================================
   HOME PAGE - NAVIGATION SECTIONS
   Used on: home.php only
   Purpose: Step-by-step navigation cards/buttons
   =============================================== */

/* Container for all navigation sections on home page */
.nav-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    max-width: 680px;
    margin: 0 auto;
    background: rgba(60, 10, 100, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(88, 28, 135, 0.5);
}



/* Navigation button for each step */
.nav-btn {
    display: inline-block;
    padding: 0.65rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 12px rgba(88, 28, 135, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav button hover state (enabled buttons only) */
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.45);
    transform: translateY(-1px);
}

/* Nav button active/clicked state */
.nav-btn:active {
    transform: translateY(0);
}

/* Disabled nav button (step not yet accessible) */
.nav-btn--disabled,
.nav-btn:disabled {
    opacity: 0.40;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    background: transparent;
}

/* Disabled nav button hover state (no change) */
.nav-btn--disabled:hover,
.nav-btn:disabled:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    transform: none;
}

/* Individual navigation section wrapper */
.nav-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Description text under each navigation button */
.nav-desc {
    color: #e9d5ff;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
    max-width: 560px;
}

/* Description text under each navigation button */
.desc-german {
    color: #a4d6f7;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
    max-width: 560px;
}

.inline-link {
    color: #e9d5ff;
    text-decoration: underline;
}

.inline-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===============================================
   BACK BUTTON
   Used on: explore.php, good-to-go.php, session-reg.php, video.php, tickets.php
   Purpose: Navigation button to return to home page
   =============================================== */

/* Home button in header of step pages — matches btn-logout style */
.btn-back {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s;
}

/* Home button hover state */
.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ===============================================
   NAV BUTTON AS LINK
   Used on: home.php
   Purpose: Ensures nav buttons work correctly as anchor tags
   =============================================== */

/* Removes default link styling from nav button links */
a.nav-btn {
    text-decoration: none;
    display: inline-block;
}

/* ===============================================
   RESPONSIVE DESIGN
   Used on: All pages
   Purpose: Mobile and tablet breakpoints
   =============================================== */

/* Tablet and smaller screens */
@media (max-width: 768px) {
    /* Login page adjustments */
    .login-box {
        padding: 2rem 1.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Login page mobile adjustments */
    .login-box {
        padding: 1.5rem 1rem;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }

    /* Content area mobile adjustments */
    .site-main {
        padding: 1rem;
    }
}

