/* Resume Scorer Styles */

:root {
    --font-sans: "Inter", sans-serif;
    --text-color: rgb(25, 25, 24);
    --bg-color: #fafafa;
    --border-color: rgba(55, 53, 47, 0.12);
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-32) var(--space-24);
}

/* ========== APP HEADER ========== */
.app-header {
    text-align: center;
    margin-bottom: var(--space-24);
    padding: var(--space-16) var(--space-24);
    margin: calc(-1 * var(--space-32)) calc(-1 * var(--space-24)) var(--space-24);
}

.app-header__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-color);
    margin: 0;
    padding-bottom: var(--space-16);
}

.app-header__title::after {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: var(--border-color);
    margin: var(--space-16) auto 0;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upload-box {
    border: 1px dashed rgba(55, 53, 47, 0.16);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-box:hover {
    border-color: #2383E2;
    background: rgba(35, 131, 226, 0.02);
}

.upload-box.drag-over {
    border-color: #2383E2;
    background: rgba(35, 131, 226, 0.05);
}

.upload-content svg {
    color: rgba(25, 25, 24, 0.4);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgb(25, 25, 24);
}

.upload-subtext {
    font-size: 16px;
    color: rgba(25, 25, 24, 0.6);
    margin-bottom: 12px;
}

.upload-formats {
    font-size: 14px;
    color: rgba(25, 25, 24, 0.5);
}

.file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #2383E2;
    font-size: 16px;
    font-weight: 500;
}

.file-selected svg {
    color: #2383E2;
}

/* Buttons */
.btn-primary {
    width: 100%;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    background: #000000;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
    background: #1a1a1a;
}

.btn-primary:active:not(:disabled) {
    background: #333333;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    background: white;
    color: #2383E2;
    border: 0.5px solid #2383E2;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 32px;
}

.btn-secondary:hover {
    background: rgba(35, 131, 226, 0.05);
}

.btn-secondary:active {
    background: rgba(35, 131, 226, 0.1);
}

/* Loading */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background: rgba(35, 131, 226, 0.05);
    border-radius: 8px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(35, 131, 226, 0.2);
    border-top-color: #2383E2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-message p {
    font-size: 16px;
    color: rgba(25, 25, 24, 0.8);
}

/* Error Message */
.error-message {
    margin-top: 16px;
    padding: 16px;
    background: #fee;
    border: 0.5px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: 14px;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.results-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid rgba(25, 25, 24, 0.1);
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.score-number {
    font-size: 72px;
    font-weight: 700;
    color: #2383E2;
    line-height: 1;
}

.score-label {
    font-size: 36px;
    font-weight: 600;
    color: rgba(25, 25, 24, 0.4);
}

.role-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(35, 131, 226, 0.1);
    color: #2383E2;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, rgba(35, 131, 226, 0.08) 0%, rgba(35, 131, 226, 0.04) 100%);
    border-left: 4px solid #2383E2;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.summary-box h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
}

.summary-box p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.2px;
    color: rgba(25, 25, 24, 0.9);
}

/* Parameters Section */
.parameters-section {
    margin-bottom: 32px;
}

.parameters-section h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.parameters-grid {
    display: grid;
    gap: 16px;
}

.parameter-card {
    background: white;
    border: 0.5px solid rgba(25, 25, 24, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.parameter-card:hover {
    border-color: #2383E2;
    box-shadow: 0 4px 12px rgba(35, 131, 226, 0.1);
    transform: translateY(-2px);
}

.parameter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.parameter-name {
    font-size: 18px;
    font-weight: 600;
    color: rgb(25, 25, 24);
}

.parameter-score {
    font-size: 16px;
    font-weight: 600;
    color: #2383E2;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(25, 25, 24, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2383E2 0%, #1B6DC1 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.parameter-comment {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(25, 25, 24, 0.8);
}

/* Suggestions Section */
.suggestions-section h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(35, 131, 226, 0.03);
    border-radius: 8px;
    border-left: 3px solid #2383E2;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(25, 25, 24, 0.9);
}

.suggestion-item svg {
    color: #2383E2;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-24) var(--space-16);
    }

    .app-header {
        padding: var(--space-12) var(--space-16);
        margin: calc(-1 * var(--space-24)) calc(-1 * var(--space-16)) var(--space-20);
    }

    .app-header__title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .upload-section,
    .results-section {
        padding: 24px;
    }
    
    .score-number {
        font-size: 56px;
    }
    
    .score-label {
        font-size: 28px;
    }
    
    .parameters-section h2,
    .suggestions-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 16px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .upload-box {
        padding: 32px 16px;
    }
    
    .score-number {
        font-size: 48px;
    }
    
    .score-label {
        font-size: 24px;
    }
}

