/* ============================================
   ADVERTISEMENTS LIST - STYLESHEET
   Job-Scouts.com | Advertisements listing page
   ============================================ */

/* ========== HERO SECTION ========== */
.ads-hero {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.03) 100%);
    padding: var(--space-12, 3rem) 0 var(--space-8, 2rem);
    margin-bottom: var(--space-8, 2rem);
    border-radius: var(--radius-2xl, 1.5rem);
}

.ads-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-900, #111827);
    margin-bottom: var(--space-3, 0.75rem);
}

.ads-hero p {
    font-size: 1.125rem;
    color: var(--secondary-600, #4b5563);
}

/* ========== FILTER CARD ========== */
.modern-filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.modern-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.modern-filter-section > * {
    position: relative;
    z-index: 2;
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.filter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.filter-icon i {
    font-size: 1.8rem;
    color: white;
}

.filter-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.3rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

/* Filter Group */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-label i {
    font-size: 1rem;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.modern-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-select:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modern-select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.modern-select:focus ~ .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Filter Action Buttons */
.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-filter {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-apply {
    background: white;
    color: #667eea;
}

.btn-apply:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-clear {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-filter i {
    font-size: 1.1rem;
}

/* Quick Filter Pills */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.quick-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
}

.category-pill {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.category-pill.active {
    background: white;
    color: #667eea;
    border-color: white;
    font-weight: 600;
}

.category-pill i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .btn-filter {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-filter-section {
        padding: 1.5rem;
    }
    
    .filter-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .filter-text h3 {
        font-size: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    .quick-filter-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .category-pill {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .modern-select {
        font-size: 0.95rem;
        padding: 0.9rem 2.5rem 0.9rem 1rem;
    }
}

/* Animation for smooth appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-filter-section {
    animation: slideDown 0.5s ease-out;
}

/* ========== ADVERTISEMENT CARD ========== */
.ad-card {
    background: white;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-card.featured {
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.12);
}

.ad-card.featured:hover {
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.25);
}

.ad-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.ad-card.featured .ad-image-wrapper {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image {
    transform: scale(1.1);
}

.ad-featured-badge {
    position: absolute;
    top: var(--space-4, 1rem);
    right: var(--space-4, 1rem);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    border-radius: var(--radius-lg, 0.5rem);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-1, 0.25rem);
}

.ad-card-body {
    padding: var(--space-6, 1.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-header {
    margin-bottom: var(--space-4, 1rem);
}

.ad-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-900, #111827);
    margin-bottom: var(--space-2, 0.5rem);
    line-height: 1.3;
}

.ad-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-600, #4338ca);
    margin-bottom: var(--space-3, 0.75rem);
}

.ad-description {
    color: var(--secondary-600, #4b5563);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-4, 1rem);
    flex: 1;
}

.ad-category {
    margin-bottom: var(--space-4, 1rem);
}

.category-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-600, #4338ca);
    padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-lg, 0.5rem);
    font-size: 0.8125rem;
    font-weight: 600;
}

.ad-stJVault {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4, 1rem);
    padding: var(--space-4, 1rem);
    background: var(--secondary-50, #f9fafb);
    border-radius: var(--radius-lg, 0.5rem);
    margin-bottom: var(--space-4, 1rem);
}

.ad-stat {
    text-align: center;
}

.ad-stat-label {
    font-size: 0.75rem;
    color: var(--secondary-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1, 0.25rem);
}

.ad-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-900, #111827);
}

.ad-card-footer {
    padding: var(--space-5, 1.25rem);
    background: rgba(79, 70, 229, 0.02);
    border-top: 1px solid rgba(79, 70, 229, 0.08);
}

.ad-cta-button {
    background: linear-gradient(135deg, var(--primary-500, #4f46e5), var(--primary-600, #4338ca));
    color: white;
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    border-radius: var(--radius-lg, 0.5rem);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
    width: 100%;
    margin-bottom: var(--space-3, 0.75rem);
}

.ad-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    color: white;
    text-decoration: none;
}

.ad-validity {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--secondary-500, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: var(--space-20, 5rem) var(--space-8, 2rem);
    background: white;
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: var(--secondary-300, #d1d5db);
    margin-bottom: var(--space-6, 1.5rem);
}

.empty-state h4 {
    color: var(--secondary-900, #111827);
    margin-bottom: var(--space-3, 0.75rem);
}

.empty-state p {
    color: var(--secondary-600, #4b5563);
    margin-bottom: var(--space-6, 1.5rem);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ads-hero h1 {
        font-size: 2rem;
    }

    .ad-image-wrapper {
        height: 160px;
    }

    .filter-card {
        padding: var(--space-4, 1rem);
    }
}