/* Volunteer Job Board Styles */

/* Grid/List View Toggle */
.job-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.job-list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Job Cards */
.job-card {
    transition: all 0.3s ease;
}

.job-card-inner {
    background: var(--theme-surface-1, var(--theme-bg-primary));
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
}

.job-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg);
}

.job-card-inner.job-full {
    opacity: 0.7;
}

.job-card-inner.job-past {
    opacity: 0.6;
    background: var(--theme-bg-secondary);
}

/* Job Header */
.job-header {
    padding: 1.25rem;
    background: var(--theme-surface-2, var(--theme-bg-secondary));
    border-bottom: 1px solid var(--theme-border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.job-title-section {
    flex: 1;
}

.job-title {
    color: var(--theme-text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

.job-project,
.job-course {
    display: flex;
    align-items: center;
}

/* Job Body */
.job-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-description {
    color: var(--theme-text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Job Details Grid */
.job-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
}

.detail-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Location Info */
.location-info {
    background: var(--theme-surface-2, var(--theme-bg-tertiary));
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    margin-top: 0.75rem;
}

/* Signup Progress */
.signup-progress {
    margin-top: auto;
}

.signup-progress .progress {
    height: 6px;
    background-color: var(--theme-surface-2, var(--theme-bg-tertiary));
    border-radius: 3px;
}

/* Job Footer */
.job-footer {
    padding: 1rem 1.25rem;
    background: var(--theme-surface-2, var(--theme-bg-secondary));
    border-top: 1px solid var(--theme-border-color);
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

/* List View Specific Styles */
.job-list-view .job-card-inner {
    flex-direction: row;
}

.job-list-view .job-header {
    border-bottom: none;
    border-right: 1px solid var(--theme-border-color);
    min-width: 300px;
    background: transparent;
}

.job-list-view .job-body {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.job-list-view .job-details {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

.job-list-view .job-footer {
    border-top: none;
    border-left: 1px solid var(--theme-border-color);
    background: transparent;
    flex-direction: column;
    min-width: 150px;
}

.job-list-view .signup-progress {
    display: none;
}

.job-list-view .location-info {
    margin-top: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state i {
    color: var(--theme-text-muted);
    opacity: 0.3;
}

.empty-state h3 {
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

/* Filter Form Styling */
.form-label {
    color: var(--theme-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-select,
.form-control {
    background-color: var(--theme-surface-1, var(--theme-bg-primary));
    border: 1px solid var(--theme-border-color);
    color: var(--theme-text-primary);
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    background-color: var(--theme-surface-1, var(--theme-bg-primary));
    border-color: var(--theme-info);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    color: var(--theme-text-primary);
}

.form-check-input {
    background-color: var(--theme-surface-1, var(--theme-bg-primary));
    border-color: var(--theme-border-color);
}

.form-check-input:checked {
    background-color: var(--theme-info);
    border-color: var(--theme-info);
}

.form-check-label {
    color: var(--theme-text-primary);
    font-size: 0.875rem;
}

/* Badge Styling */
.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

/* Modal Styling */
.modal-content {
    background: var(--theme-surface-1, var(--theme-bg-primary));
    border: 1px solid var(--theme-border-color);
}

.modal-header {
    background: var(--theme-surface-2, var(--theme-bg-secondary));
    border-bottom: 1px solid var(--theme-border-color);
    color: var(--theme-text-primary);
}

.modal-body {
    color: var(--theme-text-primary);
}

.modal-footer {
    background: var(--theme-surface-2, var(--theme-bg-secondary));
    border-top: 1px solid var(--theme-border-color);
}

/* Loading State */
.job-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.job-card.loading .job-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-grid-view {
        grid-template-columns: 1fr;
    }
    
    .job-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .job-list-view .job-card-inner {
        flex-direction: column;
    }
    
    .job-list-view .job-header {
        border-right: none;
        border-bottom: 1px solid var(--theme-border-color);
        min-width: auto;
    }
    
    .job-list-view .job-footer {
        border-left: none;
        border-top: 1px solid var(--theme-border-color);
        flex-direction: row;
        min-width: auto;
    }
}

/* Dark Mode Specific Overrides */
@media (prefers-color-scheme: dark) {
    .job-card-inner:hover {
        box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
    }
    
    .job-card-inner.job-past {
        background: var(--theme-surface-2);
        opacity: 0.7;
    }
    
    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
    }
    
    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    }
}