/* Modern Light Mode UI Styles for JTTSATL Trading Hub - Mobile Friendly */

:root {
    --primary-light: #ffffff;
    --secondary-light: #f8f9fa;
    --tertiary-light: #e9ecef;
    --accent-yellow: #ffc107;
    --accent-yellow-light: #ffd54f;
    --accent-yellow-dark: #ff8f00;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 193, 7, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--accent-yellow-dark) !important;
}

.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Modern Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-warning {
    background: var(--gradient-gold);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: var(--text-dark);
}

.btn-outline-warning {
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow-dark);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
    border-color: var(--accent-yellow);
}

.btn-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--text-light);
    border: none;
}

.btn-dark:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-light);
}

/* Modern Cards */
.card {
    background: var(--primary-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 193, 7, 0.3);
}

.card-header {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.card-body {
    padding: 1.5rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    margin-top: 60px;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, var(--accent-yellow-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    padding: 0 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.feature-card {
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--primary-light);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    background: var(--secondary-light);
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    color: var(--accent-yellow-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modern Forms */
.form-control {
    background: var(--secondary-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background: var(--primary-light);
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
    color: var(--text-dark);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Login/Register Cards */
.auth-card {
    background: var(--primary-light);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 1rem;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Cards */
.pricing-card {
    background: var(--primary-light);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-lg);
}

.pricing-card h4 {
    color: var(--accent-yellow-dark);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.pricing-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Signal Posts */
.signal-post {
    background: var(--secondary-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.signal-post:hover {
    background: var(--primary-light);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.signal-post h5 {
    color: var(--accent-yellow-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.signal-post p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.signal-post small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.signal-post .btn-group {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .signal-post .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .signal-post .btn-group {
        align-self: flex-end;
    }
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 5rem;
    padding: 2rem 0;
    color: var(--text-dark);
}

footer a {
    color: var(--accent-yellow-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Text Colors */
.text-warning {
    color: var(--accent-yellow-dark) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

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

.text-light {
    color: var(--text-light) !important;
}

/* Mobile-First Responsive Design */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 4rem 0 3rem;
        margin-top: 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
        border-radius: 20px;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .signal-post {
        padding: 1.25rem;
    }
    
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0 3.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .auth-card {
        padding: 2.5rem 2rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding: 8rem 0 6rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Touch-friendly elements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 0.875rem 2rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .card:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Better tap targets */
    a, button {
        -webkit-tap-highlight-color: rgba(255, 193, 7, 0.2);
    }
}

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

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility Classes */
.mt-mobile {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .mt-mobile {
        margin-top: 0;
    }
}

/* Container improvements */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Better spacing for mobile */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 576px) {
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .row > * {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
