/* ==========================================================================
   ONLY GIRLS — Growth Library Page
   ========================================================================== */

/* -----------------------------------------
   HERO
----------------------------------------- */
.gl-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 0;
}

.gl-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
}

.gl-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}

.gl-orb-1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(201, 42, 93, 0.09) 0%, transparent 70%);
    top: -200px; right: -100px;
    animation: orbFloat 14s ease-in-out infinite;
}

.gl-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232, 180, 184, 0.1) 0%, transparent 70%);
    bottom: 100px; left: -150px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.gl-orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(240, 98, 146, 0.06) 0%, transparent 70%);
    top: 50%; left: 40%;
    animation: orbFloat 18s ease-in-out infinite;
}

.gl-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding-bottom: 4rem;
}

.gl-hero-text { max-width: 560px; }

.gl-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.gl-hero-title em {
    font-style: italic;
    color: var(--accent-primary);
}

.gl-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Search bar */
.gl-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 1.5px solid rgba(201, 42, 93, 0.15);
    border-radius: 100px;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    box-shadow: 0 8px 30px rgba(201, 42, 93, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gl-search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(201, 42, 93, 0.15);
}

.gl-search-icon {
    width: 18px; height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.gl-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-main);
    background: transparent;
}

.gl-search-input::placeholder { color: var(--text-muted); }

.gl-search-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
}

.gl-search-btn:hover {
    background: var(--accent-deep);
    transform: scale(1.03);
}

/* Featured card */
.gl-featured-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 520px;
    box-shadow: 0 40px 80px rgba(201, 42, 93, 0.15);
}

.gl-featured-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-expo);
}

.gl-featured-card:hover .gl-featured-img {
    transform: scale(1.04);
}

.gl-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 5, 9, 0.95) 0%,
        rgba(13, 5, 9, 0.5) 50%,
        rgba(13, 5, 9, 0.1) 100%
    );
}

.gl-featured-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gl-featured-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: rgba(201, 42, 93, 0.18);
    border: 1px solid rgba(201, 42, 93, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    width: fit-content;
}

.gl-featured-content h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: white;
    line-height: 1.25;
    font-weight: 600;
}

.gl-featured-content p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
}

.gl-featured-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}

.gl-featured-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: var(--accent-primary);
    border: none;
    border-radius: 100px;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    margin-top: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gl-featured-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(255,255,255,0.25);
}

.gl-featured-cta svg {
    width: 18px; height: 18px;
    color: var(--accent-primary);
}

/* Stats strip */
.gl-hero-stats {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(201, 42, 93, 0.08);
    background: rgba(252, 245, 248, 0.5);
    backdrop-filter: blur(10px);
}

.gl-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2.5rem var(--container-pad);
}

.gl-stat {
    flex: 1;
    text-align: center;
}

.gl-stat strong {
    display: inline;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.gl-stat span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.gl-stat p {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.4rem;
}

.gl-stat-div {
    width: 1px;
    height: 60px;
    background: rgba(201, 42, 93, 0.1);
    flex-shrink: 0;
}

/* -----------------------------------------
   FILTER TABS
----------------------------------------- */
.gl-filter-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(201, 42, 93, 0.08);
    position: sticky;
    top: 76px;
    z-index: 50;
    background: rgba(255, 251, 253, 0.95);
    backdrop-filter: blur(20px);
}

.gl-filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.gl-filter-tabs::-webkit-scrollbar { display: none; }

.gl-tab {
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    border: 1.5px solid rgba(201, 42, 93, 0.12);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--ease-expo);
    letter-spacing: 0.3px;
}

.gl-tab:hover {
    border-color: rgba(201, 42, 93, 0.3);
    color: var(--accent-primary);
}

.gl-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(201, 42, 93, 0.28);
}

/* -----------------------------------------
   SECTION HEADER
----------------------------------------- */
.gl-section-header {
    max-width: 660px;
    margin-bottom: 4rem;
}

/* -----------------------------------------
   PHASE SYNCED SPOTLIGHT
----------------------------------------- */
.gl-phase-section {
    padding: var(--section-pad) 0;
    background: rgba(252, 245, 248, 0.4);
}

.gl-phase-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gl-phase-tab {
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    border: 1.5px solid rgba(201, 42, 93, 0.12);
    background: white;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s var(--ease-expo);
}

.gl-phase-tab:hover {
    border-color: rgba(201, 42, 93, 0.3);
    color: var(--accent-primary);
}

.gl-phase-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(201, 42, 93, 0.28);
}

.gl-phase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Phase cards */
.gl-phase-card {
    border-radius: 28px !important;
    overflow: hidden;
    transition: transform 0.4s var(--ease-expo), box-shadow 0.4s !important;
    padding: 0 !important;
}

.gl-phase-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 30px 60px rgba(201, 42, 93, 0.1), inset 0 1px 0 white !important;
}

.gl-phase-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-expo);
}

.gl-phase-card:hover .gl-phase-card-img {
    transform: scale(1.05);
}

.gl-phase-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gl-phase-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.gl-phase-tag.follicular {
    background: rgba(232, 180, 184, 0.2);
    color: #a94060;
    border: 1px solid rgba(232, 180, 184, 0.4);
}

.gl-phase-tag.ovulatory {
    background: rgba(201, 42, 93, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(201, 42, 93, 0.18);
}

.gl-phase-tag.luteal {
    background: rgba(100, 60, 130, 0.08);
    color: #6d3fa0;
    border: 1px solid rgba(100, 60, 130, 0.15);
}

.gl-phase-tag.menstrual {
    background: rgba(201, 42, 93, 0.06);
    color: #b5284f;
    border: 1px solid rgba(201, 42, 93, 0.12);
}

.gl-content-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.gl-phase-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 600;
}

.gl-phase-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.gl-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 42, 93, 0.07);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gl-card-cta {
    margin-left: auto;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.gl-card-cta:hover {
    background: var(--accent-deep);
    transform: scale(1.05);
}

/* -----------------------------------------
   FULL LIBRARY GRID
----------------------------------------- */
.gl-library-section {
    padding: var(--section-pad) 0;
}

.gl-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gl-library-card {
    border-radius: 28px !important;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.4s var(--ease-expo), box-shadow 0.4s !important;
    animation-delay: var(--bento-delay, 0s);
}

.gl-library-card:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 30px 60px rgba(201, 42, 93, 0.1), inset 0 1px 0 white !important;
}

.gl-library-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.gl-library-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-expo);
}

.gl-library-card:hover .gl-library-img-wrap img {
    transform: scale(1.06);
}

.gl-library-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 5, 9, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
}

.gl-library-card:hover .gl-library-img-overlay {
    opacity: 1;
}

.gl-play-btn {
    width: 54px; height: 54px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transform: scale(0.85);
    transition: transform 0.35s var(--ease-expo);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gl-library-card:hover .gl-play-btn { transform: scale(1); }

.gl-play-btn svg {
    width: 20px; height: 20px;
    color: var(--accent-primary);
    margin-left: 3px;
}

.gl-library-type-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

.gl-library-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gl-library-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
}

.gl-library-card-body p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.gl-library-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 42, 93, 0.07);
    margin-top: 0.5rem;
}

.gl-library-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.gl-library-author img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(201, 42, 93, 0.15);
}

.gl-library-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gl-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* -----------------------------------------
   EXPERT CONTRIBUTORS
----------------------------------------- */
.gl-experts-section {
    padding: var(--section-pad) 0;
    background: rgba(252, 245, 248, 0.5);
}

.gl-experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gl-expert-card {
    border-radius: 28px !important;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.4s var(--ease-expo) !important;
}

.gl-expert-card:hover { transform: translateY(-6px) !important; }

.gl-expert-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-expo);
}

.gl-expert-card:hover .gl-expert-img { transform: scale(1.05); }

.gl-expert-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gl-expert-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
}

.gl-expert-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gl-expert-info p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0.4rem 0 0.75rem;
}

.gl-expert-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gl-expert-tags span {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: rgba(201, 42, 93, 0.07);
    border: 1px solid rgba(201, 42, 93, 0.12);
    border-radius: 100px;
    color: var(--accent-primary);
}

/* -----------------------------------------
   HIDDEN CARD STATE (filter)
----------------------------------------- */
.gl-library-card.hidden {
    display: none;
}

/* -----------------------------------------
   RESPONSIVE
----------------------------------------- */
@media (max-width: 1100px) {
    .gl-experts-grid   { grid-template-columns: repeat(2, 1fr); }
    .gl-library-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .gl-hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .gl-phase-grid     { grid-template-columns: 1fr 1fr; }
    .gl-featured-card  { height: 400px; }
}

@media (max-width: 768px) {
    .gl-hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .gl-phase-grid     { grid-template-columns: 1fr; }
    .gl-library-grid   { grid-template-columns: 1fr; }
    .gl-experts-grid   { grid-template-columns: 1fr; }
    .gl-stats-inner    { flex-wrap: wrap; gap: 2rem; }
    .gl-stat-div       { display: none; }
    .gl-filter-section { top: 64px; }
}