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

:root {
    /* Bright Computer-Inspired Color Palette */
    --electric-blue: #00d4ff;
    --ascii-green: #00ff41;
    --neon-purple: #bc13fe;
    --cyber-orange: #ff6b35;
    --matrix-green: #00ff00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(10, 10, 10, 0.9);
    --border-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success-color: #00ff41;
    --warning-color: #ff6b35;
    --error-color: #ff0040;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('abstract.jpeg') center center/cover no-repeat;
    opacity: 0.1;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(0, 212, 255, 0.05) 50%, 
        rgba(10, 10, 10, 0.95) 100%);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-bottom: 2px solid var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    padding: 2rem 0;
    text-align: center;
}

.site-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--electric-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.site-title i {
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

.site-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Header Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-right {
    flex: 0 0 auto;
}

.back-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #39ff14;
}

.strategy-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strategy-badge.long {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.strategy-badge.short {
    background: rgba(255, 57, 20, 0.2);
    color: #ff3914;
    border: 1px solid rgba(255, 57, 20, 0.4);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Strategy Selection Landing Page */
.strategy-selection {
    padding: 40px 0;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.strategy-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #39ff14);
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.strategy-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.strategy-card h2 {
    color: #00d4ff;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.strategy-category {
    color: #39ff14;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strategy-description {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.strategy-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Strategy Info Section */
.strategy-info {
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.info-card h2 {
    color: #00d4ff;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-item h3 {
    color: #39ff14;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.info-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    padding-left: 20px;
}

.info-item li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.info-item li:last-child {
    border-bottom: none;
}

/* Analysis Form */
.analysis-form {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.form-container {
    padding: 2rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--electric-blue);
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--electric-blue);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-blue), var(--ascii-green));
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--ascii-green), var(--matrix-green));
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.6);
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.results-container {
    padding: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--electric-blue);
    font-size: 1.8rem;
}

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

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

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

/* Results Table */
.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--electric-blue);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.results-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.results-table td {
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Download Section */
.download-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    text-align: center;
}

.download-section h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 20px;
}

.download-section p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-glow);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--electric-blue);
    font-family: 'Orbitron', monospace;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strategy-card {
        padding: 25px;
    }
    
    .strategy-icon {
        font-size: 36px;
    }
    
    .strategy-card h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .results-container {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
} 