/* Jobs Page Specific Styles */

/* Enhanced animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Filter sidebar animations */
.filter-section {
    animation: slideInLeft 0.6s ease-out;
}

/* Job card animations */
.job-card {
    animation: slideInUp 0.5s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Job card list view specific styles */
.job-card.list-view {
    transform: none;
    animation: scaleIn 0.4s ease-out;
}

.job-card.list-view:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Badge animations */
.job-badge {
    position: relative;
    overflow: hidden;
}

.job-badge::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;
}

.job-card:hover .job-badge::before {
    left: 100%;
}

/* Filter controls styling */
.filter-control {
    transition: all 0.2s ease;
}

.filter-control:focus {
    --tw-ring-offset-width: 2px; /* Tailwind's ring-offset-2 equivalent */
    --tw-ring-color: #3b82f6; /* ring-blue-500 */
    box-shadow: 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color), 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    border-color: #3b82f6;
}

/* Checkbox custom styling */
.category-filter {
    appearance: none;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    width: 1rem;
    height: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.category-filter:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio button custom styling */
input[type="radio"] {
    appearance: none;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="radio"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

/* Search input enhancements */
#global-search {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Loading spinner */
.loading-spinner {
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pagination styling enhancements */
.pagination-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.3s;
}

.pagination-btn:hover::before {
    left: 100%;
}

/* Job icon enhancements */
.job-icon {
    transition: transform 0.3s ease;
}

.job-card:hover .job-icon {
    transform: scale(1.1);
}

/* Enhanced Professional Button Styling for Jobs Page */

/* Category Filter Buttons - Professional Enhancement */
.filter-btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: none;
    backdrop-filter: blur(10px);
    border-width: 1.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active/Selected Category Button */
.filter-btn[data-category=""].active,
.filter-btn.active {
    background: #3b82f6;
    border-color: #1e40af;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35), 0 2px 6px rgba(30, 64, 175, 0.2);
    transform: translateY(-1px);
}

/* Inactive Category Buttons */
.filter-btn:not(.active) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Enhanced Hover Effects for Category Buttons */
.filter-btn:not(.active):hover {
    background: #2d6dd5;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15), 0 3px 8px rgba(59, 130, 246, 0.1);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4), 0 4px 10px rgba(30, 64, 175, 0.25);
}

/* Ripple Effect for Category Buttons */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    pointer-events: none;
}

.filter-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Professional Apply Now Button Enhancement */
.apply-job-btn,
a.apply-job-btn,
.job-card .apply-job-btn {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 75%, #60a5fa 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25), 0 2px 6px rgba(30, 64, 175, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.apply-job-btn:hover,
a.apply-job-btn:hover,
.job-card .apply-job-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 75%, #3b82f6 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35), 0 4px 10px rgba(30, 64, 175, 0.2) !important;
}

.apply-job-btn:active,
a.apply-job-btn:active,
.job-card .apply-job-btn:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3), 0 2px 6px rgba(30, 64, 175, 0.2) !important;
}

/* Shine Effect for Apply Button */
.apply-job-btn::before,
a.apply-job-btn::before,
.job-card .apply-job-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
    z-index: 1 !important;
}

.apply-job-btn:hover::before,
a.apply-job-btn:hover::before,
.job-card .apply-job-btn:hover::before {
    left: 100% !important;
}

.apply-job-btn svg,
a.apply-job-btn svg,
.job-card .apply-job-btn svg {
    margin-right: 0.5rem !important;
    position: relative !important;
    z-index: 2 !important;
    color: white !important;
    stroke: white !important;
}

.apply-job-btn span,
a.apply-job-btn span,
.job-card .apply-job-btn span {
    position: relative !important;
    z-index: 2 !important;
}

/* Ensure this comes after any existing apply-job-btn styles */

/* Print styles */
@media print {
    .filter-section,
    .pagination-btn,
    button {
        display: none !important;
    }
    
    .job-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Enhanced Loading States */
.filter-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.filter-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
