/* --- THEME VARIABLES (Imported Logic) --- */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --primary-blue: #3b82f6;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

body { background-color: var(--bg-main); color: var(--text-white); }

/* --- HERO SECTION --- */
.campaign-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 60%);
    text-align: center;
}

.campaign-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 15px; }
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-tag { color: var(--primary-blue); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 10px; }
.campaign-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* --- MASONRY GRID (Pinterest Style) --- */
.feed-section { padding: 40px 0 100px; }

.masonry-grid {
    column-count: 4; /* Desktop: 4 Columns */
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-blue);
}
.masonry-item:hover img { transform: scale(1.05); }

/* Overlay on Hover */
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.masonry-item:hover .item-overlay { opacity: 1; }
.item-overlay h5 { color: white; margin: 0; font-size: 1rem; }

/* Skeletons */
.skeleton-item {
    background: var(--bg-card);
    margin-bottom: 20px;
    border-radius: 16px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% {opacity: 0.5;} 50% {opacity: 1;} 100% {opacity: 0.5;} }

/* --- RESPONSIVE COLUMNS --- */
@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } }
@media (max-width: 480px) { .masonry-grid { column-count: 1; } }


/* --- MODAL (Facebook Style) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.fb-mockup-modal {
    width: 100%; max-width: 500px;
    background: #18191a;
    border-radius: 16px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .fb-mockup-modal { transform: scale(1); }

.close-modal {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: white;
    font-size: 2.5rem; cursor: pointer; z-index: 10000;
}

/* Modal Internals (Reused from Portfolio CSS but adapted) */
.fb-header { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #334155; }
.fb-profile-pic img { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; }
.fb-name { font-size: 0.95rem; margin: 0; color: #e4e6eb; }
.fb-time { font-size: 0.75rem; color: #b0b3b8; display: block; }
.verified { color: #3b82f6; font-size: 0.8rem; margin-left: 3px; }
.fb-options { margin-left: auto; color: #b0b3b8; }

.fb-modal-body {
    background: black;
    width: 100%;
    /* Max height for modal image to fit screen */
    max-height: 60vh; 
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.fb-modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; }

.fb-modal-footer { padding: 15px; background: #18191a; }
.fb-modal-footer h4 { font-size: 1rem; margin-bottom: 10px; color: #e4e6eb; font-weight: 500; }
.fb-stats { display: flex; justify-content: space-between; font-size: 0.85rem; color: #b0b3b8; margin-bottom: 15px; border-bottom: 1px solid #3e4042; padding-bottom: 10px; }
.fb-actions { display: flex; justify-content: space-around; color: #b0b3b8; font-weight: 600; font-size: 0.9rem; }
.action { cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px; }
.action:hover { color: var(--primary-blue); }