/* ================================================
   UNIFIED STYLES FOR PUBLIC PAGES
   Used across: News, Schemes, Events pages
   ================================================ */

/* ============================================
   BREADCRUMB STYLES - NO PAGE-SPECIFIC OVERRIDES
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    padding: 0;
    list-style: none;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #4f46e5;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}

/* Breadcrumb on dark/gradient backgrounds */
.breadcrumb-light a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-light a:hover {
    color: white;
}

.breadcrumb-light .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-light .breadcrumb-current {
    color: white;
}

/* ============================================
   BACK BUTTON - CONSISTENT ACROSS ALL PAGES
   ============================================ */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #4f46e5;
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background: #4338ca;
    transform: translateX(-4px);
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-4px);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f3f4f6;
    border-color: #4f46e5;
    color: #4f46e5;
}

.page-item.active .page-link {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   BUTTONS - COMMON STYLES
   ============================================ */
.btn-primary {
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.search-input,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============================================
   NO RESULTS STATE
   ============================================ */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .back-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .page-link {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .search-input,
    .filter-input {
        font-size: 0.95rem;
        padding: 0.625rem 0.75rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
    }
    
    .no-results i {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .no-results h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.625rem 1rem;
    }
}
