﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --navy: #1e293b;
    --navy-light: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    min-height: 100vh;
}

/* Navigation */
.nav-header {
    background: var(--navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nav-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.nav-logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    padding: 8px;
    margin-right: 12px;
    color: white;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

    .nav-menu a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 6px;
        transition: all 0.2s;
        position: relative;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-menu a.btn-primary {
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
        }

            .nav-menu a.btn-primary:hover {
                background: var(--primary-dark);
                transform: translateY(-1px);
            }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - Simplified background */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--gray-800);
    padding: 4rem 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,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        opacity: 0.3;
    }

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
}

    .hero-feature i {
        color: #10b981;
        font-size: 1.2rem;
    }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

    .hero-cta:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }

/* Main Content */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.main-content {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.card-header {
    text-align: center;
    margin-bottom: 3rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Error Messages */
.error-messages {
    background: #fee2e2;
    border: 1px solid #f87171;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

    .error-messages p {
        color: #991b1b;
        margin: 0;
        font-size: 0.9rem;
    }

    .error-messages i {
        margin-right: 8px;
    }

.textarea {
    width: 100%;
    min-height: 300px;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    background: var(--gray-50);
}

    .textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        background: white;
    }

.analyze-section {
    text-align: center;
    margin-top: 2rem;
}

.analyze-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

    .analyze-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    }

    .analyze-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Results Section */
.results-section {
    flex: 1;
    min-width: 0;
    display: none;
}

    .results-section.show {
        display: block;
    }

.sample-results {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.scoring-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sample-results .scoring-card::before {
    content: 'SAMPLE';
    position: absolute;
    padding: 8px 60px;
    top: 30px;
    right: -50px;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.results-section .scoring-card::before {
    display: none;
}

.score-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.overall-score {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-excellent {
    color: var(--success);
}

.score-good {
    color: #10b981;
}

.score-fair {
    color: var(--warning);
}

.score-poor {
    color: var(--danger);
}

.score-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.score-subtitle {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.subscores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subscore {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.subscore-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.subscore-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.recommendations {
    margin-bottom: 2rem;
}

    .recommendations h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--gray-800);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.recommendation-item {
    background: linear-gradient(90deg, #dbeafe, #e0f2fe);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.analyst-view {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
}

    .analyst-view h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--gray-800);
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .analyst-view p {
        color: var(--gray-700);
        font-style: italic;
        line-height: 1.6;
    }

/* Detailed Results */
.detailed-results-toggle {
    text-align: center;
    margin-top: 2rem;
}

.detailed-results {
    display: none;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}

.detailed-category {
    margin-bottom: 2rem;
}

    .detailed-category h4 {
        color: var(--gray-800);
        font-weight: 600;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 0.5rem;
    }

.detailed-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.check-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
}

    .check-icon.pass {
        color: var(--success);
    }

    .check-icon.partial {
        color: var(--warning);
    }

    .check-icon.fail {
        color: var(--danger);
    }

.check-content {
    flex: 1;
}

.check-label {
    font-weight: 500;
    color: var(--gray-800);
}

.check-evidence {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.check-score {
    text-align: right;
    font-weight: 600;
}

    .check-score.full {
        color: var(--success);
    }

    .check-score.partial {
        color: var(--warning);
    }

    .check-score.none {
        color: var(--danger);
    }

/* Warning Section */
.warning {
    background: linear-gradient(90deg, #fef3c7, #fed7aa);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    margin-top: auto;
    position: relative;
}

    .warning::before {
        content: '\f071';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        color: var(--warning);
        font-size: 1.25rem;
    }

    .warning h3 {
        color: var(--gray-800);
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .warning p {
        color: var(--gray-700);
        font-size: 0.95rem;
    }

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 4px;
        transition: all 0.2s;
    }

        .footer-links a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
        }

.footer-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Loading States */
.loading {
    display: none;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-features {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .main-container {
        padding: 2rem 1rem;
    }

    .main-card {
        padding: 2rem;
    }

    .subscores {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .scoring-card {
        padding: 1.5rem;
    }
}


/* Input Method Tabs */
.input-method-tabs {
    display: flex;
    position: relative;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

    .tab-btn:hover {
        color: var(--gray-800);
    }

    .tab-btn.active {
        color: var(--primary);
    }

    .tab-btn i {
        font-size: 1.1rem;
    }

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* URL Input Styles */
.url-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.url-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.url-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.url-input {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

    .url-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        transform: translateY(-2px);
    }

        .url-input:focus ~ .url-icon {
            color: var(--primary);
        }

    .url-input.valid {
        border-color: var(--success);
    }

    .url-input.invalid {
        border-color: var(--danger);
    }

.url-status {
    position: absolute;
    right: 1.5rem;
    display: flex;
    align-items: center;
}

.valid-icon, .invalid-icon, .url-spinner {
    display: none;
}

.valid-icon {
    color: var(--success);
    font-size: 1.3rem;
}

.invalid-icon {
    color: var(--danger);
    font-size: 1.3rem;
}

.url-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.url-input.valid ~ .url-status .valid-icon {
    display: block;
}

.url-input.invalid ~ .url-status .invalid-icon {
    display: block;
}

.url-input.checking ~ .url-status .url-spinner {
    display: block;
}

.url-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1rem;
}

.suggestion-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.job-site-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0369a1;
}

/* Upload Zone Styles */
.upload-zone {
    position: relative;
    min-height: 250px;
    border: 3px dashed var(--gray-300);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

    .upload-zone:hover {
        border-color: var(--primary);
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        transform: translateY(-2px);
    }

    .upload-zone.dragging {
        border-color: var(--primary);
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    }

    .upload-zone.has-file {
        border-style: solid;
        background: white;
    }

.file-input-hidden {
    display: none;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.upload-zone.has-file .upload-content {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.upload-content p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.browse-btn {
    color: var(--primary);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.file-types {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* File Preview */
.file-preview-container {
    display: none;
    padding: 1.5rem;
}

.upload-zone.has-file .file-preview-container {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.file-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.file-remove {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

    .file-remove:hover {
        background: #b91c1c;
        transform: translateY(-1px);
    }

/* Text Counter */
.text-counter {
    text-align: right;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .input-method-tabs {
        flex-direction: column;
    }

    .tab-indicator {
        width: calc(100% - 8px);
        height: 48px;
    }

    .url-suggestions {
        flex-wrap: wrap;
    }
}