﻿ 
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    grid-column: 1 / -1;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

.organizer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.organizer-pics {
    display: flex;
}

    .organizer-pics img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid #fff;
    }

        .organizer-pics img:last-child {
            margin-left: 0px;
        }

.organizer-name {
    font-weight: 600;
    font-size: 14px;
}

.badge-protected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0fdf4;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dcfce7;
    margin-bottom: 24px;
}

.description {
    font-size: 14px;
    color: #333;
    margin-bottom: 24px;
}

    .description a {
        color: #008060;
        text-decoration: underline;
    }

.read-more {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.react-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.react-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.emoji-group {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.action-buttons-mobile {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
}

/* Sidebar Styles */
.sidebar {
    align-self: start;
    position: sticky;
    top: 20px;
}

.card {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.progress-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(#00b964 45%, #eee 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.progress-inner {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.raised-amount {
    font-size: 20px;
    font-weight: 700;
}

.goal-amount {
    font-size: 14px;
    color: #666;
}

.donation-count {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.btn-donate-now {
    background-color: #ac152e;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
}

.btn-share-sidebar {
    background-color: #2b5a35;
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 12px;
    cursor: pointer;
}

.donor-list {
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.donor-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.donor-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 700;
    flex-shrink: 0;
}

.donor-details b {
    display: block;
    font-weight: 600;
}

.donor-details span {
    color: #666;
}

.sidebar-footer-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-outline-sm {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Updates Section */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-badge {
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.update-item {
    margin-bottom: 32px;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .update-header img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

.update-meta b {
    font-size: 14px;
    display: block;
}

.update-meta span {
    font-size: 12px;
    color: #666;
}

.new-badge {
    background: #c5f776;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.update-text {
    font-size: 14px;
    margin-bottom: 16px;
    color: #333;
}

.update-images {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

    .update-images img {
        width: 140px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
    }

.btn-see-more {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

    .promo-banner::after {
        content: "";
        position: absolute;
        right: -20px;
        bottom: -20px;
        width: 120px;
        height: 120px;
        background: rgba(168, 85, 247, 0.1);
        border-radius: 50%;
    }

    .promo-banner h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #581c87;
        max-width: 250px;
        z-index: 1;
    }

.btn-purple {
    background: #6d28d9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    width: fit-content;
    cursor: pointer;
    z-index: 1;
}

/* Co-organizers */
.co-organizers-list {
    margin-bottom: 40px;
}

.organizer-card {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

    .organizer-card img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }

    .organizer-card .initial-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 16px;
    }

.organizer-details-main b {
    font-size: 14px;
    display: block;
}

.organizer-details-main span {
    font-size: 12px;
    color: #666;
    display: block;
}

.btn-contact {
    margin-top: 8px;
    padding: 6px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Words of Support */
.support-instruction {
    font-size: 12px;
    color: #666;
    margin-bottom: 24px;
}

.support-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f9f9f9;
}

    .support-item:last-child {
        border-bottom: none;
    }

.support-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.support-content b {
    font-size: 14px;
}

.support-content .support-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.support-content p {
    font-size: 14px;
    margin: 0;
    color: #333;
}

/* Footer */
.footer-info {
    font-size: 12px;
    color: #666;
    padding-top: 24px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.report-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    margin-top: 24px;
    cursor: pointer;
}

/* ===== MOBILE FLOATING CARD ===== */
.mobile-floating-card {
    display: none;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet & Mobile: stack to single column, hide sidebar, show floating card */
@media (max-width: 860px) {
    .detaje-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 24px 16px;
        padding-bottom: 140px;
    }

    h1 {
        grid-column: 1;
        font-size: 24px;
    }

    /* Hide the desktop sidebar on tablet & mobile */
    .detaje-sidebar {
        display: none;
    }

    /* Show floating card on tablet & mobile */
    .mobile-floating-card {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .floating-top-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .floating-progress-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: conic-gradient(#00b964 45%, #eee 0);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .floating-progress-inner {
        width: 32px;
        height: 32px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: 700;
    }

    .floating-info {
        flex: 1;
        min-width: 0;
    }

    .floating-amount-text {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
    }

    .floating-goal-text {
        font-size: 12px;
        color: #666;
        font-weight: 400;
    }

    .floating-donation-update {
        font-size: 11px;
        color: #666;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .floating-actions {
        display: flex;
        gap: 8px;
    }

    .floating-btn-donate {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        text-align: center;
        cursor: pointer;
        border: none;
        background-color: #c5f776;
        color: #000;
    }

    .floating-btn-share {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        text-align: center;
        cursor: pointer;
        border: none;
        background-color: #2b5a35;
        color: #fff;
    }

    /* Hide the inline action buttons since floating card has them */
    .action-buttons-mobile {
        display: none;
    }
}

/* Mobile-specific refinements */
@media (max-width: 600px) {
    .detaje-container {
        padding: 16px 12px !important;
        padding-bottom: 140px !important;
        gap: 16px !important;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .main-image {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .update-images {
        flex-wrap: wrap;
    }

        .update-images img {
            width: calc(50% - 6px);
            height: 90px;
        }

    .promo-banner h3 {
        font-size: 17px;
    }

    .organizer-card img,
    .organizer-card .initial-circle {
        width: 40px;
        height: 40px;
    }

    .support-item {
        gap: 12px;
    }

    .support-initial {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    h1 {
        font-size: 18px;
    }

    .floating-amount-text {
        font-size: 14px;
    }

    .floating-btn-donate,
    .floating-btn-share {
        font-size: 13px;
        padding: 10px;
    }
}

/* ===== MOBILE DONATIONS SECTION ===== */

/* Hidden on desktop — the sidebar already shows donations */
.mobile-donations-section {
    display: none;
}

/* Show on tablet & mobile */
@media (max-width: 860px) {
    .mobile-donations-section {
        display: block;
        margin-bottom: 40px;
        padding: 20px;
        background: #fafafa;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
    }

    .mobile-donations-section .section-title {
        margin-bottom: 16px;
    }

    .mobile-donor-list {
        margin-bottom: 12px;
    }

    .mobile-donor-list .donor-item {
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-donor-list .donor-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}
