/* Custom CSS for CycleTrader */

/* Global Styles */
:root {
    --primary-bg: #f8f9fa;
    --secondary-bg: #ffffff;
    --primary-text: #212529;
    --secondary-text: #6c757d;
    --accent-color: #0d6efd;
    --border-color: #dee2e6;
    --card-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --section-spacing: 5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

/* Text adjustments for light theme */
.text-muted {
    color: #1c2333 !important;
}

.app-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.custom-card {
    background-color: var(--secondary-bg);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Header Styles */
.app-header {
    background-color: var(--secondary-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    filter: none; /* No inversion for logo in light theme */
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* How It Works Section */
.step-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

/* Footer */
.app-footer {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    padding: 4rem 0 2rem;
    margin-top: var(--section-spacing);
}

/* Upload Form */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background-color: var(--secondary-bg);
}

.upload-area:hover {
    border-color: var(--accent-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area.highlight {
    border-color: var(--accent-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* Results Page */
.recommendation-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cycle-strength-bar {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    overflow: hidden;
    margin: 0.5rem 0;
}

.cycle-strength-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
}

/* Form Inputs */
.form-control::placeholder {
    color: #6c757d;
    opacity: 0.5;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .custom-card {
        padding: 1.5rem;
    }
}

/* Chart Container */
.chart-container {
    height: 400px;
    width: 100%;
    margin-bottom: 2rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spinner 1s ease-in-out infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Cycle Cards */
.cycle-card {
    border-left: 4px solid var(--accent-color);
    transition: transform 0.2s;
}

.cycle-card:hover {
    transform: translateX(5px);
}

/* Button Styles */
.btn-primary, .btn-outline-primary:hover {
    color: white;
}

.btn-outline-primary {
    color: var(--accent-color);
}

/* Print Styles for Reports */
@media print {
    .app-header, .app-footer, .btn, .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .custom-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Documentation Page */
.list-group-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Blog Page */
.blog-post-meta {
    margin-bottom: 1rem;
}

.blog-tags .badge {
    margin-right: 0.5rem;
}

/* API Documentation Page */
pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

/* Success/Error Messages */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Accessibility Focus Styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* Dark Mode Support (if user has dark mode preference) */
@media (prefers-color-scheme: dark) {
    /* We're not changing to dark mode automatically,
       but if we want to support it in the future, 
       we can add styles here */
}