/**
 * Profile points: one stat per point type (VOA, Premium, etc.)
 * Rendered on a new line below the main stats (courses, completed, certificates).
 */

/* ── Sprite sizing inside profile ── */
.ld-profile-stat-points .gg-gem,
.ld-profile-stat-points .gg-coin,
.ld-profile-stat-points .gg-fire,
.ld-profile-stat-rank .gg-gem,
.ld-profile-stat-rank .gg-coin,
.ld-profile-stat-rank .gg-fire {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.18em;
    flex-shrink: 0;
}

.ld-profile-stat-points .gg-gem--voa,
.ld-profile-stat-rank .gg-gem--voa { color: var(--notes-primary-color, #660C1B); }
.ld-profile-stat-points .gg-coin,
.ld-profile-stat-rank .gg-coin { color: var(--notes-primary-color, #660C1B); }
.ld-profile-stat-points .gg-gem--vip,
.ld-profile-stat-rank .gg-gem--vip { color: var(--gg-gold, #f4a900); }
.ld-profile-stat-points .gg-fire__outer,
.ld-profile-stat-rank .gg-fire__outer { fill: var(--gg-fire-outer, #ff6d00); }
.ld-profile-stat-points .gg-fire__mid,
.ld-profile-stat-rank .gg-fire__mid   { fill: var(--gg-fire-mid,   #ff9800); }
.ld-profile-stat-points .gg-fire__core,
.ld-profile-stat-rank .gg-fire__core  { fill: var(--gg-fire-core,  #fff176); }
.gg-gem__sparkle{ opacity: .85; }

@media (prefers-reduced-motion: reduce) {
    .ld-profile-stat-rank,
    .purchased-carousel-btn,
    .purchased-carousel-media {
        transition: none !important;
        transform: none !important;
    }
}

/* Stats row: allow wrapping so point bubbles can sit on the next line */
.learndash-wrapper .ld-profile-summary .ld-profile-stats {
    flex-wrap: wrap;
}

/* Remove the trailing vertical line after the last main stat */
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat:has(+ .ld-profile-stat-line-break) {
    border-right: none;
}

/* Invisible full-width "break" so point stats start on a new line */
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-line-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    visibility: hidden;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-line-break strong,
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-line-break span {
    display: none;
}

/* ── Point-type stat cards (VOA, Premium, Sorozat) ── */
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 14px 20px;
    margin: 16px 4px 0;
    border-radius: var(--gg-radius, 14px);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    border-right: none;
    transition:
        box-shadow var(--gg-dur-fast, .18s) ease,
        transform  var(--gg-dur-fast, .18s) var(--gg-ease, cubic-bezier(0.22,1,0.36,1));
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points:hover {
    box-shadow: var(--gg-shadow-sm, 0 2px 8px rgba(0,0,0,.12));
    transform: translateY(-2px);
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points:first-of-type {
    margin-left: 0;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,.75);
}

/* Light theme override */
.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-points,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-points {
    border-color: rgba(0,0,0,.08);
    background: rgba(0,0,0,.03);
}

.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-points strong,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-points strong {
    color: #1d2327;
}

.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-points span,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-points span {
    color: #50575e;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-points + .ld-profile-stat.ld-profile-stat-points {
    border-left: 1px solid rgba(255,255,255,.12);
}

.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-points + .ld-profile-stat.ld-profile-stat-points,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-points + .ld-profile-stat.ld-profile-stat-points {
    border-left-color: rgba(0,0,0,.08);
}

/* ── Rank pills ── */
.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    margin: 14px 10px 0;
    border-radius: var(--gg-radius-pill, 999px);
    border: none;
    background: rgba(255,255,255,.12);
    box-shadow: var(--gg-shadow-sm, 0 2px 8px rgba(0,0,0,.08));
    transition:
        box-shadow var(--gg-dur-fast, .18s) ease,
        transform  var(--gg-dur-fast, .18s) var(--gg-spring, cubic-bezier(0.34,1.56,0.64,1));
    cursor: default;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank:hover {
    box-shadow: var(--gg-shadow, 0 4px 16px rgba(0,0,0,.15));
    transform: translateY(-2px) scale(1.03);
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank strong {
    display: inline;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.01em;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank span {
    display: inline;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255,255,255,.65);
    line-height: 1;
}

/* Light theme rank pills */
.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank {
    background: rgba(0,0,0,.06);
}

.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank strong,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank strong {
    color: #1d2327;
}

.learndash-wrapper .ld-profile-summary.ld-profile-summary--light .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank span,
.learndash-wrapper .ld-profile-card .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank span {
    color: #50575e;
}

/* Mobile */
@media (max-width: 640px) {
    .learndash-wrapper #ld-profile .ld-profile-stats .ld-profile-stat.ld-profile-stat-points {
        width: calc(50% - 0.5em);
        min-width: 0;
        margin: 0 0 1em 0;
        padding: 12px 14px;
        box-sizing: border-box;
    }

    .learndash-wrapper #ld-profile .ld-profile-stats .ld-profile-stat.ld-profile-stat-points strong {
        font-size: 24px;
    }

    .learndash-wrapper #ld-profile .ld-profile-stats .ld-profile-stat.ld-profile-stat-rank {
        padding: 5px 12px;
    }
}

/* ══════════════════════════════════════
   Purchased products carousel
══════════════════════════════════════ */

.purchased-carousel-section {
    margin: 24px 0 0;
    padding: 22px;
    border-radius: var(--gg-radius, 14px);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(102,12,27,.10) 0%, rgba(255,255,255,.85) 70%),
        linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--gg-shadow, 0 4px 16px rgba(17,24,39,.10));
    overflow: hidden;
}

.purchased-carousel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.purchased-carousel-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    letter-spacing: -0.01em;
}

.purchased-carousel-nav {
    display: flex;
    gap: 6px;
}

.purchased-carousel-prev,
.purchased-carousel-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--gg-radius-pill, 999px);
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #1d2327;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background var(--gg-dur-fast, .18s) ease,
        transform  var(--gg-dur-fast, .18s) var(--gg-spring, cubic-bezier(0.34,1.56,0.64,1));
    padding: 0;
    line-height: 1;
}

.purchased-carousel-prev:hover,
.purchased-carousel-next:hover {
    background: #f3f4f6;
    border-color: rgba(0,0,0,.2);
    transform: scale(1.08);
}

.purchased-carousel-prev:disabled,
.purchased-carousel-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.purchased-carousel-track-wrapper {
    overflow: hidden;
}

.purchased-carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.purchased-carousel-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Rounded + shadow + hover lift on media thumbnails */
.purchased-carousel-media {
    border-radius: var(--gg-radius, 14px);
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gg-shadow-sm, 0 2px 8px rgba(0,0,0,.07));
    transition:
        box-shadow var(--gg-dur-fast, .18s) ease,
        transform  var(--gg-dur-fast, .18s) var(--gg-ease, cubic-bezier(0.22,1,0.36,1));
}

.purchased-carousel-slide:hover .purchased-carousel-media {
    box-shadow: var(--gg-shadow, 0 4px 16px rgba(0,0,0,.14));
    transform: translateY(-3px);
}

.purchased-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.purchased-carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.purchased-carousel-placeholder svg {
    width: 50%;
    height: auto;
    opacity: 0.5;
}

.purchased-carousel-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 650;
    color: #1d2327;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.purchased-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 7px 16px;
    border-radius: var(--gg-radius-sm, 10px);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #8b1227 0%, #660c1b 72%, #580917 100%);
    border: 1px solid rgba(77,6,17,.75);
    text-decoration: none;
    transition:
        transform var(--gg-dur-fast, .18s) var(--gg-spring, cubic-bezier(0.34,1.56,0.64,1)),
        box-shadow var(--gg-dur-fast, .18s) ease;
    box-shadow: 0 4px 12px rgba(102,12,27,.25);
    align-self: flex-start;
}

.purchased-carousel-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 20px rgba(102,12,27,.35);
    color: #fff;
}

@media (max-width: 767px) {
    .purchased-carousel-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 479px) {
    .purchased-carousel-section {
        padding: 16px;
        border-radius: var(--gg-radius-sm, 10px);
    }
    .purchased-carousel-slide {
        flex-basis: 100%;
    }
}
