/*
Theme Name: Hotel Kiosk Theme
Description: A WordPress theme designed for hotel kiosk Android app management with QR code functionality and cookie consent management.
Version: 1.1
Author: Hotel Management System
*/

/* CSS Variables for consistent theming */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #a72417;
    --text-color: #333;
    --dark-bg: #020126;
    --font-heading: 'Belleza';
    --font-body: 'Belleza';
    --icon-color: #04012573;;
}

/* Local Belleza font declaration for intranet use */
@font-face {
    font-family: 'Belleza';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/belleza.woff2') format('woff2'),
         url('./fonts/belleza.woff') format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global font override for Belleza only */
* {
    font-family: 'Belleza', sans-serif !important;
}

html, body {
    height: 100%;
    font-family: var(--font-body) !important;
    font-display: swap;
    background: var(--dark-bg);
    color: var(--text-color);
}

/* Only apply overflow hidden on front page (kiosk mode) */
body.home html, 
body.home body,
body.front-page html,
body.front-page body {
    overflow: hidden; /* No scrolling on kiosk */
}

/* Typography */
h1 {
    font-size: 2.5em;
    font-weight: normal;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: 'Belleza', sans-serif;
}

h2 {
    font-size: 2em;
    font-weight: normal;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-family: 'Belleza', sans-serif;
}

h3 {
    font-size: 1.5em;
    font-weight: normal;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-family: 'Belleza', sans-serif;
}

h4 {
    font-size: 1.2em;
    font-weight: normal;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-family: 'Belleza', sans-serif;
}

/* Main Container */
.kiosk-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 100vw;
    transition: all 0.5s ease-in-out;
    background: var(--dark-bg);
    /* padding: 20px; */
    position: relative;
    box-sizing: border-box;
}

/* Live update indicator */
.live-update-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-family: 'Belleza';
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.live-update-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.live-update-indicator.error {
    background: rgba(244, 67, 54, 0.9);
}

/* Main Content Area - Dynamic height based on ad presence */
.main-content {
    display: flex;
    flex: 1;
    width: 100%;
    transition: all 0.5s ease-in-out;
    gap: 0;
    min-height: 0; /* Allow flex shrinking */
}

/* When ads are present, main content takes 70% of height */
.kiosk-container:not(.no-ad) .main-content {
    height: 70vh;
}

/* When no ads, main content takes full available height */
.kiosk-container.no-ad .main-content {
    height: calc(100vh - 40px); /* Full height minus container padding */
}

/* Three Main Sections */
.main-section {
    flex: 1;
    /* padding: 40px; */
    margin: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    overflow: hidden; /* Prevent content overflow */
    min-height: 0; /* Allow flex shrinking */
}

.main-section:last-child {
    border-right: none;
}

/* Welcome Section */
.welcome-section {
    background: rgb(1, 1, 27);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center; /* Ensure content is centered vertically */
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for text readability when background image is present */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.welcome-section.has-background::before {
    opacity: 1;
}

.welcome-section > * {
    position: relative;
    z-index: 2;

}

.welcome-title {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: normal;
}

.hotel-logo {
    max-width: 200px;
    max-height: 150px;
    margin-bottom: 30px;
}

.welcome-section h1,
.welcome-section h2,
.welcome-section h3 {
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: calc(.5em + 2vw);
}

.welcome-section .hotel-info {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 20px;
    letter-spacing: 2.5px;
}

/* Dynamic welcome message content */
.welcome-item {
    color: white;
    text-align: center;
}

.welcome-item h1,
.welcome-item h2, 
.welcome-item h3,
.welcome-item h4,
.welcome-item h5,
.welcome-item h6 {
    color: white !important;
    font-weight: normal;
    text-align: center;
}

.welcome-message-content {
    color: white;
    font-size: 1.1em;
    line-height: 1.5;
}

.welcome-message-content p {
    color: white;
    margin-bottom: 15px;
}

/* QR Code Section */
.qr-section {
    text-align: center;
    padding: 0 40px 5px 40px;
}

.bold {
    font-weight: bold;
}
.cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Belleza';
    color: #333;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
    font-family: 'Belleza';
    line-height: 1.4;
}

.qr-code {
    background: white;
    padding: 0;
    border-radius: 0;
    display: inline-block;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: none;
}

/* QR Section Icons - Small inline icons at bottom */
.qr-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.qr-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Belleza';
    color: white;
    box-shadow: inset 0px 0px 6px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.qr-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Icon specific colors - neutral styling */
.qr-icon.support {
    background: var(--icon-color);
}

.qr-icon.time {
    background: var(--icon-color);
}

.qr-icon.whatsapp {
    background: var(--icon-color);
}

.qr-icon.telegram {
    background: var(--icon-color);
}

.qr-icon.messenger {
    background: var(--icon-color);
}

.qr-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

/* Mobile responsiveness for QR icons */
@media (max-width: 768px) {
    .qr-icons {
        gap: 12px;
    }
    
    .qr-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .qr-icon img {
        width: 16px;
        height: 16px;
    }
}

/* Events Section */
.events-section {
    background: white;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow outside section boundaries */
    justify-content: center; /* Center content vertically */
}

.events-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Belleza';
    font-weight: normal;
    color: #333;
    text-transform: uppercase;
    /* letter-spacing: 1px; */
    flex-shrink: 0; /* Keep header at top, don't shrink */
}

.events-list {
    width: 100%;
    max-width: 350px;
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Scroll if content exceeds available space */
    overflow-x: hidden; /* Hide horizontal overflow */
    padding-right: 10px; /* Space for scrollbar */
    margin: 0 auto; /* Center the list */
    max-height: calc(100% - 120px); /* Reserve space for title */
}

/* When no ads, events section has more space */
.kiosk-container.no-ad .events-section {
    justify-content: flex-start; /* Start from top when more space available */
    padding-top: 10px;
}

.kiosk-container.no-ad .events-list {
    /* max-height: calc(100% - 160px);  */
    max-height: 100%;
}

/* Custom scrollbar for events list */
.events-list::-webkit-scrollbar {
    width: 6px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* For Firefox */
.events-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.event-item {
    background: transparent;
    padding: 15px 0;
    margin: 0;
    border-radius: 0;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.event-date {
    font-weight: normal;
    font-size: 0.9em;
    color: #666666;
    font-family: 'Belleza';
}

.event-title {
    font-size: 1.1em;
    margin: 5px 0;
    font-family: 'Belleza';
    font-weight: normal;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-description {
    font-size: 0.9em;
    color: #555555;
    font-family: 'Belleza';
}

.event-timestamp {
    font-size: 0.8em;
    color: #999999;
    margin-top: 5px;
    font-weight: normal;
    font-family: 'Belleza';
}

/* Advertisement Section (1/4 of screen) */
.advertisement-section {
    height: 25vh;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    transform: translateY(0);
    opacity: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.advertisement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8); /* Light overlay for text readability when background image is present */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.advertisement-section.has-background::before {
    opacity: 1;
}

.advertisement-section > * {
    position: relative;
    z-index: 2;
}

.ad-content {
    text-align: center;
    color: #333;
    font-family: 'Belleza';
}

.ad-title {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: normal;
    font-family: 'Belleza';
    color: #333333;
    text-align: center;
}

.ad-description {
    font-size: 1.2em;
    font-family: 'Belleza';
    color: #555555;
    text-align: center;
    line-height: 1.4;
}

/* Hidden sections handling */
.section-hidden {
    display: none !important;
}

/* When sections are hidden, remaining ones expand */
.main-content.two-sections .main-section {
    flex: 1;
}

.main-content.one-section .main-section {
    flex: 1;
}

/* Full height when advertisement is hidden */
.kiosk-container.no-ad {
    height: 100vh;
    padding: 20px;
}

.kiosk-container.no-ad .main-content {
    height: 100% !important;
    min-height: 100%;
    flex: 1;
}

/* Ensure sections fill full height when no ad */
.kiosk-container.no-ad .main-section {
    flex: 1;
    margin: 0 10px;
    height: 100%; /* Fill available height */
    min-height: 0; /* Allow flex shrinking */
}

.kiosk-container.no-ad .main-section:first-child {
    margin-left: 0;
    flex: 0 0 25%;
}

.kiosk-container.no-ad .main-section:last-child {
    margin-right: 0;
}

/* Ensure proper content distribution in each section when no ad */
.kiosk-container.no-ad .welcome-section,
.kiosk-container.no-ad .qr-section,
.kiosk-container.no-ad .events-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Center content vertically */
    align-items: center;
    height: 100%; /* Use available height from parent */
    overflow: hidden; /* Prevent content from going out of bounds */
}

/* Scale content appropriately when no ad section */
.kiosk-container.no-ad .cta-title {
    font-size: calc(.5em + 2vw);;
    margin-bottom: 25px;
}

.kiosk-container.no-ad .cta-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
}

.kiosk-container.no-ad .qr-code {
    padding: 30px;
    border-radius: 20px;
}

.kiosk-container.no-ad .qr-code img {
    width: 250px;
    height: 250px;
}

.kiosk-container.no-ad .events-title {
    margin-bottom: 15px;
    flex-shrink: 0;
    font-size: calc(.5em + 1.5vw);
    font-weight: bold;

}

.kiosk-container.no-ad .events-list {
    max-width: 400px;
    /* Other properties inherited from main .events-list rule above */
}
/* ==========================================================================
   QR LANDING PAGE STYLES
   ========================================================================== */

.qr-landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
    padding: 1rem;
}

.landing-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    text-align: center;
}

.hero-section {
    color: white;
    padding: 3rem 2rem;
    position: relative;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

.content-section {
    padding: 2rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

/* Fix for QR Landing Features List */
.features-list li {
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    color: var(--text-color) !important;
    padding-left: 0 !important;
    position: static !important;
}

.features-list li::before {
    display: none !important;
}

.features-list .feature-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.features-list li {
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    color: var(--text-color) !important;
    padding-left: 0 !important;
    position: static !important;
}

.features-list li::before {
    display: none !important;
}

.features-list .feature-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.whatsapp-button:hover {
    background-color: #20b954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.loading-text {
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 1rem;
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(167, 36, 23, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn.deny {
    background: #f44336;
    color: white;
}

.cookie-btn:hover {
    opacity: 0.8;
}

/* Captive Portal Styles */
.captive-portal {
    height: 100vh;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.portal-title {
    font-size: 3em;
    color: #333;
    margin-bottom: 30px;
}

.portal-content {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced Animation System */

/* Smooth section transitions */
.main-section,
.advertisement-section {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0); /* Enable hardware acceleration */
}

/* Section hiding/showing animations */
.main-section.section-hiding {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

.main-section.section-showing {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.advertisement-section.section-hiding {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.advertisement-section.section-showing {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Layout transitions when sections change */
.main-content {
    transition: grid-template-columns 0.5s ease-in-out;
}

.kiosk-container {
    transition: all 0.5s ease-in-out;
}

/* Admin panel styles for theme customization */
.theme-options {
    margin: 20px 0;
}

.option-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.option-group input[type="checkbox"] {
    margin-right: 10px;
}

/* Dynamic ad content styling */
.ad-item {
    color: #333333;
    text-align: center;
    padding: 20px;
}

.ad-item h1,
.ad-item h2,
.ad-item h3,
.ad-item h4,
.ad-item h5,
.ad-item h6 {
    color: #333333 !important;
    font-family: 'Belleza';
    font-weight: normal;
    text-align: center;
    margin-bottom: 15px;
}

.ad-item p {
    color: #555555;
    font-family: 'Belleza';
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.ad-item .ad-content {
    color: #555555;
}

/* Event content styling for dynamic events */
.event-item h1,
.event-item h2,
.event-item h3,
.event-item h4,
.event-item h5,
.event-item h6 {
    color: #333333 !important;
    font-family: 'Belleza';
    font-weight: normal;
}

.event-item p {
    color: #555555;
    font-family: 'Belleza';
    line-height: 1.4;
}

/* Make sure all text in white background sections is dark */
.main-section:not(.welcome-section) {
    color: #333333;
}

.main-section:not(.welcome-section) h1,
.main-section:not(.welcome-section) h2,
.main-section:not(.welcome-section) h3,
.main-section:not(.welcome-section) h4,
.main-section:not(.welcome-section) h5,
.main-section:not(.welcome-section) h6 {
    color: #333333 !important;
    font-family: 'Belleza';
}

.main-section:not(.welcome-section) p {
    color: var(--dark-bg);
    font-family: 'Belleza';
}

/* Single Ad Rotation Styles */
.single-ad-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ad-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ad-item.active {
    opacity: 1;
    transform: translateX(0);
}

.ad-item.previous {
    opacity: 0;
    transform: translateX(-100%);
}

.ad-item.next {
    opacity: 0;
    transform: translateX(100%);
}

/* Rotation indicators */
.message-rotation-indicator {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    z-index: 10;
}

/* Single item styles */
.single-ad-item,
.single-welcome-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Decorative horizontal lines after headlines */
.welcome-title::after,
.ad-title::after,
.events-title::after,
h1.decorative::after,
h2.decorative::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 5px auto 0 auto;
    border-radius: 1px;
}

/* Specific styling for welcome titles (white line for dark backgrounds) */
.welcome-title::after {

    width: 80px;
    height: 2px;
    margin: 20px auto 0 auto;
}

/* Alternative decorative line styles */
.welcome-title.elegant::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    width: 120px;
    height: 1px;
}

.ad-title.elegant::after {
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
    width: 100px;
    height: 2px;
}

/* For event titles - smaller, subtle line */
.event-title.decorative::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--accent-color);
    margin: 8px 0 0 0;
    border-radius: 1px;
}

/* ==========================================================================
   CAPTIVE PORTAL PAGE STYLES
   ========================================================================== */

.captive-portal-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Portal Header */
.portal-header {
    text-align: center;
    /* margin-bottom: 2rem; */
    width: 100%;
    max-width: 600px;
}

.header-content {
    background: white;
    border-radius: 15px 15px 0 0;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.portal-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portal-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Consent Requirement Section */
.consent-requirement {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.consent-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.consent-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.notice-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notice-content p {
    color: #856404;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.consent-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.95);
    border: 2px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.consent-waiting .notice-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.consent-waiting .notice-content h3 {
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.consent-waiting .notice-content p {
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.waiting-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(167, 36, 23, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

/* Portal Connection Section */
.portal-connection {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.connection-container {
    padding: 2rem;
}

/* WiFi Status */
.wifi-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.status-icon {
    flex-shrink: 0;
}

.wifi-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    display: block;
}

.status-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.connection-status {
    color: #28a745;
    font-weight: bold;
}

/* Instructions */
.portal-instructions {
    margin-bottom: 2rem;
}

.portal-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.portal-instructions p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-text {
    color: var(--text-color);
}

/* Portal Form */
.portal-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-description {
    color: #666;
    margin-bottom: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(167, 36, 23, 0.1);
}

.form-group input.valid {
    border-color: #28a745;
}

.form-group input.invalid {
    border-color: #dc3545;
}

/* Alert Messages */
.error-alert {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.success-alert {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.consent-success-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 1rem;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Terms Section */
.terms-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
}

.checkmark {
    flex-shrink: 0;
}

.terms-text {
    color: var(--text-color);
    line-height: 1.5;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Connect Button */
.connect-button {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-button:hover {
    background: #8b1e14;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 36, 23, 0.4);
}

.connect-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Portal Info Section */
.portal-info {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
}

.info-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-container h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   WALLED GARDEN PAGE STYLES
   ========================================================================== */

.walled-garden-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
    padding: 2rem;
    overflow-y: auto;
}

/* Garden Header */
.garden-header {
    text-align: center;
    margin-bottom: 3rem;
}

.garden-header .header-content {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
}

.garden-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.garden-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.garden-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 25px;
    color: #28a745;
    font-weight: bold;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #28a745;
}

.status-indicator.disconnected {
    background: #dc3545;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Garden Services */
.garden-services {
    margin-bottom: 3rem;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
}

.category-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.service-link.external::after {
    content: '🔗';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-text {
    font-weight: bold;
}

.service-link.clicked {
    background: #28a745;
    color: white;
}

.service-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Quick Info Section */
.garden-quick-info {
    margin-bottom: 3rem;
}

.garden-quick-info .info-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 1200px;
    margin: 0 auto;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

#weather-widget {
    min-height: 80px;
}

.weather-temp {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: var(--accent-color) !important;
}

.weather-desc {
    text-transform: capitalize;
}

/* Garden Upgrade Section */
.garden-upgrade {
    margin-bottom: 3rem;
}

.upgrade-container {
    max-width: 800px;
    margin: 0 auto;
}

.upgrade-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.upgrade-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.upgrade-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upgrade-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.upgrade-features {
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.2rem;
}

.upgrade-pricing {
    margin-bottom: 2rem;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.price-amount.highlighted {
    transform: scale(1.1);
}

.price-period {
    font-size: 1.2rem;
    opacity: 0.8;
}

.upgrade-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.upgrade-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.upgrade-contact {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Garden Navigation */
.garden-navigation {
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

.nav-link span:last-child {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

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

.modal-body {
    padding: 1rem 2rem;
}

.modal-body h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
}

.modal-body ul,
.modal-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-body li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.modal-button:hover {
    background: #8b1e14;
    transform: translateY(-2px);
}

.modal-button.primary {
    background: #28a745;
}

.modal-button.primary:hover {
    background: #218838;
}

/* QR Page Styles */
.qr-page .site {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-page-container {
    text-align: center;
    padding: 40px;
    background: var(--color-card, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}

.qr-page-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color, #d4af37);
}

.device-detection h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--accent-color, #ffd700);
}

#detection-status {
    margin: 20px 0;
    font-size: 1.1em;
}
