/* CV Checker Specific Styles */

/* CV Checker Section on Landing Page */
.cv-checker-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

/* Centered CV Checker for App Page */
.cv-checker-section-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 2rem 0;
}

.cv-checker-section-centered .container {
    max-width: 900px;
}

.upload-section-inline {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.cv-checker-main {
    min-height: 100vh;
    padding: 2rem 0 4rem;
    background: transparent;
    /* Use body background */
}

/* Restored Upload Section Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Upload Section */
.upload-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.upload-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* File Upload */
.file-upload-wrapper {
    margin-top: 1rem;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background: var(--primary-color);
    color: var(--white);
    border-style: solid;
}

.upload-text {
    font-weight: 600;
}

.upload-icon-btn {
    font-size: 1.5rem;
}

.file-name {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    min-height: 1.5rem;
}

/* URL Input */
.url-input-wrapper {
    margin-top: 1rem;
}

.url-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #334155;
    /* Slate-700 */
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Action Section */
.action-section {
    text-align: center;
    margin-top: 2rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-large:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-large:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.5rem;
}

/* Results Dashboard */
.results-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    /* 2 rows */
    gap: 1.5rem;
}

.bento-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.bento-card:hover {
    transform: translateY(-2px);
}

/* Overall Score Card (Span 2 cols, 2 rows? Or simpler) */
/* Let's make Overall Score large: Top Left */
/* Overall Score Card (Main) */
/* Overall Score Card (Main) */
.score-main-card {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.score-main-card h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Circular Loader */
.score-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    /* Pure white for contrast */
    line-height: 1;
}

.score-percent {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2px;
}

/* Detail Cards */
.score-detail-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-header h3 {
    font-size: 0.95rem;
    color: #94a3b8;
    /* Slate-400 */
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    /* Pure white for contrast */
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Strengths & Improvements (Bottom Row) */
.strengths-card {
    grid-column: span 2;
    border-left: 5px solid #10b981;
}

.improvements-card {
    grid-column: span 2;
    border-left: 5px solid #f59e0b;
}

.analysis-list {
    list-style: none;
    margin-top: 1rem;
}

.analysis-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.strengths-card .analysis-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.improvements-card .analysis-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .score-main-card {
        grid-column: span 2;
        /* Full width on mobile/tablet */
    }

    .score-detail-card {
        grid-column: span 1;
        /* 2 per row */
    }

    /* Last one might hang if 3 items, maybe make 3rd span 2? No, 1 is fine */

    .strengths-card,
    .improvements-card {
        grid-column: span 2;
    }
}

/* Roadmap Styles */
.roadmap-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    padding-top: 1rem;
}

.roadmap-step {
    flex: 1;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Connecting Line */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.3;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    top: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    /* Match card bg */
    z-index: 1;
}

.step-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-action {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.roadmap-loading {
    text-align: center;
    color: var(--text-light);
    width: 100%;
    font-style: italic;
}

/* Responsive Roadmap */
@media (max-width: 768px) {
    .roadmap-container {
        flex-direction: column;
        gap: 2rem;
        padding-top: 0;
        padding-left: 1.5rem;
    }

    /* Vertical Line for Mobile */
    .roadmap-container::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 4px;
        height: auto;
    }

    .roadmap-step::before {
        top: 50%;
        left: -1.7rem;
        transform: translateY(-50%);
    }
}

/* Roadmap Styles */
/* ... existing roadmap styles ... */

/* Interview Banner */
.interview-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2.5rem !important;
    /* Override standard card padding */
    position: relative;
    overflow: hidden;
}

.interview-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.banner-icon {
    font-size: 2rem;
}

.interview-banner h3 {
    font-size: 1.8rem;
    color: var(--real-white);
    /* Fix: Use pure white for contrast */
    margin: 0;
}

.interview-banner p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.6;
}

.btn-banner {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.2);
    border-radius: 50px;
    /* Pillow shape */
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-header {
        justify-content: center;
    }

    .interview-banner p {
        margin: 0 auto 1.5rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

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

/* Active nav link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .upload-section {
        padding: 2rem 1.5rem;
    }

    .score-card-main {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .score-circle-wrapper {
        width: 150px;
        height: 150px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .score-info h3 {
        font-size: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}