/* TokuGo Welcome Page Styles
 * Component-specific styles that use design system tokens from design-system.css
 * All color definitions are now in design-system.css
 */

/* Enable Bootstrap's dark theme */
html {
    color-scheme: dark;
}

/* Bootstrap overrides for welcome page */
:root {
    --bs-primary: #ffffff;
    --bs-primary-rgb: 255, 255, 255;
    --bs-secondary: #9ca3af;
    --bs-secondary-rgb: 156, 163, 175;
    --bs-success: #22c55e;
    --bs-success-rgb: 34, 197, 94;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-info: #3b82f6;
    --bs-info-rgb: 59, 130, 246;

    /* Page-specific gradients */
    --gradient-primary: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --gradient-secondary: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

/* Global Styles */
body {
    font-family: 'Montserrat', 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: var(--background-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.02) 0%, rgba(249, 250, 251, 0.05) 100%); /* Light overlay for dark theme */
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.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%28249, 250, 251, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Light hamburger icon */
}

/* Hero Content */
.hero-content {
    color: var(--text-primary);
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.feature-card {
    background: var(--background-secondary) !important; /* Dark card background */
    color: var(--text-primary) !important; /* Light text */
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Darker shadow for dark theme */
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Darker hover shadow */
    border-color: var(--primary-color);
}

.feature-card .card-body {
    background-color: var(--background-secondary) !important; /* Dark card body */
    color: var(--text-primary) !important; /* Light text */
}

.feature-card .card-title {
    color: var(--text-primary) !important; /* Light title */
}

.feature-card .card-text {
    color: var(--text-secondary) !important; /* Light secondary text */
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--background-primary);
}

.feature-icon.primary {
    background: var(--primary-color);
}

.feature-icon.success {
    background: var(--success-color);
}

.feature-icon.info {
    background: var(--info-color);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 2.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: #1f2937; /* Dark text on light button */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15); /* Light shadow */
}

.btn-primary:hover {
    background: #e5e7eb; /* Slightly darker light background */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2); /* Light hover shadow */
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--background-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: var(--background-secondary) !important; /* Dark CTA background */
    color: var(--text-primary) !important; /* Light text */
    border-radius: 1rem;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.cta-title {
    color: var(--text-primary) !important; /* Light title */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-secondary) !important; /* Light secondary text */
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--background-primary) !important;
    border-top: 1px solid var(--border-color);
}

footer h5, footer h6 {
    color: var(--text-primary);
}

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

footer a:hover {
    color: var(--text-primary) !important;
    transition: color 0.3s ease;
}

.social-links a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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