/* Claymorphism for Talent Nexus ATS Tool */

:root {
    --clay-bg: #f5f3ef; /* Light beige as per screenshot */
    --clay-blue: #ebf2ff;
    --clay-amber: #fff9eb;
    --clay-shadow-light: #ffffff;
    --clay-shadow-dark: rgba(175, 160, 145, 0.2);
    --clay-accent-blue: #4A72C4;
    --clay-accent-amber: #D9A04B;
    --clay-radius: 40px;
}

.ats-body {
    background-color: var(--clay-bg);
    min-height: 100vh;
    padding-top: 100px;
}

.clay-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.clay-header {
    text-align: center;
    margin-bottom: 60px;
}

.clay-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.clay-header p {
    font-size: 1.2rem;
    color: #888;
}

/* Clay Card Style */
.clay-card {
    background: var(--clay-bg);
    border-radius: var(--clay-radius);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--clay-bg);
    box-shadow: 
        15px 15px 30px var(--clay-shadow-dark), 
        -15px -15px 30px var(--clay-shadow-light),
        inset 4px 4px 10px rgba(255,255,255,0.5),
        inset -4px -4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clay-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        20px 20px 40px var(--clay-shadow-dark), 
        -20px -20px 40px var(--clay-shadow-light);
}

.clay-card.active {
    border-color: var(--clay-accent-blue);
    box-shadow: 
        inset 10px 10px 20px var(--clay-shadow-dark), 
        inset -10px -10px 20px var(--clay-shadow-light);
}

.clay-card.card-blue {
    background-color: var(--clay-blue);
}

.clay-card.card-amber {
    background-color: var(--clay-amber);
}

/* Clay Icons */
.clay-icon-box {
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 
        5px 5px 10px rgba(0,0,0,0.05),
        inset 2px 2px 5px rgba(255,255,255,0.8);
}

.clay-icon-box img {
    width: 32px;
    height: 32px;
}

/* Inputs & Textareas */
.clay-input-group {
    margin-bottom: 30px;
}

.clay-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #8c7e6e;
}

.clay-textarea {
    width: 100%;
    min-height: 200px;
    background: #fdfcfb;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    resize: vertical;
    box-shadow: 
        inset 6px 6px 12px rgba(0,0,0,0.05),
        inset -6px -6px 12px rgba(255,255,255,1);
    transition: all 0.3s ease;
}

.clay-textarea:focus {
    outline: none;
    background: white;
    box-shadow: 
        inset 3px 3px 6px rgba(0,0,0,0.05),
        inset -3px -3px 6px rgba(255,255,255,1);
}

/* Clay Button */
.clay-button {
    background: #2d2d2d;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.1),
        inset 2px 2px 5px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.clay-button:hover {
    transform: scale(0.98);
    background: #1a1a1a;
}

.clay-button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* File Upload Area */
.clay-upload-area {
    border: 3px dashed #d1c7bc;
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fdfcfb;
    box-shadow: 
        inset 6px 6px 12px rgba(0,0,0,0.02),
        inset -6px -6px 12px rgba(255,255,255,1);
    position: relative;
    overflow: hidden;
}

.clay-upload-area:hover {
    border-color: var(--clay-accent-blue);
    background: white;
}

.clay-upload-area i {
    font-size: 2.5rem;
    color: var(--clay-accent-blue);
    margin-bottom: 15px;
    display: block;
}

.file-name-display {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--clay-accent-blue);
    font-weight: 600;
    display: none;
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Results Section */
.results-container {
    margin-top: 40px;
    display: none;
}

.score-node {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--clay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clay-accent-blue);
    box-shadow: 
        10px 10px 20px var(--clay-shadow-dark), 
        -10px -10px 20px var(--clay-shadow-light),
        inset 4px 4px 10px rgba(255,255,255,0.5),
        inset -4px -4px 10px rgba(0,0,0,0.05);
}

.progress-pill {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.pill-resume { background: #e0e7ff; color: #4338ca; }
.pill-jd { background: #d1fae5; color: #065f46; }

/* Grid Layouts */
.clay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media(max-width: 768px) {
    .clay-grid {
        grid-template-columns: 1fr;
    }
}

/* Markdown formatting in results */
.analysis-content {
    line-height: 1.7;
    color: #444;
}

.analysis-content h1, .analysis-content h2, .analysis-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.analysis-content ul, .analysis-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.analysis-content li {
    margin-bottom: 0.5rem;
}

.analysis-content p {
    margin-bottom: 1.2rem;
}

.analysis-content strong {
    color: var(--clay-accent-blue);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

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

/* Footer & Usage Badge */
.clay-footer {
    text-align: center;
    margin: 60px 0 40px;
    color: #999;
    font-size: 0.95rem;
}

.usage-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    padding: 4px 12px;
    background: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clay-accent-blue);
    box-shadow: 
        4px 4px 8px var(--clay-shadow-dark), 
        -4px -4px 8px var(--clay-shadow-light);
    border: 1px solid rgba(0,0,0,0.05);
}

#usage-count {
    margin: 0 4px;
    color: #333;
}
