/**
 * SJ Resume Builder - Limited Reach Page Styles
 * 
 * Styles for the Limited Reach Page when users have reached their resume limit
 * 
 * @package SJ_Resume_Builder
 * @since 1.0.2
 */

.sj-resume-limited-reach {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.limited-reach-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.limited-reach-header .header-icon {
    margin-bottom: 20px;
}

.limited-reach-header .header-icon i {
    font-size: 64px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.limited-reach-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.limited-reach-header .header-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

/* Limit Summary */
.limit-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.limit-count {
    margin-bottom: 20px;
}

.limit-count .count-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc3545;
    display: block;
    line-height: 1;
}

.limit-count .count-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

.limit-progress {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* Custom Message */
.custom-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #856404;
}

.custom-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Action Options */
.action-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
}

.option-card.upgrade::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.option-card .option-icon {
    margin-bottom: 20px;
}

.option-card .option-icon i {
    font-size: 48px;
    color: #007bff;
}

.option-card.upgrade .option-icon i {
    color: #ffc107;
}

.option-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.option-card p {
    color: #6c757d;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.option-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-button.primary {
    background: #007bff;
    color: white;
}

.option-button.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.option-button.secondary {
    background: #6c757d;
    color: white;
}

.option-button.secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.option-button.upgrade {
    background: #ffc107;
    color: #212529;
}

.option-button.upgrade:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.option-button.upgrade:disabled {
    background: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.option-button.upgrade:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Resume Overview */
.resume-overview {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.resume-overview h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
    text-align: center;
}

.resume-overview .overview-subtitle {
    text-align: center;
    color: #6c757d;
    margin: 0 0 30px 0;
    font-size: 1.1rem;
}

.no-resumes {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-resumes i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

/* Resumes Grid */
.resumes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.resume-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.resume-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.resume-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    padding-right: 15px;
}

.resume-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.resume-status.public {
    background: #d4edda;
    color: #155724;
}

.resume-status.private {
    background: #f8d7da;
    color: #721c24;
}

.resume-details {
    margin-bottom: 15px;
}

.resume-details p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-details i {
    width: 16px;
    color: #adb5bd;
}

.resume-actions {
    display: flex;
    gap: 10px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-link.edit {
    background: #007bff;
    color: white;
}

.action-link.edit:hover {
    background: #0056b3;
}

.action-link.manage {
    background: #6c757d;
    color: white;
}

.action-link.manage:hover {
    background: #545b62;
}

/* Help Section */
.help-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.help-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.help-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.help-item i {
    color: #007bff;
    font-size: 1.1rem;
}

.help-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.help-item a:hover {
    text-decoration: underline;
}

/* Special States */
.limit-not-reached {
    text-align: center;
}

.limit-not-reached-header {
    margin-bottom: 30px;
}

.limit-not-reached-header i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    display: block;
}

.limit-not-reached-header h2 {
    font-size: 2rem;
    color: #28a745;
    margin: 0 0 15px 0;
}

.limit-status {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: #155724;
}

.limit-status p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.limit-status p:last-child {
    margin-bottom: 0;
}

.limit-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.limit-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.limit-actions .button.primary {
    background: #28a745;
    color: white;
}

.limit-actions .button.primary:hover {
    background: #218838;
}

.limit-actions .button.secondary {
    background: #6c757d;
    color: white;
}

.limit-actions .button.secondary:hover {
    background: #545b62;
}

.login-required,
.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.login-required-header,
.access-denied-header {
    margin-bottom: 30px;
}

.login-required-header i,
.access-denied-header i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.login-required-header i {
    color: #ffc107;
}

.access-denied-header i {
    color: #dc3545;
}

.login-required-header h2,
.access-denied-header h2 {
    font-size: 2rem;
    margin: 0 0 15px 0;
}

.login-required-header h2 {
    color: #856404;
}

.access-denied-header h2 {
    color: #721c24;
}

.login-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-actions .button.primary {
    background: #007bff;
    color: white;
}

.login-actions .button.primary:hover {
    background: #0056b3;
}

.login-actions .button.secondary {
    background: #28a745;
    color: white;
}

.login-actions .button.secondary:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sj-resume-limited-reach {
        padding: 15px;
    }
    
    .limited-reach-header {
        padding: 30px 15px;
    }
    
    .limited-reach-header h1 {
        font-size: 2rem;
    }
    
    .limited-reach-header .header-subtitle {
        font-size: 1rem;
    }
    
    .limit-count .count-number {
        font-size: 2.5rem;
    }
    
    .action-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .option-card {
        padding: 25px 20px;
    }
    
    .resumes-grid {
        grid-template-columns: 1fr;
    }
    
    .resume-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .resume-header h4 {
        padding-right: 0;
    }
    
    .help-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .limit-actions,
    .login-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .limit-actions .button,
    .login-actions .button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .limited-reach-header h1 {
        font-size: 1.8rem;
    }
    
    .option-card {
        padding: 20px 15px;
    }
    
    .resume-item {
        padding: 15px;
    }
    
    .resume-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-link {
        justify-content: center;
    }
}
