/* ============================================
   assets/css/style.css - Complete Stylesheet
   ============================================ */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --blue-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --green-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #f5f7fb;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Quick Action Buttons */
.quick-actions {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.action-card:hover {
    transform: translateY(-10px);
}

.action-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Impact Statistics Section */
.impact-stats {
    background: var(--blue-gradient);
    color: white;
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Campaign Cards */
.campaign-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    background: var(--green-gradient);
}

/* Donation Form */
.donation-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.donation-amount-btn {
    border: 2px solid var(--primary);
    background: transparent;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.donation-amount-btn.active,
.donation-amount-btn:hover {
    background: var(--primary);
    color: white;
}

/* Doctor Cards */
.doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.doctor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-card .doctor-info {
    padding: 20px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Testimonial Slider */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-card i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary);
    padding: 60px 0;
    color: white;
}

.newsletter-form input {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 12px 20px;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 12px 30px;
}

/* Donation Meter */
.donation-meter {
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.meter-progress {
    background: var(--green-gradient);
    width: 0%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
    transition: width 1s ease;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive-custom {
        overflow-x: auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
}

/* Accessibility Features */
.visually-hidden:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --success: #008000;
    }
}

/* Print Styles */
@media print {
    .top-bar, .mobile-quick-buttons, .whatsapp-chat-btn, footer, .newsletter-section {
        display: none;
    }
}

/* Language Switcher Animation */
.lang-switch {
    transition: all 0.3s ease;
}

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Donor Recognition Wall */
.donor-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.donor-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Impact Calculator */
.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-result {
    font-size: 2rem;
    font-weight: bold;
    color: var(--success);
}

/* Sharia Compliance Badge */
.sharia-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}
/* Custom page styles */
.page-content .card {
    border-radius: 15px;
    transition: transform 0.3s;
}
.page-content .card:hover {
    transform: translateY(-5px);
}
.page-content h2 {
    color: #0d6efd;
    margin-bottom: 1.5rem;
}
.page-content .btn {
    border-radius: 30px;
    padding: 10px 25px;
}
/* Homepage Carousel Styling */
.carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}
.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 0;
}
.carousel-caption h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.carousel-caption .btn {
    margin: 0 10px;
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .carousel-caption .lead {
        font-size: 1rem;
    }
    .carousel .carousel-bg {
        height: 50vh !important;
    }
}