/* ─── Activity Detail Page Styles ─── */

body { background: #f8fafc; }

/* Loading & not-found states */
.activity-loading {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #64748b;
}
.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.activity-notfound {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #475569;
    gap: 14px;
    padding: 40px 20px;
}
.activity-notfound h2 { font-size: 28px; margin: 8px 0; }
.activity-notfound .btn-primary {
    margin-top: 14px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ─── Hero Banner ─── */
.activity-hero {
    position: relative;
    color: white;
    padding: 130px 0 70px;
    overflow: hidden;
    isolation: isolate;
}

/* Color variants — unified purple/violet/fuchsia/indigo palette */
.activity-hero[data-color="blue"]   { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 60%, #a78bfa 100%); }
.activity-hero[data-color="green"]  { background: linear-gradient(135deg, #581c87 0%, #9333ea 60%, #c084fc 100%); }
.activity-hero[data-color="orange"] { background: linear-gradient(135deg, #701a75 0%, #c026d3 60%, #e879f9 100%); }
.activity-hero[data-color="teal"]   { background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #818cf8 100%); }
.activity-hero[data-color="red"]    { background: linear-gradient(135deg, #6b21a8 0%, #c026d3 60%, #d946ef 100%); }
.activity-hero[data-color="purple"] { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 60%, #c4b5fd 100%); }
.activity-hero[data-color="indigo"] { background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 60%, #6366f1 100%); }
.activity-hero[data-color="navy"]   { background: linear-gradient(135deg, #0f0a2e 0%, #312e81 60%, #6366f1 100%); }

.activity-hero-decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.10) 0%, transparent 50%);
    z-index: 0;
}

.activity-hero .container { position: relative; z-index: 2; }

.cover-watermark {
    position: absolute;
    right: -60px;
    bottom: -80px;
    font-size: 380px;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    color: white;
}

.activity-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    transition: all 0.2s;
    margin-bottom: 30px;
}
.activity-back-link:hover {
    background: rgba(255,255,255,0.22);
    transform: translateX(-3px);
}

.hero-meta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-number, .hero-type-badge, .hero-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.hero-number {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
}
.hero-type-badge {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}
.hero-status-badge {
    background: white;
    color: #1e293b;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 900px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 750px;
    margin: 0 0 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    transition: all 0.2s;
}
.hero-stat:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.hero-stat-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.22);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-stat-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.hero-stat-text small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ─── Main Layout ─── */
.activity-main {
    padding: 70px 0;
}

.activity-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Content blocks */
.content-block {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.content-block:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.content-block-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.content-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.content-block h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.content-block-body {
    padding: 22px 28px 26px;
}

.content-block-body p {
    color: #475569;
    line-height: 1.75;
    margin: 0 0 14px;
    font-size: 15px;
}
.content-block-body p:last-child { margin-bottom: 0; }

/* Check / outcome lists */
.check-list, .outcome-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.check-list li, .outcome-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    transition: all 0.15s;
}
.check-list li:hover, .outcome-list li:hover {
    background: #eff6ff;
    transform: translateX(4px);
}
.check-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.outcome-list li::before {
    content: "★";
    color: #8b5cf6;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

/* Partner roles grid */
.partner-roles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.partner-role-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    transition: all 0.15s;
}
.partner-role-card:hover { transform: translateX(4px); border-left-color: #1d4ed8; }
.partner-role-flag { font-size: 32px; line-height: 1; }
.partner-role-info { flex: 1; }
.partner-role-info strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
}
.partner-role-info span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Sticky sidebar */
.activity-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px 24px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    margin: 0 0 8px;
}
.sidebar-card dt {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sidebar-card dd {
    margin: 0;
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.tag-cloud {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag-cloud .tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}
.sidebar-back-btn:hover { background: #0f172a; transform: translateY(-1px); }

/* ─── Photo Gallery ─── */
.activity-gallery {
    padding: 70px 0;
    background: white;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}
.gallery-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.gallery-header h2 i { color: #3b82f6; }
.gallery-header p {
    color: #64748b;
    font-size: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.25s;
}
.gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-placeholder {
    text-align: center;
    padding: 14px;
}
.gallery-placeholder i {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
    opacity: 0.5;
}
.gallery-placeholder span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
}
.gallery-empty i { font-size: 48px; opacity: 0.4; margin-bottom: 14px; }
.gallery-empty h3 { color: #334155; margin: 0 0 6px; font-size: 18px; }
.gallery-empty p { font-size: 14px; margin: 0; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

/* ─── Prev / Next Pagination ─── */
.activity-pagination {
    padding: 50px 0 80px;
    background: #f8fafc;
}
.activity-pagination .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 28px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.page-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}
.page-nav-card.next { text-align: right; }

.page-nav-direction {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.page-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 1024px) {
    .activity-layout { grid-template-columns: 1fr; }
    .activity-sidebar { position: static; }
    .hero-title { font-size: 42px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .activity-hero { padding: 100px 0 50px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-pagination .container { grid-template-columns: 1fr; }
    .page-nav-card.next { text-align: left; }
    .sidebar-card dl { grid-template-columns: 1fr; }
    .content-block-head { padding: 18px 20px 14px; }
    .content-block-body { padding: 18px 20px 22px; }
    .cover-watermark { font-size: 240px; right: -40px; bottom: -60px; }
}
