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

/* Utility Classes for Navigation */
.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1 1 0%;
}

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

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.w-auto {
    width: auto;
}

.ml-3 {
    margin-left: 0.75rem;
}

.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.whitespace-nowrap {
    white-space: nowrap;
}

@media (min-width: 640px) {
    .sm\\:block {
        display: block;
    }
}

@media (min-width: 768px) {
    .md\\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\\:block {
        display: block;
    }
}

@media (min-width: 1280px) {
    .xl\\:block {
        display: block;
    }
    
    .xl\\:flex {
        display: flex;
    }
    
    .hidden.xl\\:block {
        display: block;
    }
    
    .hidden.xl\\:flex {
        display: flex;
    }
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #ffd700;
    --accent-color: #ffc107;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #fefbf3;
    --bg-dark: #1a1a1a;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8941f 100%);
    --gold-gradient-light: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    --gold-gradient-dark: linear-gradient(135deg, #b8941f 0%, #8b6914 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gold-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    /* Add padding to prevent content from being hidden under fixed navigation */
    padding-top: 64px; /* Unified navigation height */
}

/* Unified Navigation Styles */
.unified-nav-container {
    width: 100%;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    will-change: transform; /* Optimize for animations */
}

/* Blue navigation bar hover effects */
.nav-main-row .nav-main-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* White glow hover effect for user navigation items - same as main nav buttons */
.nav-main-row .nav-link-item:hover,
.nav-main-row #nav-dashboard-link:hover,
.nav-main-row #nav-profile-link:hover,
.nav-main-row #nav-logout-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.nav-main-row #nav-user-welcome:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.unified-nav-container .nav-main-link:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.unified-nav-container .nav-link-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.unified-nav-container .nav-secondary-link:hover {
    background-color: #e5e7eb;
    color: #2563eb;
}

.unified-nav-container .nav-search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Search bar in blue navigation */
.nav-main-row .nav-search-input {
    background: rgba(255, 255, 255, 0.95);
}

.nav-main-row .nav-search-input:focus {
    background: white;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.unified-nav-container .nav-signup-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Sign up button in blue navigation */
.nav-main-row .nav-signup-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.unified-nav-container .nav-logo-link:hover {
    transform: scale(1.02);
}

.unified-nav-container .nav-logo-link:hover .nav-logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Logo hover in blue navigation - Light green */
.nav-main-row .nav-logo-link:hover .nav-logo-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 30%, #10b981 60%, #34d399 100%) !important;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.nav-main-row .nav-logo-link:hover .nav-logo-text {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transform: scale(1.1);
}

/* Clean logo name - no glow effects - ensure white color */
.nav-main-row .nav-logo-name,
.nav-logo-name {
    color: white !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
}

.nav-main-row .nav-logo-link:hover .nav-logo-name {
    color: white !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
    transform: scale(1.02);
}

/* Logo icon - no glow animation */
.nav-main-row .nav-logo-icon {
    transition: all 0.3s ease;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive adjustments for unified nav */
@media (max-width: 1280px) {
    body {
        padding-top: 64px; /* Main nav only on smaller screens */
    }
}

@media (max-width: 1024px) {
    .unified-nav-container .nav-search-container {
        width: 320px;
    }
}

@media (max-width: 1280px) {
    .unified-nav-container .nav-search-container {
        width: 360px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
    
    .unified-nav-container .nav-search-container {
        display: none !important;
    }
}

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

/* Navigation - Fixed at Top */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Fixed Navigation Styles for MQL5-style Two-Tier Nav */
.nav-top-bar,
.nav-main-bar,
.nav-secondary-bar {
    width: 100%;
    z-index: 9998;
}

/* Ensure parent container stays fixed */
nav + nav,
div[style*="position: fixed"] {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transition: color 0.3s;
}

.btn-dashboard {
    background: var(--gold-gradient);
    color: #1a1a1a !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: var(--gold-shadow);
}

.btn-dashboard:hover {
    background: var(--gold-gradient-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Navigation Link Styles */
.nav-link-item {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.nav-signup-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.nav-signup-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-main-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-main-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-secondary-link {
    color: #6b7280;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.nav-secondary-link:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

/* Search Styles */
.nav-search-container {
    position: relative;
    width: 100%;
}

.nav-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.nav-search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
}

.nav-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Logo Styles */
.nav-logo-link {
    text-decoration: none;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.nav-logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    background: var(--gold-gradient);
    color: #1a1a1a;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffd700;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.2);
    color: #1a1a1a;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(26, 26, 26, 0.3);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(26, 26, 26, 0.3);
    border-color: rgba(26, 26, 26, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Indicators Preview */
.indicators-preview {
    padding: 6rem 0;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.indicator-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.indicator-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.indicator-content {
    padding: 1.5rem;
}

.indicator-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.indicator-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indicator-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.indicator-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicator-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 1280px) {
    body {
        /* Secondary nav hidden on smaller screens */
        padding-top: 64px;
    }
}

@media (max-width: 768px) {
    body {
        /* Mobile navigation */
        padding-top: 64px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

