/*
===============================================================================
LAYOUT STRUCTURE AND CONTAINERS
===============================================================================

PURPOSE:
Main layout, containers, header, navigation, and structural elements

WHEN TO USE THIS FILE:
- When adding/modifying layout structure and containers
- When working with foundational styling elements
- When main layout, containers, header, navigation, and structural elements

LOAD ORDER: This file loads in position 2 of 6
- Loaded after: base
- Loaded before: components, auth, pages, utilities

DEPENDENCIES:
- Requires: base.css variables (if not base.css itself)
- Required by: All subsequent CSS files

Generated: 2025-09-04 16:59:11
Original file: common.css (119677 bytes)
===============================================================================

CSS ARCHITECTURE RULES:
- This file contains COMMON rules used by both mobile AND desktop
- Mobile-specific rules are in mobile.css (max-width: 1339px)
- Desktop-specific rules are in desktop.css (min-width: 1340px)
- Rule migration logic:
  * If common rule exists + mobile rule exists + desktop rule missing → Copy common to desktop, remove from common
  * If common rule exists + desktop rule exists + mobile rule missing → Copy common to mobile, remove from common  
  * If common rule exists + both mobile and desktop rules exist → Remove from common
  * If common rule exists + neither mobile nor desktop rules exist → Keep in common
- Mobile and desktop rules never overlap due to media queries, avoiding inheritance issues

PROPERTY-LEVEL MIGRATION:
- When moving rules from common to mobile/desktop, verify ALL CSS properties are accounted for
- Compare each property: common vs mobile vs desktop
- Copy missing properties from common to target file(s)
- Only remove common rule after all properties are properly migrated
- If conflicting values exist, keep the specific (mobile/desktop) value
- Merge properties into existing rules, don't create duplicate rules
*/

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.header-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 1rem;
}

.header-branding h1 {
    font-size: 1.7rem; /* Increased size */
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    flex-shrink: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.header-actions {
    flex: 1;
    justify-content: center;
    position: relative;
}

/* Moved to desktop.css */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    background-color: var(--background-color);
    height: auto; /* Use natural height by default */
    min-height: calc(100vh - 60px); /* Ensure minimum height for chat pages */
    overflow: visible; /* Allow page scrolling */
    position: relative; /* Restored for absolute positioning of Clerk components */
    gap: 0;
    padding: 0;
}


/* For pages with chat content, use fixed height */
.main-content:has(.chat-container) {
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
}

.main-content {
        height: auto !important; /* Allow main content to expand */
        min-height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.header-branding {
        position: relative;
        justify-content: flex-start;
        padding: 8px 0; /* Reduced padding */
        overflow: visible !important; /* Ensure hamburger is not cut off */
    }

/* Moved to desktop.css */

/* Header-nav rules moved to mobile.css and desktop.css */


.header-nav .nav-link {
        padding: 16px 24px; /* Increased padding for better spacing */
        text-align: left;
        width: 100%;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        white-space: nowrap; /* Prevent text wrapping */
        box-sizing: border-box;
        min-height: 48px; /* Ensure touch-friendly height */
        display: flex;
        align-items: center;
        font-size: 1.05rem; /* Slightly larger font for better readability */
        font-weight: 500;
    }

.header-nav .nav-link:hover {
        background-color: rgba(124, 93, 250, 0.1);
        transform: none;
    }

.header-controls {
        display: none;
    }

/* Moved to desktop.css */

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.nav-link.nav-link-active {
    background: var(--primary-color) !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: white !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.nav-link.nav-link-active:hover {
    background: var(--primary-hover) !important;
    color: white !important;
    opacity: 1 !important;
    transform: none !important;
}

.header-auth .nav-link {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.header-auth .nav-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Authentication link styling */
.auth-link {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

.auth-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.main-logo {
        height: 32px !important; /* Smaller logo but still full version */
        width: auto !important;
    }

.language-switcher-container {
        margin-right: 4px !important;
    }

.language-switcher-container {
        display: flex;
    }

.main-logo {
    height: 60px;
    width: auto;
    vertical-align: middle;
    display: block;
}

.clerk-component-main {
    /* Disable legacy overlay positioning */
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.language-switcher-container {
  display: flex;
  margin-right: 1rem;
  margin-left: 1rem;
  align-items: center;
}

.payment-result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px); /* Account for header height */
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gdpr-data-container {
    max-height: 400px;
    overflow-y: auto;
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.payment-result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.clerk-auth-container {
    flex: 1;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start to align with welcome content */
    align-items: center;
    min-height: calc(100vh - 60px - var(--spacing-sm) * 2); /* Account for header and padding */
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03)); /* Bluish gradient background */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: var(--spacing-sm);
    margin-left: var(--spacing-xs);
    padding: var(--spacing-sm);
    padding-top: var(--spacing-lg); /* Match welcome container padding */
    position: relative;
    z-index: 10;
    /* Ensure Clerk components inside are always interactive */
    pointer-events: auto;
    max-width: 100%;
    box-sizing: border-box;
    /* Ensure same height as welcome container */
    height: auto;
    max-height: none;
}

