/* ===== MOBILE-SPECIFIC CSS VARIABLES ===== */
:root {
  /* Typography - Mobile Responsive */
  --font-h1: clamp(2rem, 4vw, 2.5rem);
  --font-h2: clamp(1.75rem, 3.5vw, 2.125rem);
  --font-h4: clamp(1.25rem, 2.5vw, 1.5rem);
  --font-body: clamp(1rem, 1.5vw, 1.125rem);
  --font-body-sm: clamp(0.875rem, 1vw, 1rem);
  --font-body-xs: clamp(0.8125rem, 0.8vw, 0.875rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  
  /* Border Radius */
  --radius-lg: 0.5rem;
  --radius-2xl: 1rem;
  --radius-full: 50%;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Logo Header */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 0;
    transition: padding 0.3s ease;
    overflow: visible;
}

.global-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.global-header.scrolled {
    padding: 12px 0;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.global-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: height 0.3s ease, max-width 0.3s ease;
}

.global-logo.scrolled {
    height: 40px;
    max-width: 180px;
}

/* Main Content */
#main-content {
    padding-top: 80px;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

.section-content {
    margin: 0 auto;
    padding: 20px;
    min-height: auto;
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    width: 600px;
    max-width: 95%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    min-width: 60px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.nav-btn.active {
    color: #d4a574;
    background: rgba(212, 165, 116, 0.1);
}

.nav-btn i {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-btn.active i {
    stroke-width: 2.5px;
    transform: scale(1.1);
}

.nav-btn span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 375px) {
    .nav-btn {
        padding: 6px 8px;
        min-width: 50px;
    }
    
    .nav-btn i {
        width: 20px;
        height: 20px;
    }
    
    .nav-btn span {
        font-size: 10px;
    }
}

/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #d4a574;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #c19660;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #d4a574;
    color: #d4a574;
}

.btn-outline:hover {
    background: #d4a574;
    color: white;
}

/* ===== GLOBAL UTILITY CLASSES ===== */
.mobile-container {
    width: 100%;
    margin: 0 auto;
}

/* Common Layout Classes */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.text-center {
    text-align: center;
}

/* Common Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.bg-gradient-surface {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Common Icon Styles */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

/* Common Typography Classes */
.text-primary {
    color: var(--color-primary);
}

.text-primary-dark {
    color: var(--color-primary-dark);
}

.text-muted {
    color: var(--color-gray-600);
}

/* Common Spacing Classes */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ===== FOOTER LINKS CONTAINER ===== */
.footer-links-container {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    background: var(--color-white);
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-gray-200);
    margin: var(--space-2) auto;
    width: 700px;
    max-width: 90%;
}

.footer-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-gray-700);
    font-size: var(--font-body-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
}

.footer-link-btn:hover {
    color: var(--color-primary);
}