/* Public Pages - Custom Styles */

/* Hero Section */
.public-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.public-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .public-hero {
        padding: 2rem 0 1.5rem;
    }

    .public-hero h1 {
        font-size: 1.75rem;
    }
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: -2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Filter Sidebar */
.filter-card {
    position: sticky;
    top: 80px;
}

.filter-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

/* Opportunity Cards */
.opportunity-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.opportunity-card .card-body {
    padding: 1.25rem;
}

.opportunity-card .employer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 4px;
}

.opportunity-card .employer-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #6c757d;
}

.opportunity-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.opportunity-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.opportunity-card .card-title a:hover {
    color: #0d6efd;
}

.opportunity-card .employer-name {
    font-size: 0.875rem;
    color: #6c757d;
}

.opportunity-card .description-preview {
    font-size: 0.9rem;
    color: #495057;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opportunity-card .meta-info {
    font-size: 0.8rem;
    color: #6c757d;
}

.opportunity-card .meta-info i {
    width: 16px;
}

/* Audience Badge */
.badge-student {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.badge-school {
    background-color: #e8f5e9;
    color: #198754;
}

/* Detail Page */
.opportunity-detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

.employer-logo-lg {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.employer-logo-lg-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Safeguarding Checklist */
.safeguarding-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.safeguarding-item i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.75rem;
}

.safeguarding-item.confirmed i {
    background-color: #d1e7dd;
    color: #198754;
}

.safeguarding-item.pending i {
    background-color: #f8f9fa;
    color: #adb5bd;
}

/* Eligibility Banner */
.eligibility-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
}

.eligibility-banner h6 {
    color: #856404;
}

/* Apply Card */
.apply-card {
    position: sticky;
    top: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.apply-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
}

/* Application Form */
.application-form .form-label {
    font-weight: 500;
}

.application-form .required-indicator {
    color: #dc3545;
}

/* Success Page */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-checkmark i {
    font-size: 2.5rem;
    color: #198754;
}

/* Empty State */
.empty-results {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-results i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .filter-card {
        position: static;
        margin-bottom: 1rem;
    }

    .apply-card {
        position: static;
        margin-top: 1.5rem;
    }

    .search-section {
        margin-top: -1rem;
        padding: 1rem;
    }

    .opportunity-card .employer-logo,
    .opportunity-card .employer-logo-placeholder {
        width: 40px;
        height: 40px;
    }
}

/* Results Count */
.results-count {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Sort Dropdown */
.sort-dropdown .dropdown-toggle {
    font-size: 0.9rem;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Date Pills */
.date-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
}

.date-pill.available {
    border-color: #198754;
    background: #d1e7dd;
    color: #0f5132;
}

.date-pill.full {
    border-color: #dc3545;
    background: #f8d7da;
    color: #842029;
}
