/* ============================================================
   She Gave Changemakers – Styles
   ============================================================ */

/* -- Google Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

/* -- CSS Variables -- */
.sgc-wrapper,
.sgc-modal-overlay {
    --sgc-red:        #D42B2B;
    --sgc-red-dark:   #A81E1E;
    --sgc-yellow:     #F5C518;
    --sgc-cream:      #F5F0EA;
    --sgc-white:      #FFFFFF;
    --sgc-text:       #1A1A1A;
    --sgc-text-muted: #666666;
    --sgc-border:     #E8E0D5;
    --sgc-shadow:     0 4px 24px rgba(0,0,0,.10);
    --sgc-shadow-lg:  0 16px 64px rgba(0,0,0,.20);
    --sgc-radius:     16px;
    --sgc-font-head:  'Bebas Neue', Impact, sans-serif;
    --sgc-font-body:  'DM Sans', system-ui, sans-serif;
}

/* -- Reset -- */
.sgc-wrapper *, .sgc-modal-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   WRAPPER
   ============================================================ */
.sgc-wrapper {
    font-family: var(--sgc-font-body);
/*     background: var(--sgc-cream); */
    padding: 24px 0 48px;
    width: 100%;
}

/* ============================================================
   HEADER BAR
   ============================================================ */
.sgc-header-bar {
    padding: 0 24px 16px;
    border-bottom: 2px solid var(--sgc-red);
    margin-bottom: 20px;
}
.sgc-browse-label {
    font-family: var(--sgc-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--sgc-red);
    text-transform: uppercase;
}
.sgc-count-highlight {
    color: var(--sgc-red);
}

/* ============================================================
   FILTERS
   ============================================================ */
.sgc-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--sgc-border);
    margin-bottom: 12px;
}
.sgc-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sgc-filter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--sgc-text-muted);
    text-transform: uppercase;
    margin-right: 4px;
}
.sgc-filter-btn {
    background: transparent;
    border: 1.5px solid var(--sgc-border);
    border-radius: 999px;
    padding: 5px 16px;
    font-family: var(--sgc-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--sgc-text);
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.4;
}
.sgc-filter-btn:hover {
    border-color: var(--sgc-red);
    color: var(--sgc-red);
	background:transparent;
}
.sgc-filter-btn.active {
    background: var(--sgc-red);
    border-color: var(--sgc-red);
    color: var(--sgc-white);
    font-weight: 600;
}

/* ============================================================
   SHOWING COUNT
   ============================================================ */
.sgc-showing-bar {
    padding: 0 24px 16px;
}
.sgc-showing-text {
    font-size: 12px;
    color: var(--sgc-text-muted);
}

/* ============================================================
   GRID
   ============================================================ */
.sgc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px;
}

/* ============================================================
   CARD
   ============================================================ */
.sgc-card {
    background: var(--sgc-white);
    border-radius: var(--sgc-radius);
    overflow: hidden;
    box-shadow: var(--sgc-shadow);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    outline: none;
    display: flex;
    flex-direction: column;
}
.sgc-card:hover,
.sgc-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}
.sgc-card.sgc-hidden {
    display: none !important;
}

/* -- Card Banner -- */
.sgc-card-banner {
    position: relative;
    background: var(--sgc-red);
    height: 200px;
    overflow: hidden;
}
.sgc-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    mix-blend-mode: normal;
    opacity: .85;
}
.sgc-banner-placeholder {
    width: 100%;
    height: 100%;
    background: var(--sgc-red);
}
.sgc-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(to top, rgba(180,0,0,.75) 0%, transparent 50%);
}

/* Focus tag */
.sgc-card-focus-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}
.sgc-focus-improved-livelihoods      { background: #1B6EE0; }
.sgc-focus-strengthened-healthcare         { background: #1DB07A; }
.sgc-focus-quality-education { background: #9B51E0; }
.sgc-focus-strengthened-healthcare     { background: #E07B1B; }
.sgc-focus-finance        { background: #0EA5C9; }

/* Brand logo in banner */
.sgc-brand-logo {
	display:none;
    font-family: var(--sgc-font-head);
    font-size: 28px;
    color: var(--sgc-yellow);
    letter-spacing: .04em;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(0,0,0,.35);
    margin-bottom: 4px;
}
.sgc-exclaim {
    color: var(--sgc-white);
}
.sgc-card-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
}

/* -- Card Body -- */
.sgc-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sgc-card-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sgc-card-name {
    font-family: var(--sgc-font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--sgc-text);
    line-height: 1.2;
}
.sgc-card-flag {
    font-size: 20px;
    flex-shrink: 0;
}
.sgc-card-country {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--sgc-text-muted);
    margin-top: -4px;
}

/* Field rows */
.sgc-card-field {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px;
    align-items: start;
}
.sgc-field-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 2px 0;
/*     text-transform: uppercase; */
}
.sgc-we-gave-label    { color: var(--sgc-red); }
.sgc-africa-gained-label { color: #2E7D32; }
.sgc-field-value {
    font-size: 12px;
    color: var(--sgc-text);
    line-height: 1.45;
}

/* Next woman text */
.sgc-card-next-label {
    font-size: 11px;
    font-style: italic;
    color: var(--sgc-text-muted);
    margin-top: 2px;
}

/* ============================================================
   AUDIO PLAYER
   ============================================================ */
.sgc-audio-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8F4EF;
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    margin-top: 4px;
    user-select: none;
}
.sgc-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sgc-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
    color: #fff;
}
.sgc-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}
.sgc-play-btn:hover { background: var(--sgc-red-dark); }
.sgc-play-btn.playing {
    background: var(--sgc-red-dark);
}
.sgc-play-btn.playing svg path { d: path("M6 19h4V5H6v14zm8-14v14h4V5h-4z"); }

.sgc-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    height: 28px;
    overflow: hidden;
}
.sgc-bar {
    display: inline-block;
    width: 3px;
    border-radius: 2px;
    background: #C9B99A;
    flex-shrink: 0;
    transition: background .2s;
    transform-origin: center bottom;
}
.sgc-audio-player.playing .sgc-bar {
    background: var(--sgc-red);
    animation: sgc-wave-pulse 1s ease-in-out infinite alternate;
}
.sgc-audio-player.playing .sgc-bar:nth-child(2n)   { animation-delay: .1s; }
.sgc-audio-player.playing .sgc-bar:nth-child(3n)   { animation-delay: .2s; }
.sgc-audio-player.playing .sgc-bar:nth-child(5n)   { animation-delay: .15s; }
.sgc-audio-player.playing .sgc-bar:nth-child(7n)   { animation-delay: .3s; }

@keyframes sgc-wave-pulse {
    0%   { transform: scaleY(1); }
    100% { transform: scaleY(1.4); }
}
.sgc-audio-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--sgc-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   SHARE ROW
   ============================================================ */
.sgc-share-row,
.sgc-modal-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--sgc-border);
}
.sgc-share-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--sgc-text-muted);
    text-transform: uppercase;
}
.sgc-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--sgc-text-muted);
    text-decoration: none;
    transition: color .2s, transform .2s;
}
.sgc-share-icon svg {
    width: 16px;
    height: 16px;
}
.sgc-share-icon:hover {
    color: var(--sgc-red);
    transform: scale(1.15);
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.sgc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: sgc-fade-in .2s ease;
}
.sgc-modal-overlay[hidden] { display: none; }

@keyframes sgc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sgc-modal-container {
/*     position: relative; */
    background: var(--sgc-white);
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sgc-shadow-lg);
    animation: sgc-slide-up .3s cubic-bezier(.25,.8,.25,1);
}

@keyframes sgc-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.sgc-modal-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 460px;
}

/* ============================================================
   MODAL HERO
   ============================================================ */
.sgc-modal-hero {
    background: var(--sgc-red);
    position: relative;
    overflow: hidden;
    display: flex;
/*     flex-direction: column; */
/*     padding: 24px 20px 20px; */
}
.sgc-modal-hero img{
	width:100%;
}
.sgc-modal-hero-brand {
	display:none;
    font-family: var(--sgc-font-head);
    font-size: 36px;
    color: var(--sgc-yellow);
    letter-spacing: .04em;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.sgc-modal-hero-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    margin: 1px auto 1px;
    display: block;
    border: 4px solid rgba(255,255,255,.2);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.sgc-modal-hero-bottom {
    display: none;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    margin-top: 8px;
}
.sgc-modal-name {
    font-family: var(--sgc-font-head);
    font-size: 28px;
    color: var(--sgc-white);
    letter-spacing: .02em;
    line-height: 1;
}
.sgc-modal-flag {
    font-size: 24px;
}
.sgc-modal-subtitle-hero {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
    z-index: 2;
    margin-top: 4px;
    line-height: 1.4;
}
.sgc-modal-logo-badge {
	display:none;
    margin-top: auto;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}
.sgc-ccHub-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--sgc-yellow);
    text-transform: uppercase;
}

/* Decorative elements */
.sgc-modal-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.sgc-deco-star {
    position: absolute;
    color: rgba(255,255,255,.15);
    font-size: 48px;
}
.sgc-deco-star-1 { top: 10%; right: 8%; font-size: 64px; }
.sgc-deco-star-2 { bottom: 30%; left: 6%; font-size: 32px; }
.sgc-deco-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 16px solid rgba(255,255,255,.1);
    bottom: -20px;
    right: -20px;
}
.sgc-deco-flower {
    position: absolute;
    top: 50%;
    right: 10%;
    font-size: 24px;
    color: var(--sgc-yellow);
    opacity: .6;
}

/* ============================================================
   MODAL DETAILS
   ============================================================ */
.sgc-modal-details {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sgc-modal-detail-name {
    font-family: var(--sgc-font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--sgc-text);
}
.sgc-modal-detail-country {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--sgc-text-muted);
    text-transform: uppercase;
    margin-top: -8px;
}
.sgc-modal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sgc-modal-audio-wrap {
    margin-top: 4px;
}

/* Close button */
.sgc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    transition: background .2s;
}
.sgc-modal-close svg { width: 18px; height: 18px; }
.sgc-modal-close:hover { background: rgba(0,0,0,.3); }

/* Nav buttons */
.sgc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sgc-white);
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--sgc-text);
    transition: background .2s, transform .2s;
}
.sgc-nav-btn svg { width: 20px; height: 20px; }
.sgc-nav-prev { left: calc(50% - 450px); }
.sgc-nav-next { right: calc(50% - 450px); }
.sgc-nav-btn:hover { background: var(--sgc-red); color: #fff; transform: translateY(-50%) scale(1.05); }
.sgc-nav-btn:disabled { opacity: .3; cursor: default; }
.sgc-nav-btn:disabled:hover { background: var(--sgc-white); color: var(--sgc-text); transform: translateY(-50%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .sgc-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        padding: 0 16px;
    }
    .sgc-modal-inner {
        grid-template-columns: 1fr;
    }
    .sgc-modal-hero {
        min-height: 320px;
    }
    .sgc-nav-prev { left: 8px; }
    .sgc-nav-next { right: 8px; }
    .sgc-modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .sgc-grid {
        grid-template-columns: 1fr;
    }
    .sgc-filters-bar {
        padding: 0 16px 16px;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
.sgc-modal-container::-webkit-scrollbar { width: 6px; }
.sgc-modal-container::-webkit-scrollbar-track { background: transparent; }
.sgc-modal-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
