/* QuantumPutAI v5.0 - Professional Web Styling */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-primary: 0 4px 15px rgba(102, 126, 234, 0.4);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    min-width: 140px;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--warning-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.badge-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.badge-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Scanner Section */
.scanner-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.scanner-panel {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.scanner-panel h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.scanner-panel h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.quick-scan-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.quick-scan-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Results Panel */
.results-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: var(--light-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.results-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.results-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-container {
    padding: 2rem;
    min-height: 400px;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.results-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.score-excellent {
    background-color: var(--success-color);
    color: white;
}

.score-good {
    background-color: var(--info-color);
    color: white;
}

.score-fair {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.score-poor {
    background-color: var(--danger-color);
    color: white;
}

.recommendation-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rec-strong-buy {
    background-color: var(--success-color);
    color: white;
}

.rec-buy {
    background-color: var(--info-color);
    color: white;
}

.rec-hold {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.rec-avoid {
    background-color: var(--danger-color);
    color: white;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.putplaybook-integration {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.putplaybook-integration h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.putplaybook-integration h4 i {
    color: var(--warning-color);
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
}

.footer h5 i {
    margin-right: 0.5rem;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Form Controls */
.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
    border: none;
}

/* Accordion */
.accordion-button {
    background-color: var(--light-color);
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.accordion-button i {
    margin-right: 0.5rem;
}

/* Status Messages */
.status-message {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

/* Loading Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .scanner-panel {
        position: relative;
        top: auto;
        margin-bottom: 2rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .results-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .scanner-section,
    .about-section {
        padding: 60px 0;
    }
    
    .scanner-panel,
    .results-panel {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-light);
}

.border-custom {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Custom Scrollbar */
.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}