/**
 * Application Readiness Styles
 * Phase 2: Profile completeness and preparation UI
 */

/* ============================================
   READINESS CONTAINER
   ============================================ */
.readiness-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   SCORE CIRCLE - LARGE
   ============================================ */
.readiness-score-container {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle-large {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.score-circle-large svg {
    transform: rotate(-90deg);
}

.score-bg-large {
    fill: none;
    stroke: #E0E0E0;
    stroke-width: 12;
}

.score-fill-large {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease;
}

.score-text-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number-large {
    font-size: 48px;
    font-weight: 700;
    color: #1A3028;
    line-height: 1;
}

.score-label-large {
    font-size: 14px;
    color: #6B7280;
    margin-top: 8px;
}

.score-status {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================
   CATEGORY CHECKLIST
   ============================================ */
.readiness-categories {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.category-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background: white;
    border-color: #C9A961;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-item.complete {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.2);
}

.category-item.partial {
    background: rgba(255, 167, 38, 0.05);
    border-color: rgba(255, 167, 38, 0.2);
}

.category-item.incomplete {
    background: rgba(239, 83, 80, 0.05);
    border-color: rgba(239, 83, 80, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.category-item.complete .category-icon {
    color: #4CAF50;
}

.category-item.partial .category-icon {
    color: #FFA726;
}

.category-item.incomplete .category-icon {
    color: #EF5350;
}

.category-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1A3028;
}

.category-score {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    background: white;
    border-radius: 20px;
}

.category-missing {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #6B7280;
}

.missing-field {
    display: inline-block;
    padding: 2px 8px;
    background: white;
    border-radius: 4px;
    margin: 2px;
    font-size: 13px;
}

/* ============================================
   RECOMMENDATIONS
   ============================================ */
.readiness-recommendations {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.readiness-recommendations h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1A3028;
    margin: 0 0 20px 0;
}

.recommendations-empty {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.1));
    border-radius: 12px;
    color: #4CAF50;
    font-size: 16px;
    font-weight: 500;
}

.recommendation-item {
    padding: 16px;
    margin-bottom: 16px;
    background: #FAFAFA;
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 16px;
}

.recommendation-item.priority-high {
    border-left-color: #EF5350;
    background: rgba(239, 83, 80, 0.05);
}

.recommendation-item.priority-medium {
    border-left-color: #FFA726;
    background: rgba(255, 167, 38, 0.05);
}

.recommendation-item.priority-low {
    border-left-color: #66BB6A;
    background: rgba(102, 187, 106, 0.05);
}

.rec-priority {
    padding: 4px 12px;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-high .rec-priority {
    color: #EF5350;
}

.priority-medium .rec-priority {
    color: #FFA726;
}

.priority-low .rec-priority {
    color: #66BB6A;
}

.rec-message {
    flex: 1;
    font-size: 15px;
    color: #1A3028;
    line-height: 1.5;
}

.btn-quick-edit {
    padding: 8px 16px;
    background: white;
    border: 1px solid #C9A961;
    color: #C9A961;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-edit:hover {
    background: #C9A961;
    color: white;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.readiness-actions {
    margin-top: 30px;
}

.warning-message {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #D32F2F;
}

.warning-message strong {
    display: block;
    margin-bottom: 4px;
}

.warning-message p {
    margin: 0;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-edit-full-profile {
    padding: 12px 24px;
    background: white;
    border: 2px solid #C9A961;
    color: #C9A961;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-full-profile:hover {
    background: #C9A961;
    color: white;
}

.btn-proceed-application {
    padding: 12px 32px;
    background: linear-gradient(135deg, #C9A961, #B8935A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-proceed-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-proceed-anyway {
    padding: 12px 32px;
    background: #E0E0E0;
    color: #9E9E9E;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   QUICK EDIT MODAL
   ============================================ */
.quick-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-edit-modal.active {
    opacity: 1;
}

.quick-edit-panel {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.quick-edit-modal.active .quick-edit-panel {
    transform: scale(1);
}

.quick-edit-panel h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1A3028;
    margin: 0 0 24px 0;
}

.quick-edit-fields {
    margin-bottom: 24px;
}

.quick-field {
    margin-bottom: 20px;
}

.quick-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 8px;
}

.quick-field input,
.quick-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.quick-field input:focus,
.quick-field textarea:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.quick-field textarea {
    min-height: 80px;
    resize: vertical;
}

.quick-field input[type="file"] {
    padding: 8px;
}

.current-file {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6B7280;
}

.quick-edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background: white;
    border: 1px solid #E0E0E0;
    color: #6B7280;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #F5F5F5;
}

.btn-save-quick {
    padding: 10px 24px;
    background: #C9A961;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-quick:hover {
    background: #B8935A;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.readiness-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    z-index: 10002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.readiness-notification.show {
    transform: translateX(0);
}

.readiness-notification.success {
    border-left: 4px solid #4CAF50;
    color: #4CAF50;
}

.readiness-notification.error {
    border-left: 4px solid #EF5350;
    color: #EF5350;
}

.readiness-notification.info {
    border-left: 4px solid #2196F3;
    color: #2196F3;
}

/* ============================================
   LOGIN PROMPT
   ============================================ */
.login-prompt-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.login-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: grayscale(0.2);
}

.login-prompt-card h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1A3028;
    margin: 0 0 16px 0;
    font-family: 'Playfair Display', serif;
}

.login-prompt-card > p {
    font-size: 16px;
    color: #6B7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.login-benefits {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.05), rgba(201, 169, 97, 0.1));
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.login-benefits h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1A3028;
    margin: 0 0 16px 0;
}

.login-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-benefits li {
    padding: 8px 0;
    color: #4B5563;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-benefits li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
}

.login-actions {
    margin-top: 32px;
}

.btn-login-primary {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #C9A961, #B8935A);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 169, 97, 0.4);
    color: white;
    text-decoration: none;
}

.signup-prompt {
    margin-top: 24px;
    font-size: 15px;
    color: #6B7280;
}

.signup-link {
    color: #C9A961;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #B8935A;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .readiness-container {
        padding: 16px;
    }
    
    .score-circle-large {
        width: 160px;
        height: 160px;
    }
    
    .score-number-large {
        font-size: 36px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .recommendation-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-quick-edit {
        width: 100%;
        margin-top: 12px;
    }
    
    .quick-edit-panel {
        padding: 24px;
        width: 95%;
    }
}