/**
 * Frontend styles for Job Subscription Hoy
 * Matching The House of Yaya design
 */

.jsh-candidates-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f5f5f5;
}

.jsh-header {
    margin-bottom: 40px;
}

.jsh-title {
    text-align: center;
    font-size: 2.8em;
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 40px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.jsh-search-filters-wrapper {
    margin-bottom: 40px;
}

.jsh-search-filters {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.jsh-search-form {
    max-width: 100%;
}

.jsh-search-filters-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.jsh-search-bar {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.jsh-search-icon {
    position: absolute;
    left: 7px;
    color: #999;
    pointer-events: none;
    z-index: 1;
    top: 24px;
}

.jsh-filter-buttons.scheme_default .select_container:focus:before, .scheme_default .select_container:hover:before {
    color: #000000;
    background-color: #fff !important;
}

.jsh-search-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.jsh-search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.3s;
}

.jsh-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.jsh-filter-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.jsh-filter-buttons select {
    border: 1px solid #ccc !important;
}
.jsh-filter-select {
    padding: 14px 35px 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.3s;
    min-width: 140px;
}

.jsh-filter-select:hover {
    border-color: #0073aa;
}

.jsh-filter-select:focus {
    outline: none;
    border-color: #0073aa;
}

.jsh-subscription-banner {
    background: #e8f5e9;
    padding: 35px 40px;
    border-radius: 0;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.jsh-banner-content {
    flex: 1;
    min-width: 300px;
}

.jsh-banner-content h2 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 1.8em;
    font-weight: 600;
}

.jsh-banner-content p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.jsh-banner-action {
    flex-shrink: 0;
}

.jsh-btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    line-height: 1.4;
}

.jsh-btn-primary {
    background: #0073aa;
    color: #fff !important;
}

.jsh-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.jsh-btn-secondary {
    background: #6c757d;
    color: #fff !important;
}

.jsh-btn-secondary:hover {
    background: #5a6268;
}

.jsh-candidates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.jsh-candidate-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.jsh-candidate-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.jsh-candidate-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: #e0e0e0;
    overflow: hidden;
}

.jsh-candidate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jsh-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #d5d5d5;
    color: #666;
    position: relative;
}

.jsh-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
}

.jsh-image-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    color: #777;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.jsh-image-placeholder p {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 13px;
    text-align: center;
    padding: 0 20px;
    color: white;
    font-weight: 600;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.3px;
}

.jsh-experience-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffc107;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jsh-candidate-info {
    padding: 20px;
}

.jsh-candidate-id {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.jsh-candidate-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    color: #ffc107;
}

.jsh-candidate-rating .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.jsh-candidate-rating span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.jsh-candidate-role {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

.jsh-candidate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.jsh-skill-tag {
    background: #0073aa;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.jsh-candidate-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    min-height: 60px;
}

.jsh-subscribe-text {
    color: #28a745;
    font-weight: 600;
}

.jsh-candidate-availability {
    font-size: 14px;
    color: #28a745;
    margin-bottom: 18px;
    font-weight: 600;
}

.jsh-candidate-actions {
    margin-top: 15px;
}

.jsh-candidate-actions .jsh-btn {
    padding: 12px 20px;
}

.jsh-load-more-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.jsh-load-more {
    background: #fff !important;
    color: #000 !important;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
}

select.jsh-filter-select {
    border: 1px solid #ccc !important;
}
input.jsh-search-input
{
    border: 1px solid #ccc !important;
}
.jsh-filter-buttons .select_container {
    border-color: #ccc !important;
    border: 1px solid #ccc !important;
    border-radius: 8px;
}
.jsh-load-more:hover {
    background: #4a148c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(106,27,154,0.3);
}

.jsh-no-results {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* Subscription Plans */
.jsh-subscription-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jsh-subscription-plans h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    font-weight: 600;
    color: #1a1a1a;
}

.jsh-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.jsh-plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.jsh-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.jsh-plan-card h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.jsh-plan-price {
    margin-bottom: 15px;
}

.jsh-currency {
    font-size: 18px;
    vertical-align: top;
    color: #666;
}

.jsh-amount {
    font-size: 42px;
    font-weight: 700;
    color: #0073aa;
}

.jsh-plan-duration {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.jsh-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.jsh-plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.jsh-plan-features li:last-child {
    border-bottom: none;
}

.jsh-plan-features li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.jsh-active-subscription {
    text-align: center;
    padding: 40px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 18px;
    font-weight: 500;
}

/* Contact Modal */
.jsh-contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.jsh-contact-modal-content {
    background: white;
    margin: 8% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.jsh-contact-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s;
}

.jsh-contact-modal-close:hover {
    color: #333;
}

.jsh-contact-modal-content h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

.jsh-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    min-height: 140px;
    margin-bottom: 20px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.jsh-contact-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 1400px) {
    .jsh-candidates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .jsh-candidates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .jsh-candidates-container {
        padding: 20px 15px;
    }
    
    .jsh-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .jsh-search-filters {
        padding: 20px;
    }
    
    .jsh-search-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jsh-search-bar {
        min-width: 100%;
        width: 100%;
    }
    
    .jsh-candidates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .jsh-subscription-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .jsh-banner-content {
        text-align: center;
    }
    
    .jsh-filter-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .jsh-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .jsh-candidate-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .jsh-title {
        font-size: 1.6em;
    }
    
    .jsh-search-bar {
        max-width: 100%;
    }
    
    .jsh-candidate-image {
        height: 200px;
    }
}

/* Login/Register Forms */
.jsh-auth-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.jsh-auth-form h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    font-size: 1.8em;
}

.jsh-register-form p.description {
    font-size: 13px;
    font-weight: 600;
}

.jsh-auth-form-inner .jsh-form-row {
    margin-bottom: 20px;
}

.jsh-auth-form-inner label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.jsh-auth-form-inner input[type="text"],
.jsh-auth-form-inner input[type="email"],
.jsh-auth-form-inner input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc !important;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.jsh-auth-form-inner input[type="text"]:focus,
.jsh-auth-form-inner input[type="email"]:focus,
.jsh-auth-form-inner input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
}

.jsh-form-row-checkbox {
    display: flex;
    align-items: center;
}

.jsh-form-row-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
}

.jsh-form-row-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.jsh-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.jsh-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.jsh-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.jsh-form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.jsh-form-footer p {
    margin: 10px 0;
    color: #666;
}

.jsh-form-footer a {
    color: #57BB9A !important;
    text-decoration: none;
}

.jsh-form-footer a:hover {
    text-decoration: underline;
}

.jsh-btn.is-loading {
    position: relative;
    padding-right: 44px;
    opacity: 0.9;
}

.jsh-btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    animation: jshSpin 0.7s linear infinite;
    pointer-events: none;
}

@keyframes jshSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.jsh-auth-menu {
    display: block;
}

.jsh-auth-menu-list {
    list-style: none;
    margin: -20px 0 0 0;
    padding: 0;
    display: flex;
    gap: 14px;
}
.jsh-auth-form button.jsh-btn.jsh-btn-primary {
    background: #38D67F !important;
}
.jsh-auth-menu-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.jsh-auth-menu-link-primary {
    color: #57BB9A !important;
}
a.jsh-auth-menu-link {
    font-size: 15px;
    color: #078f6f !important;
}
.jsh-logged-in-message {
    text-align: center;
    padding: 20px;
}

.jsh-logged-in-message h2 {
    margin-bottom: 15px;
}

.jsh-logged-in-message p {
    margin-bottom: 15px;
    color: #666;
}

/* Login Banner */
.jsh-login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.jsh-login-banner .jsh-banner-content {
    flex: 1;
    min-width: 300px;
}

.jsh-login-banner .jsh-banner-content h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #ffffff;
}

.jsh-login-banner .jsh-banner-content p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.jsh-login-banner .jsh-banner-action {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.jsh-login-banner .jsh-btn {
    min-width: 120px;
}

.jsh-login-required {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 30px;
}

.jsh-login-required p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #666;
}

.jsh-auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Auth Modal */
.jsh-auth-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.jsh-auth-modal-content {
    background-color: #ffffff;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.jsh-auth-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s;
}

.jsh-auth-modal-close:hover {
    color: #333;
}

.jsh-auth-modal-body {
    padding: 40px;
}

.jsh-auth-modal-body h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
    font-size: 1.8em;
}

@media (max-width: 768px) {
    .jsh-login-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .jsh-login-banner .jsh-banner-content {
        text-align: center;
    }
    
    .jsh-login-banner .jsh-banner-action {
        width: 100%;
        justify-content: center;
    }
    
    .jsh-auth-modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .jsh-auth-modal-body {
        padding: 30px 20px;
    }
}

/* Payment Messages */
.jsh-payment-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideInRight 0.3s ease-out;
}

.jsh-payment-success {
    background: #00a32a;
    color: #fff;
    border-left: 4px solid #0073aa;
}

.jsh-payment-error {
    background: #d63638;
    color: #fff;
    border-left: 4px solid #b32d2e;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}