/**
 * Authority Content & CV Tools - CV Matcher & Templates Page CSS
 */

/* 1. CV Matcher Application container */
#matcher-app-container {
    max-width: 1000px;
    margin: 40px auto;
}

.matcher-card {
    position: relative;
    border: 2px dashed #3b82f6;
    border-radius: 20px;
    padding: 40px;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
    overflow: hidden;
}

/* Loader Overlay */
#analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.loader-progress-bar-wrapper {
    width: 80%;
    max-width: 400px;
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

#pbar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#loader-status {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

#p-percent {
    margin: 8px 0 0 0;
    font-weight: 800;
    font-size: 1.1rem;
    color: #3b82f6;
}

/* Form Styling */
.matcher-title {
    margin-top: 0;
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.matcher-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 30px;
    text-align: left;
}

.group-label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 1rem;
}

.badge-auto-loaded {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 4px;
}

.file-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease-in-out;
}

.file-drop-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

.file-drop-zone span {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

#jd-box {
    margin-bottom: 30px;
    text-align: left;
}

#jd_text {
    width: 100%;
    height: 180px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #334155;
    background: #ffffff;
    resize: vertical;
    transition: border-color 0.2s;
}

#jd_text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-analyze {
    width: 100%;
    background: #f97316;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
}

.btn-analyze:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* 2. Results Screen */
.score-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    text-align: left;
}

.gauge-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: #2563eb;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.35rem;
    color: #1e293b;
}

#match-verdict {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.score-label {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* Keyword grids */
.keywords-analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .keywords-analysis-grid {
        grid-template-columns: 1fr;
    }
    .score-header {
        flex-direction: column;
        text-align: center;
    }
}

.keyword-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.keyword-box h4 {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#list-strengths, #list-missing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#list-strengths span {
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}

#list-missing span {
    background: #fef2f2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.keyword-box .no-keywords {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

/* Low Score Templates CTA */
#low-score-cta {
    margin-top: 30px;
    background: #fffbeb;
    border-left: 5px solid #d97706;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

#low-score-cta .cta-heading {
    margin: 0;
    color: #92400e;
    font-weight: 700;
    font-size: 1rem;
}

.btn-cta-templates {
    display: inline-block;
    margin-top: 12px;
    background: #d97706;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
    transition: background-color 0.2s;
}

.btn-cta-templates:hover {
    background: #b45309;
}

.btn-retry {
    margin-top: 30px;
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-retry:hover {
    color: #1d4ed8;
}

/* 3. CV Templates Grid Page */
.cv-t-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cv-t-header {
    text-align: center;
    margin-bottom: 50px;
}

.cv-t-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.25px;
}

.cv-t-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.cv-t-desc {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.cv-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.cv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.cv-card.card-popular {
    border: 2px solid #8b5cf6;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8b5cf6;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    letter-spacing: 0.5px;
}

.cv-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.cv-preview h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.preview-pro {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.preview-tech {
    background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
}

.preview-field {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
}

.cv-card-body {
    padding: 30px;
    text-align: left;
}

.cv-card-body h4 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 800;
}

.cv-card-body p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 70px;
}

.cv-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.price-tag {
    font-weight: 800;
    font-size: 1.5rem;
    color: #2563eb;
}

.btn-download {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-download:hover {
    background: #1d4ed8;
}

.btn-download-pop {
    background: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn-download-pop:hover {
    background: #7c3aed;
}

/* Info Box */
.info-box {
    margin-top: 60px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.info-box h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-top: 0;
    font-weight: 800;
}

.info-box p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 800px;
    margin: 15px auto 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .cv-t-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    .info-box {
        padding: 25px;
    }
}

/* Step-by-Step Guide Sections */
.step-guide-box {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.step-guide-box h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 800;
}

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

.step-list li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

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

.step-number {
    position: absolute;
    left: 0;
    top: 2px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.step-title {
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}
