/**
 * JVR Hire Hub Frontend Styles
 * Modern, responsive, Bootstrap-inspired design
 */

/* ========================
   Global Styles
   ======================== */
.jvr-hh-dashboard,
.jvr-hh-form,
.jvr-hh-job-search,
.jvr-hh-va-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jvr-hh-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.jvr-hh-notice.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.jvr-hh-notice.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.jvr-hh-notice.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ========================
   Buttons
   ======================== */
.jvr-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.jvr-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.jvr-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.jvr-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.jvr-btn-secondary:hover {
    background: #e5e7eb;
}

.jvr-btn-success {
    background: #10b981;
    color: white;
}

.jvr-btn-success:hover {
    background: #059669;
}

.jvr-btn-danger {
    background: #ef4444;
    color: white;
}

.jvr-btn-danger:hover {
    background: #dc2626;
}

.jvr-btn-sm {
    padding: 6px 14px;
    font-size: 14px;
}

.jvr-btn-lg {
    padding: 14px 28px;
    font-size: 18px;
}

.jvr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================
   Dashboard Styles
   ======================== */
.jvr-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.jvr-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jvr-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #10b981;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jvr-quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.jvr-dashboard-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.jvr-dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #111827;
}

/* ========================
   Application Cards
   ======================== */
.jvr-applications-list {
    display: grid;
    gap: 20px;
}

.jvr-application-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.jvr-application-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.jvr-application-card.status-accepted {
    background: #d1fae5;
    border-color: #10b981;
}

.jvr-application-card.status-declined {
    background: #f3f4f6;
    border-color: #d1d5db;
    opacity: 0.7;
}

.jvr-application-card.status-completed {
    background: #dbeafe;
    border-color: #3b82f6;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.app-header h4 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.app-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.app-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.app-status.status-accepted {
    background: #10b981;
    color: white;
}

.app-status.status-declined {
    background: #ef4444;
    color: white;
}

.app-status.status-completed {
    background: #3b82f6;
    color: white;
}

.app-body {
    margin-bottom: 15px;
}

.app-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.app-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================
   Job Cards
   ======================== */
.jvr-jobs-list {
    display: grid;
    gap: 20px;
}

.jvr-job-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.jvr-job-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-header h3,
.job-header h4 {
    margin: 0;
    font-size: 18px;
}

.job-header a {
    color: #111827;
    text-decoration: none;
}

.job-header a:hover {
    color: #10b981;
}

.job-type,
.job-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #10b981;
    color: white;
}

.job-status.status-open {
    background: #10b981;
}

.job-status.status-filled {
    background: #6b7280;
}

.job-status.status-closed {
    background: #ef4444;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.job-body {
    margin-bottom: 15px;
}

.job-excerpt {
    margin-bottom: 15px;
    color: #4b5563;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.applied-badge {
    padding: 6px 12px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ========================
   Forms
   ======================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
}

.required {
    color: #ef4444;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.char-counter {
    margin-top: 5px;
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}

/* ========================
   Search & Filters
   ======================== */
.jvr-search-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-row {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-control {
    flex: 1;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* ========================
   VA Gallery
   ======================== */
.jvr-va-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.jvr-va-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.jvr-va-card:hover {
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.va-card-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
}

.va-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.va-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.va-card-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #111827;
}

.va-rating {
    font-size: 14px;
    color: #6b7280;
}

.va-card-body {
    padding: 20px;
}

.va-bio {
    margin-bottom: 15px;
    color: #4b5563;
    line-height: 1.5;
}

.va-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.va-card-footer {
    padding: 20px;
    background: #f9fafb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================
   Tabs
   ======================== */
.jvr-app-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.jvr-tab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jvr-tab:hover {
    background: #e5e7eb;
}

.jvr-tab.active {
    background: white;
    border-color: #10b981;
    color: #10b981;
}

/* ========================
   Pagination
   ======================== */
.jvr-pagination {
    margin-top: 30px;
    text-align: center;
}

.jvr-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jvr-pagination .page-numbers:hover {
    border-color: #10b981;
    color: #10b981;
}

.jvr-pagination .page-numbers.current {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* ========================
   Empty States
   ======================== */
.jvr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.jvr-empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.jvr-result-count {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .jvr-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .jvr-va-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .app-header,
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-actions,
    .job-actions {
        width: 100%;
    }
    
    .jvr-btn {
        width: 100%;
    }
}

/* ========================
   Utility Classes
   ======================== */
.jvr-text-success {
    color: #10b981;
}

.jvr-text-danger {
    color: #ef4444;
}

.jvr-text-muted {
    color: #6b7280;
}

.jvr-mb-20 {
    margin-bottom: 20px;
}

.jvr-mt-20 {
    margin-top: 20px;
}
