/* ============================================
   Global Styles
   ============================================ */

:root {
    --primary-color: #59886b;
    --secondary-color: #06d6a0;
    --dark-color: #132e2e;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    --success-color: #06d6a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-donate-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 20px;
    transition: all 0.3s;
    border: none;
}

.btn-donate-header:hover {
    background: #d63659;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 71, 111, 0.3);
}

.currency-toggle {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.currency-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    cursor: pointer;
}

.currency-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.currency-btn:hover {
    border-color: var(--primary-color);
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    padding-top: 40px;
}

/* Campaign Header */
.campaign-header {
    margin-bottom: 30px;
}

.campaign-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

/* Campaign Carousel */
.campaign-carousel {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.carousel-inner img {
    width: 100%;
    height: 490px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Campaign Tabs */
.campaign-tabs {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray);
    font-weight: 600;
    padding: 15px 25px;
    margin: 0;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-content {
    padding: 20px 0;
}

/* Story Content */
.story-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.story-content h4 {
    color: var(--dark-color);
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.story-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.story-image {
    margin: 30px 0;
}

.story-image img {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Documents */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.document-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.document-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.document-item span {
    flex: 1;
    font-weight: 500;
}

/* Top Donors */
.top-donors {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.top-donors h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.donor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.donor-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.donor-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.donor-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donor-amount {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   Donation Panel
   ============================================ */

.donation-panel, .organizer-panel {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    top: 100px;
}

.amount-raised {
    text-align: center;
    margin-bottom: 20px;
}

.amount-raised h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.raised-text {
    color: var(--gray);
    font-weight: 500;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.progress {
    height: 12px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    transition: width 0.5s ease;
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -30px;
    font-weight: 600;
    color: var(--primary-color);
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.btn-donate-main {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.btn-donate-main:hover {
    background: #d63659;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 71, 111, 0.3);
}

.btn-donate-main i {
    margin-right: 10px;
}

/* Share Section */
.share-section {
    padding: 25px 0 0px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
}

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

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.link {
    background: var(--gray);
}

/* Organizer Info */
.organizer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.organizer-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.organizer-avatar i {
    font-size: 3rem;
    color: var(--gray);
}

.organizer-name strong {
    display: block;
    font-weight: 600;
}

/* Payment Scanner */

.payment-scanner-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.payment-scanner-box h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

.qr-code {
    text-align: center;
    margin: 15px 0;
}

.qr-code img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.scanner-text {
    text-align: center;
    color: var(--gray);
    margin-bottom: 10px;
}

.upi-apps {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upi-apps span {
    padding: 5px 12px;
    background: var(--light);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   Donation Modal
   ============================================ */

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    padding: 20px 30px;
}

.modal-title {
    font-weight: 600;
    color: var(--dark-color);
}

.modal-body {
    padding: 30px;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    background: var(--light-color);
    border: 2px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.custom-amount {
    margin-bottom: 30px;
}

.custom-amount label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.currency-symbol {
    background: var(--light-color);
    border-right: none;
}

.btn-proceed {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-proceed:hover {
    background: #d63659;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.site-footer h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
    .campaign-title {
        font-size: 1.6rem;
    }
    
    .carousel-inner img {
        height: 350px;
    }
    
    .donation-panel {
        position: relative;
        top: 0;
    }

    .organizer-panel {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .campaign-title {
        font-size: 1.4rem;
    }
    
    .carousel-inner img {
        height: 250px;
    }
    
    .amount-raised h2 {
        font-size: 2.5rem;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .currency-toggle {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 575px) {
    .campaign-tabs {
        padding: 20px 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .donation-amounts {
        grid-template-columns: 1fr;
    }
}
