/* ============================================
   site-campaigns.css - Shared Campaign Styles
   ============================================ */

.site-page-wrapper {
    padding-bottom: 0;
    background: var(--bg);
    min-height: calc(100vh - 200px);
    margin-top: 60px;

}


/* ---- Hero Section ---- */
.site-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.site-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.site-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.site-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-hero-title span {
    color: #ffd700;
}

.site-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.site-hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.site-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.site-hero-badge:hover {
    transform: translateY(-2px);
}

.site-hero-badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---- Stats Section ---- */
.site-stats {
    padding: 3rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.site-stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg);
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.site-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-stat-item:hover::before {
    opacity: 1;
}

.site-stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow);
}

.site-stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.site-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.site-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* ---- Section Header ---- */
.site-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-section-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.site-section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Filter Buttons ---- */
.site-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.site-filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.site-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ---- Campaigns Grid ---- */
.site-campaigns {
    padding: 4rem 0;
    margin-left: 20px;
    margin-right: 20px;
    background: var(--bg);
}

.site-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* ---- Campaign Card ---- */
.site-campaign-card {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.site-campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow);
    border-color: var(--primary);
    text-decoration: none;
}

.site-campaign-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.site-campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.site-campaign-card:hover .site-campaign-image img {
    transform: scale(1.08);
}

.site-campaign-urgent {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #dc3545;
    color: #fff;
    z-index: 2;
}

.site-campaign-featured {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffd700;
    color: #222;
    z-index: 2;
}

.site-campaign-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.site-campaign-card:hover .site-campaign-arrow {
    opacity: 1;
    transform: translateX(0);
}

.site-campaign-body {
    padding: 1.5rem;
}

.site-campaign-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.site-campaign-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.site-campaign-card:hover .site-campaign-title {
    color: var(--primary);
}

.site-campaign-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-campaign-progress {
    margin-bottom: 1rem;
}

.site-campaign-progress .site-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.site-campaign-progress .site-progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-campaign-progress .site-progress-amount {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.site-campaign-progress .site-progress-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.site-campaign-progress .site-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: width 1.5s ease;
}

.site-campaign-progress .site-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.site-campaign-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-campaign-date i {
    margin-right: 0.5rem;
}

.site-campaign-donors {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-campaign-donors i {
    margin-right: 0.5rem;
}

/* ---- Campaign Detail ---- */
.site-detail {
    padding: 3rem 0;
}

.site-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.site-detail-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    background: var(--surface);
    border: 1px solid var(--border);
    position: sticky;
    top: 22%;
}

.site-detail-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.site-detail-image-placeholder {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--text-muted);
    font-size: 4rem;
}

.site-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-detail-category {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.site-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.site-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-detail-meta-item i {
    color: var(--primary);
    width: 1.25rem;
}

.site-detail-progress {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.site-detail-progress .site-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.site-detail-progress .site-progress-label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.site-detail-progress .site-progress-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.site-detail-progress .site-progress-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.site-detail-progress .site-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: width 1.5s ease;
}

.site-detail-progress .site-progress-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-detail-description {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.site-detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* ---- Buttons ---- */
.site-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.site-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    color: #fff;
    text-decoration: none;
}

.site-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.site-btn-secondary:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* ---- Related ---- */
.site-related {
    /* padding: 4rem 0; */
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px;;    
    padding-bottom: 4rem;
    margin-bottom: 100px;
}

.site-related .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-related-header {
    text-align: center;
    margin-bottom: 3rem;
}

.site-related-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.site-related-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.site-related-card {
    background: var(--bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.site-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary);
    text-decoration: none;
}

.site-related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.site-related-body {
    padding: 1.25rem;
}

.site-related-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.site-related-card:hover .site-related-name {
    color: var(--primary);
}

.site-related-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.site-related-category i {
    color: var(--primary);
    font-size: 0.7rem;
}

.site-related-progress {
    margin-bottom: 0.5rem;
}

.site-related-progress .site-progress-bar {
    height: 4px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
}

.site-related-progress .site-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
}

.site-related-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Empty State ---- */
.site-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.site-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.site-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.site-empty-message {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ---- Animations ---- */
@keyframes siteFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes siteFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .site-hero-title {
        font-size: 2.75rem;
    }

    .site-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-detail-image {
        position: static;
    }

    .site-detail-image img,
    .site-detail-image-placeholder {
        height: 350px;
    }

    .site-detail-title {
        font-size: 2rem;
    }

    .site-campaigns-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-hero {
        padding: 60px 0;
    }

    .site-hero-title {
        font-size: 2rem;
    }

    .site-hero-subtitle {
        font-size: 1rem;
    }

    .site-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-left: 20px;
        margin-right: 20px;
    }

    .site-stat-item {
        padding: 1.5rem 1rem;
    }

    .site-stat-number {
        font-size: 2rem;
    }

    .site-section-title {
        font-size: 2rem;
    }

    .site-campaigns-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .site-detail-image img,
    .site-detail-image-placeholder {
        height: 280px;
    }

    .site-detail-title {
        font-size: 1.75rem;
    }

    .site-detail-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-detail-actions {
        flex-direction: column;
    }

    .site-btn-primary,
    .site-btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .site-related-card img {
        height: 150px;
    }

    .site-related-title {
        font-size: 1.5rem;
    }

    .site-hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .site-filter {
        gap: 0.5rem;
    }

    .site-filter-btn {
        padding: 0.35rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .site-hero-title {
        font-size: 1.75rem;
    }

    .site-stat-number {
        font-size: 1.75rem;
    }

    .site-campaign-image {
        height: 180px;
    }

    .site-campaign-title {
        font-size: 1.1rem;
    }

    .site-detail-image img,
    .site-detail-image-placeholder {
        height: 220px;
    }

    .site-detail-title {
        font-size: 1.5rem;
    }

    .site-detail-progress .site-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.site-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 2rem;
    justify-content: center; /* This centers the grid columns */
}

.site-related-card {
    width: 100%;
}

.site-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}
