/*==========================================================================
   Salam Charity Professional Enhancements
   Author: GitHub Copilot
   Purpose: Professional, trustworthy, modern charity website styling
   ==========================================================================*/

/* ====== Enhanced Trust & Security Indicators ====== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Professional Header Enhancement */
.header-top {
    background: linear-gradient(135deg, #1e5128 0%, #2d6a4f 100%);
    border-bottom: 3px solid #52b788;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-middle {
    padding: 25px 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Elevated Navigation */
nav.navbar {
    background: linear-gradient(to bottom, #24353b 0%, #1a272c 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1000;
}

nav.navbar .nav > li > a {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 15px;
}

nav.navbar .nav > li > a:hover {
    background: rgba(82, 183, 136, 0.15);
    color: #52b788;
    transform: translateY(-2px);
}

/* Professional Donate Button */
.btn {
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 10px 15px;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 0;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #40916c 0%, #1b4332 100%);
}

/* Trust Badges & Security */
.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
    margin: 20px 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    padding: 10px 15px;
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 13px;
    color: #2d6a4f;
    font-weight: 600;
}

.trust-badge i {
    margin-right: 8px;
    color: #52b788;
    font-size: 18px;
}

/* Enhanced Card Design */
.card-professional {
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-professional:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Professional Form Styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #52b788;
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.1);
    outline: none;
}

.form-group label {
    font-weight: 600;
    color: #24353b;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Donation Amount Selector Enhancement */
.amount-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.amount-option {
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    font-size: 18px;
    color: #24353b;
}

.amount-option:hover {
    border-color: #52b788;
    background: #f0f8f5;
    transform: scale(1.05);
}

.amount-option.active {
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    color: white;
    border-color: #2d6a4f;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
}

/* Professional Footer */
footer.footer {
    background: linear-gradient(to bottom, #1a272c 0%, #0f1618 100%);
    color: #95a5a6;
    padding-top: 60px;
}

footer.footer h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer.footer a {
    color: #95a5a6;
    transition: all 0.3s ease;
}

footer.footer a:hover {
    color: #52b788;
    padding-left: 5px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Social Media Enhancement */
.follow-us li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.follow-us li a:hover {
    background: #52b788;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(82, 183, 136, 0.4);
}

/* Alert & Notification Styling */
.alert {
    border-radius: 0;
    border: none;
    padding: 10px 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Banner Enhancement */
.banner-outer {
    position: relative;
}

.banner-slider:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

.banner-slider .content h1 {
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    font-weight: 700;
}

.banner-slider .content p {
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
    font-size: 18px;
    line-height: 1.6;
}

/* Project Cards Enhancement */
.project-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-10px);
}

.project-card img {
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 0;
    overflow: hidden;
    margin: 15px 0;
}

.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #52b788 0%, #2d6a4f 100%);
    transition: width 1s ease;
    box-shadow: 0 2px 8px rgba(82, 183, 136, 0.3);
}

/* Testimonial Enhancement */
.testimonial-modern {
    background: white;
    padding: 35px;
    border-radius: 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    position: relative;
    margin: 20px 0;
    border-left: 4px solid #52b788;
}

.testimonial-modern:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    color: #e9ecef;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-modern p {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 0;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Transitions */
.page-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility Enhancements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #52b788;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .header-top, nav.navbar, footer, .social-share { display: none !important; }
    body { font-size: 12pt; }
    a { text-decoration: underline; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .header-middle {
        padding: 15px 0;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .amount-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-indicators {
        flex-direction: column;
    }
    
    .trust-badge {
        margin: 8px 0;
    }
}

/* Enhanced Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.security-badge i {
    margin-right: 6px;
    font-size: 14px;
}

/* Impact Statistics */
.impact-stat {
    text-align: center;
    padding: 10px 15px;
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.impact-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #2d6a4f;
    line-height: 1;
    margin-bottom: 10px;
}

.impact-stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Verified Charity Badge */
.verified-charity-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin: 20px 0;
}

.verified-charity-badge i {
    margin-right: 10px;
    font-size: 20px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid #52b788;
    outline-offset: 2px;
}

/* ====== DONATION PAGE ENHANCEMENTS ====== */

/* Header Donate Button */
.btn-donate-header {
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    color: white !important;
    padding: 8px 18px;
    border-radius: 0;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(82, 183, 136, 0.3);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-donate-header:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-donate-header:hover:before {
    width: 300px;
    height: 300px;
}

.btn-donate-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.5);
    color: white !important;
    text-decoration: none;
}

.btn-donate-header i {
    font-size: 16px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20% { transform: scale(0.95); }
}

/* Donation Page Title */
.donation-page-title {
    text-align: center;
    padding: 30px 0 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.donation-page-title h1 {
    font-size: 36px;
    color: #24353b;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.donation-page-title h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #52b788 0%, #2d6a4f 100%);
    border-radius: 0;
}

.donation-page-title p {
    font-size: 18px;
    color: #6c757d;
    margin-top: 20px;
    line-height: 1.6;
}

/* Professional Donation Form Container */
.donation-form-wrapper {
    background: white;
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Section Headers */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-section-header i {
    font-size: 28px;
    color: #52b788;
}

.form-section-header h3 {
    font-size: 22px;
    color: #24353b;
    font-weight: 700;
    margin: 0;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #24353b;
    margin-bottom: 5px;
    font-size: 15px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #52b788;
    font-size: 16px;
}

.form-group label .required-star {
    color: #dc3545;
    font-weight: bold;
}

/* Enhanced Form Controls */
.donation-form-wrapper .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    height: auto;
}

.donation-form-wrapper .form-control:focus {
    border-color: #52b788;
    background: white;
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.1);
    outline: none;
}

.donation-form-wrapper .form-control:hover {
    border-color: #52b788;
    background: white;
}

/* Campaign Select Dropdown Enhancement */
.campaign-select-wrapper {
    position: relative;
}

.campaign-select-wrapper:before {
    content: '\f0d7';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #52b788;
    font-size: 18px;
    pointer-events: none;
    z-index: 5;
}

.campaign-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 50px !important;
    background-image: none !important;
    cursor: pointer;
    font-weight: 500;
}

.campaign-select-wrapper select option {
    padding: 12px;
    font-size: 15px;
    background: white;
}

.campaign-select-wrapper select option:first-child {
    color: #999;
}

/* Campaign Cards Alternative Layout */
.campaign-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.campaign-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 0;
    padding: 12px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.campaign-card:hover {
    border-color: #52b788;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.15);
}

.campaign-card.selected {
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    border-color: #2d6a4f;
    color: white;
}

.campaign-card i {
    font-size: 40px;
    color: #52b788;
    margin-bottom: 15px;
    display: block;
}

.campaign-card.selected i {
    color: white;
}

.campaign-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #24353b;
}

.campaign-card.selected h4 {
    color: white;
}

.campaign-card p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.campaign-card.selected p {
    color: rgba(255, 255, 255, 0.9);
}

/* Amount Input with Currency Symbol */
.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper:before {
    content: 'UGX';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #52b788;
    font-size: 16px;
    z-index: 5;
}

.amount-input-wrapper input {
    padding-left: 70px !important;
    font-size: 20px !important;
    font-weight: 700;
    color: #24353b;
}

/* Quick Amount Suggestions */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.quick-amount-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    color: #24353b;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-amount-btn:hover {
    border-color: #52b788;
    background: #f0f8f5;
    transform: scale(1.05);
}

.quick-amount-btn.active {
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    color: white;
    border-color: #2d6a4f;
}

/* Submit Button Enhancement */
.donation-form-wrapper .btn-primary {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 0;
    margin-top: 15px;
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    border: none;
    box-shadow: 0 6px 25px rgba(82, 183, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.donation-form-wrapper .btn-primary:hover {
    box-shadow: 0 10px 35px rgba(82, 183, 136, 0.4);
    transform: translateY(-3px);
}

.donation-form-wrapper .btn-primary i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.donation-form-wrapper .btn-primary:hover i {
    transform: translateX(5px);
}

/* Trust Indicators Below Form */
.donation-trust-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.trust-item i {
    font-size: 24px;
    color: #52b788;
}

/* Form Validation Errors */
.text-danger {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group.has-error .form-control:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Success/Error Alerts Enhanced */
.donation-form-wrapper .alert {
    border-radius: 0;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.donation-form-wrapper .alert i {
    font-size: 24px;
}

.donation-form-wrapper .alert-danger {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.donation-form-wrapper .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

/* Donation Impact Preview */
.donation-impact-preview {
    background: linear-gradient(135deg, #f0f8f5 0%, #e8f5e9 100%);
    border-radius: 0;
    padding: 15px 20px;
    margin-top: 15px;
    border: 2px solid #52b788;
}

.donation-impact-preview h4 {
    color: #2d6a4f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-impact-preview h4 i {
    font-size: 28px;
    color: #52b788;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #24353b;
}

.impact-list li i {
    font-size: 20px;
    color: #52b788;
    min-width: 25px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .donation-form-wrapper {
        padding: 10px 15px;
        border-radius: 0;
    }
    
    .donation-page-title h1 {
        font-size: 32px;
    }
    
    .campaign-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-trust-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-donate-header {
        padding: 10px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .donation-page-title h1 {
        font-size: 28px;
    }
    
    .donation-form-wrapper .btn-primary {
        font-size: 16px;
        padding: 10px 15px;
    }
}
