/* Desktop and Base Job Card Styles */

/* Main jobs grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Job card base styles */
.job-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.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);
    border-color: #3b82f6;
}

/* Job card link */
.job-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Job header */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.job-salary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Company name */
.job-company {
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Job details */
.job-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.location-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #9ca3af;
}

.job-experience {
    color: #6b7280;
    font-size: 14px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 16px;
    align-self: flex-start;
}

/* Action section */
.job-action {
    margin-top: auto;
    text-align: center;
}

.view-job-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    width: 100%;
}

.view-job-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

/* Urgent tag */
.urgent-tag {
    position: absolute;
    top: -8px;
    left: 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    z-index: 10;
    border: 2px solid white;
    animation: pulse-urgent 2s infinite;
    transition: all 0.3s ease;
}

.urgent-tag:hover {
    transform: scale(1.05);
}

@keyframes pulse-urgent {
    0% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5); }
    100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }
}

/* Adjust job card padding when urgent tag is present */
.job-card-urgent {
    padding-top: 32px;
}

/* Enhanced hover effect for urgent job cards */
.job-card-urgent:hover {
    border-color: #dc2626;
    box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.15), 0 10px 10px -5px rgba(220, 38, 38, 0.08);
}

/* Search and filters */
.search-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.search-filters input,
.search-filters select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s ease;
}

.search-filters input:focus,
.search-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Results and pagination */
.results-summary {
    text-align: center;
    padding: 16px;
    color: #6b7280;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination button:hover {
    background: #2563eb;
}

.pagination button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Loading states */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No jobs message */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 16px;
    margin: 40px 0;
}

.no-jobs-message h3 {
    color: #374151;
    margin-bottom: 8px;
}

/* Responsive adjustments for tablets */
@media screen and (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile styles are handled in mobile-optimized.css */
}
