/**
 * Find CVs Page Styles
 * Additional styling for the candidate search functionality
 */

/* Enhance the main container */
.tjp-find-cvs-page {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced search form styling */
.tjp-search-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tjp-search-field input:focus,
.tjp-search-field select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Enhanced candidate cards */
.tjp-candidate-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.tjp-candidate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #4a90e2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tjp-candidate-card:hover::before {
    transform: scaleX(1);
}

.tjp-candidate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Enhanced skill tags */
.tjp-skill-tag {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
}

.tjp-skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

/* Enhanced meta tags */
.tjp-meta-tag {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border: 1px solid #f3e5f5;
    transition: all 0.3s ease;
}

/* Enhanced buttons */
.tjp-search-btn {
    background: linear-gradient(135deg, #2271b1 0%, #4a90e2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
    transition: all 0.3s ease;
}

.tjp-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.tjp-view-profile-btn {
    background: linear-gradient(135deg, #2271b1 0%, #4a90e2 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.3);
    transition: all 0.3s ease;
}

.tjp-view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.4);
}

/* Enhanced upgrade notice */
.tjp-subscription-notice {
    animation: slideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.tjp-subscription-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced loading state */
.tjp-loading {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.tjp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Enhanced modal */
.tjp-modal {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.tjp-modal-content {
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced pagination */
.tjp-pagination button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tjp-pagination button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 113, 177, 0.1), transparent);
    transition: left 0.5s ease;
}

.tjp-pagination button:hover::before {
    left: 100%;
}

.tjp-pagination button.active {
    background: linear-gradient(135deg, #2271b1 0%, #4a90e2 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Enhanced error and no results messages */
.tjp-error,
.tjp-no-results {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin: 20px 0;
}

.tjp-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #f5c6cb;
    color: #721c24;
}

/* Enhanced Responsive Design */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .tjp-find-cvs-page {
        padding: 15px;
    }
    
    .tjp-search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .tjp-search-field {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tjp-find-cvs-page {
        padding: 10px;
    }
    
    .tjp-page-header h2 {
        font-size: 24px;
    }
    
    .tjp-page-header p {
        font-size: 14px;
    }
    
    .tjp-search-form {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .tjp-search-field label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .tjp-search-field input,
    .tjp-search-field select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
    
    .tjp-search-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .tjp-search-btn,
    .tjp-clear-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    .tjp-candidate-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .tjp-candidate-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tjp-candidate-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .tjp-candidate-info h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .tjp-candidate-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tjp-meta-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .tjp-candidate-bio {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .tjp-candidate-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .tjp-view-profile-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .tjp-results-info {
        font-size: 14px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .tjp-pagination {
        justify-content: center;
        gap: 8px;
    }
    
    .tjp-pagination button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tjp-find-cvs-page {
        padding: 8px;
    }
    
    .tjp-page-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .tjp-page-header h2 {
        font-size: 20px;
    }
    
    .tjp-search-form {
        padding: 15px 10px;
    }
    
    .tjp-search-field input,
    .tjp-search-field select {
        padding: 10px;
    }
    
    .tjp-candidate-card {
        padding: 12px;
    }
    
    .tjp-candidate-avatar {
        width: 60px;
        height: 60px;
    }
    
    .tjp-candidate-info h4 {
        font-size: 16px;
    }
    
    .tjp-meta-tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .tjp-candidate-bio {
        font-size: 13px;
    }
    
    .tjp-view-profile-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .tjp-pagination button {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* Additional enhancements for professional look */
.tjp-results-section {
    position: relative;
}

.tjp-results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2271b1, transparent);
}

/* Enhance the candidate grid - display cards vertically */
.tjp-candidates-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure candidate cards take full width in vertical layout */
.tjp-candidate-card {
    width: 100%;
    max-width: none;
}

/* Professional hover effects */
.tjp-candidate-card .tjp-candidate-actions {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tjp-candidate-card:hover .tjp-candidate-actions {
    opacity: 1;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.tjp-search-field input:focus,
.tjp-search-field select:focus,
.tjp-search-btn:focus,
.tjp-view-profile-btn:focus,
.tjp-candidate-card:focus {
    outline: 3px solid rgba(34, 113, 177, 0.3);
    outline-offset: 2px;
}

/* Enhanced subscription notice button */
.tjp-upgrade-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tjp-upgrade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tjp-upgrade-btn:hover::before {
    left: 100%;
} 