/* Resume Enhancer 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;
}

/* Section */
.section {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Upload Container */
.upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    border: 1px dashed rgba(55, 53, 47, 0.16);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.upload-icon {
    width: 48px;
    height: 48px;
    color: rgba(55, 53, 47, 0.4);
    margin-bottom: 16px;
}

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

.upload-link {
    color: #2383E2;
    cursor: pointer;
    text-decoration: underline;
}

.upload-link:hover {
    color: #1B6DC1;
}

.upload-hint {
    font-size: 16px;
    color: rgba(25, 25, 24, 0.6);
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(35, 131, 226, 0.05);
    border-radius: 8px;
    border: 0.5px solid rgba(35, 131, 226, 0.2);
}

.file-name {
    font-size: 16px;
    font-weight: 500;
    color: rgb(25, 25, 24);
}

/* Buttons */
.btn-primary {
    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: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

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

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

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

.btn-secondary {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    color: rgb(25, 25, 24);
    border: 0.5px solid rgba(55, 53, 47, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(55, 53, 47, 0.08);
}

/* Processing Status */
.processing-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    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);
    }
}

.status-text {
    font-size: 16px;
    color: rgba(25, 25, 24, 0.7);
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid rgba(55, 53, 47, 0.1);
}

.results-header h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgb(25, 25, 24);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

/* Enhanced Content */
.enhanced-content {
    margin-bottom: 32px;
}

.resume-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
    color: rgb(25, 25, 24);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2383E2;
}

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

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-card {
    padding: 20px;
    background: rgba(55, 53, 47, 0.02);
    border-radius: 8px;
    border-left: 3px solid #2383E2;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.role-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

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

.company {
    font-size: 16px;
    font-weight: 500;
    color: rgba(25, 25, 24, 0.7);
}

.period {
    font-size: 16px;
    font-weight: 400;
    color: rgba(25, 25, 24, 0.6);
    white-space: nowrap;
}

.bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullets-list li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.2px;
    color: rgba(25, 25, 24, 0.9);
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
}

.bullets-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #2383E2;
    font-weight: bold;
}

.bullets-list li:last-child {
    margin-bottom: 0;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 16px;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(35, 131, 226, 0.1);
    color: #155A9E;
    border-radius: 6px;
    border: 0.5px solid rgba(35, 131, 226, 0.2);
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.education-item {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(25, 25, 24, 0.9);
    padding-left: 24px;
    position: relative;
}

.education-item:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #2383E2;
    font-weight: bold;
}

/* Suggestions */
.suggestions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.suggestion-box {
    padding: 20px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 8px;
    border-left: 3px solid #FFC107;
}

.suggestion-title {
    font-size: 18px;
    font-weight: 600;
    color: rgb(25, 25, 24);
    margin-bottom: 12px;
}

.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-list li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(25, 25, 24, 0.9);
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
}

.suggestion-list li:before {
    content: "→";
    position: absolute;
    left: 8px;
    color: #FFC107;
    font-weight: bold;
}

.suggestion-list li:last-child {
    margin-bottom: 0;
}

/* Upload Another Button */
.upload-another {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@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;
    }

    .section {
        padding: 24px 16px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .action-buttons {
        width: 100%;
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .period {
        white-space: normal;
    }

    .suggestions-container {
        grid-template-columns: 1fr;
    }
}

