/*

 Theme Name:   GeneratePress Child

 Theme URI:    https://generatepress.com

 Description:  Default GeneratePress child theme

 Author:       Tom Usborne

 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/


/* Robins GLP Affiliate Pages */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --glp-bg: #f8fafc;
    --glp-card: #ffffff;
    --glp-border: #181e33;
    --glp-border-light: #e2e8f0;
    --glp-text: #1a1a1a;
    --glp-text-muted: #4b5563;
    --glp-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --glp-shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --glp-radius: 8px;
    --glp-radius-lg: 12px;
    --glp-accent: #181e33;
    --glp-accent-light: #e0e7ff;
    --glp-success: #16a34a;
    --glp-star: #f59e0b;
    --glp-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --glp-font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --glp-primary: #181e33;
    --glp-primary-dark: #0f1219;
    --glp-primary-light: #e0e7ff;
    --glp-hero-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.glp-affiliate-page {
    font-family: var(--glp-font-body);
    background: var(--glp-bg);
    color: var(--glp-text);
    line-height: 1.6;
}

.glp-affiliate-page, .glp-affiliate-page * {
    box-sizing: border-box;
}

body.glp-modal-open {
    overflow: hidden;
}

.glp-font--plus-jakarta {
    --glp-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --glp-font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Disclosure */
.glp-disclosure-banner {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #242424;
    font-size: 12px;
    padding: 8px 16px;
    text-align: center;
}

.glp-disclosure-link {
    background: none;
    border: none;
    color: #242424;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

/* ===== HERO SECTION ===== */
.glp-hero {
    padding: 10px 16px 10px;
    background: #cfe2fb;
}

.glp-hero__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 20px 0px;
    text-align: center;
}

.glp-hero__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.glp-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--glp-primary-light);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--glp-primary);
}

.glp-state svg {
    width: 14px;
    height: 14px;
}

.glp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 18px;
    border-radius: 999px;
    background: rgb(211, 212, 255);
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.glp-hero__badge svg {
    width: 16px;
    height: 16px;
}

.glp-hero__title {
    font-family: var(--glp-font-heading);
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    color: var(--glp-text);
    margin: 10px;
    line-height: 1.1;
}

.glp-hero__highlight {
    background: var(--glp-hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glp-hero__subtitle {
    font-size: 16px;
    color: #3a3a3a;
    margin: 0;
    max-width: 640px;
    line-height: 1.5;
}

/* CTA link */
.glp-hero__cta {
    padding-top: 4px;
}

.glp-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.glp-hero__link svg {
    width: 20px;
    height: 20px;
    animation: bounceDown 1.5s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.glp-hero__link:hover {
    gap: 12px;
}

/* Trust icons */
.glp-hero__icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
    padding: 15px 20px 0;
}

.glp-hero__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.glp-hero__icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glp-hero__icon-badge svg {
    width: 18px;
    height: 18px;
}

.glp-hero__icon-badge--blue { background: #c8d8ed; color: #2563eb; }
.glp-hero__icon-badge--green { background: #c8e1d0; color: #16a34a; }
.glp-hero__icon-badge--purple { background: #ded1ed; color: #9333ea; }

.glp-hero__icon-title {
    font-weight: 600;
    color: var(--glp-text);
    font-size: 12px;
}

.glp-hero__icon-text {
    font-size: 11px;
    color: var(--glp-text-muted);
}

/* ===== LISTINGS ===== */
.glp-listings {
    padding: 0px 0 24px;
}

/* ===== CARD DESIGN ===== */
.glp-card {
    background: var(--glp-card);
    border: 2px solid #c0c5d0;
    border-radius: var(--glp-radius-lg);
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glp-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #9ca3af;
}

.glp-card--featured {
    border: 2px solid #181e337d;
}

/* Badge positioning - above card content */
.glp-card__badge {
    display: inline-block;
    margin: 10px 0 0 10px;
}

.glp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glp-badge--best {
    background: var(--glp-primary);
    color: #fff;
}

.glp-badge--popular {
    background: #f97316;
    color: #fff;
}

.glp-badge--choice {
    background: #8b5cf6;
    color: #fff;
}

/* Card grid layout */
.glp-card__grid {
    display: grid;
    grid-template-columns: 130px 1fr 165px;
    gap: 12px;
    padding: 10px;
    align-items: start;
}

/* Left column: rank + logo */
.glp-card__logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.glp-rank {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid #c0c5d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--glp-font-heading);
    font-size: 18px;
    font-weight: 700;
    background: #fff;
    color: var(--glp-text);
}

.glp-card--featured .glp-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: #fff;
}

.glp-card__logo {
    width: 110px;
    height: 48px;
    object-fit: contain;
}

/* Middle column */
.glp-card__mid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glp-card__name {
    font-size: 23px;
    font-weight: 700;
    font-family: var(--glp-font-heading);
    color: var(--glp-text);
    margin-bottom: 2px;
}

.glp-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.glp-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 3px 0;
    font-size: 14px;
    color: #000000;
    line-height: 1.4;
}

.glp-feature svg {
    width: 16px;
    height: 16px;
    color: var(--glp-success);
    margin-top: 2px;
    flex-shrink: 0;
}

.glp-feature--highlight {
    color: #16a34a;
    font-weight: 600;
}

.glp-coupon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}

/* Pills */
.glp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.glp-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #c0c5d0;
    color: #000000;
}

/* Starting price - HIDDEN */
.glp-starting {
    display: none;
}

/* Right column */
.glp-card__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border-radius: var(--glp-radius);
    border: 1px solid #e2e8f0;
}

.glp-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.glp-score p {
    margin: 0;
}

.glp-score__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #16a34a;
    margin-bottom: 2px;
}

.glp-score span {
    font-size: 34px;
    font-weight: 700;
    color: var(--glp-primary);
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
}

.glp-stars {
    display: flex;
    gap: 1px;
    margin-top: 0;
}

.glp-stars svg {
    width: 14px;
    height: 14px;
}

.glp-stars .star-filled { color: #f59e0b; }
.glp-stars .star-empty { color: #e5e7eb; }

.glp-reviews {
    font-size: 11px;
    color: var(--glp-text-muted);
    margin-top: 2px;
    line-height: 1.2;
}

.glp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: var(--glp-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--glp-radius);
    transition: background 0.2s ease;
    margin-top: 10px;
}

.glp-cta svg {
    width: 15px;
    height: 15px;
}

.glp-cta:hover {
    background: var(--glp-primary-dark);
}

.glp-cta__subtext {
    font-size: 11px;
    color: var(--glp-text-muted);
}

/* Testimonial */
.glp-testimonial {
    margin-top: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border-left: 3px solid var(--glp-primary);
    border-radius: 4px;
    font-size: 13px;
    color: var(--glp-text-muted);
    font-style: italic;
}

.glp-testimonial__author {
    display: block;
    font-weight: 600;
    color: var(--glp-text);
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
}

/* ===== TOP PICK SECTION ===== */
.glp-top-pick {
    margin: 16px 0;
    padding: 14px 18px;
    border-radius: var(--glp-radius-lg);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid var(--glp-primary);
}

.glp-top-pick__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--glp-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.glp-top-pick__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.glp-top-pick__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glp-top-pick__logo {
    width: 90px;
    height: 36px;
    object-fit: contain;
}

.glp-top-pick__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--glp-text);
}

.glp-top-pick__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--glp-text-muted);
    margin-top: 4px;
}

.glp-top-pick__cta {
    padding: 10px 18px;
    border-radius: var(--glp-radius);
    background: var(--glp-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.glp-top-pick__cta:hover {
    background: var(--glp-primary-dark);
}

/* ===== INFO SECTION ===== */
.glp-divider {
    height: 1px;
    background: #d1d5db;
    margin: 20px 0;
}

.glp-info h2 {
    font-family: var(--glp-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--glp-text);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--glp-primary);
}

.glp-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--glp-text);
    margin: 16px 0 8px;
}

.glp-info p {
    font-size: 15px;
    color: var(--glp-text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.glp-info ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.glp-info ul li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 15px;
    line-height: 1.6;
}

.glp-info ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    background: var(--glp-primary);
    border-radius: 999px;
}

/* Recommendation box */
.glp-rec {
    background: #f0fdf4;
    border: 2px solid var(--glp-primary);
    border-radius: var(--glp-radius-lg);
    padding: 14px;
    margin: 20px 0;
    text-align: center;
}

.glp-rec__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--glp-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.glp-rec__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.glp-rec__logo {
    width: 90px;
    height: 36px;
    object-fit: contain;
}

.glp-rec__info {
    text-align: left;
}

.glp-rec__name {
    font-weight: 700;
    font-size: 15px;
}

.glp-rec__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--glp-text-muted);
    margin-top: 4px;
}

.glp-rec__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--glp-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--glp-radius);
}

.glp-rec__cta svg {
    width: 14px;
    height: 14px;
}

/* Sources */
.glp-sources {
    background: var(--glp-card);
    border: 1px solid #c0c5d0;
    border-radius: var(--glp-radius-lg);
    padding: 14px;
    margin: 20px 0;
}

.glp-sources h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.glp-sources ul {
    font-size: 12px;
    color: var(--glp-text-muted);
    line-height: 1.8;
}

/* Disclaimer */
.glp-disclaimer {
    background: var(--glp-card);
    border: 1px solid #c0c5d0;
    border-radius: var(--glp-radius-lg);
    padding: 12px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--glp-text-muted);
}

.glp-disclaimer h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--glp-text);
}

/* Floating bar (mobile only) */
.glp-floating {
    display: none;
}

.glp-floating.is-visible {
    transform: translateY(0);
}

.glp-floating__logo {
    width: 48px;
    height: 20px;
    object-fit: contain;
}

.glp-floating__info {
    flex: 1;
    min-width: 0;
}

.glp-floating__name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glp-floating__rating {
    font-size: 11px;
    color: var(--glp-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.glp-floating__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--glp-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--glp-radius);
}

.glp-floating__close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--glp-text-muted);
}

/* Modal */
.glp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 20px;
}

.glp-modal.is-active {
    display: flex;
}

.glp-modal__content {
    background: #fff;
    border-radius: var(--glp-radius-lg);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.glp-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.glp-modal__body {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--glp-text-muted);
    line-height: 1.7;
}

.glp-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--glp-text-muted);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 800px) {
    /* ===== HERO SECTION ===== */
    .glp-hero__content {
        padding: 8px 10px 8px;
    }

    .glp-hero {
        padding: 5px 16px 5px;
    }
    
    .glp-hero__panel {
        gap: 1px;
    }

    .glp-hero__title {
        font-size: 35px;
    }

    .glp-hero__link {
        font-size: 14px;
    }

    .glp-hero__subtitle {
        font-size: 14px;
    }

    /* Icons in a single horizontal row */
    .glp-hero__icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 12px 8px 0;
    }

    .glp-hero__icon {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .glp-hero__icon-badge {
        width:40px;
        height:40px;
    }

    .glp-hero__icon-badge svg {
        width: 14px;
        height: 14px;
    }

    .glp-hero__icon-title {
        font-size: 13px;
    }

    .glp-hero__icon-text {
        font-size: 11px;
    }

    /* ===== LISTING CARDS ===== */
    .glp-card {
        margin-bottom: 10px;
    }

    .glp-card__badge {
        margin: 8px 0 0 8px;
    }

    /* Use display:contents to flatten structure and rearrange via grid */
    .glp-card__grid {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        gap: 10px 12px;
        padding: 12px;
    }

    .glp-card__logo-col,
    .glp-card__mid {
        display: contents;
    }

    /* Row 1: Rank + Name */
    .glp-rank {
        grid-row: 1;
        grid-column: 1;
        width: 32px;
        height: 32px;
        font-size: 15px;
        align-self: center;
        justify-self: start;
    }

    .glp-card__name {
        grid-row: 1;
        grid-column: 2;
        font-size: 23px;
        align-self: center;
        justify-self: start;
        line-height: 1.2;
    }

    /* Row 2: Logo + Features */
    .glp-card__logo {
        grid-row: 2;
        grid-column: 1;
        width: 120px;
        height: 64px;
        align-self: center;
    }

    .glp-features {
        grid-row: 2;
        grid-column: 2;
        align-self: center;
    }

    .glp-feature {
        font-size: 14px;
        padding: 3px 0;
    }

    .glp-feature svg {
        width: 15px;
        height: 15px;
    }

    /* Row 3: Pills (centered, full width) */
    .glp-pill-row {
        grid-row: 3;
        grid-column: 1 / -1;
        gap: 6px;
        justify-content: center;
    }

    .glp-pill {
        padding: 4px 10px;
        font-size: 12px;
    }

    /* Row 4: Testimonial (full width) */
    .glp-testimonial {
        grid-row: 4;
        grid-column: 1 / -1;
    }

    .glp-testimonial__text {
        font-size: 13px;
    }

    /* Row 5: Rating + CTA side by side (vertically centered) */
    .glp-card__right {
        grid-row: 5;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 4px;
        align-items: start;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    .glp-score {
        grid-column: 1;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        background: #f8fafc;
        border-radius: var(--glp-radius);
        border: 1px solid #e2e8f0;
        padding: 8px 10px;
        align-self: center;
    }

    .glp-score__label {
        font-size: 12px;
    }

    .glp-score span {
        font-size: 24px;
    }

    .glp-stars svg {
        width: 15px;
        height: 15px;
    }

    .glp-reviews {
        display: block;
        font-size: 10px;
        margin-top: 2px;
        color: var(--glp-text-muted);
    }

    .glp-cta {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        align-self: start;
    }

    /* Row 6: Subtext under button */
    .glp-cta__subtext {
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
        text-align: center;
        margin-top: -10px;
    }

    /* ===== FLOATING BAR ===== */
    .glp-floating {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glp-card);
        padding: 10px 14px;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
        gap: 10px;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        z-index: 50;
        align-items: center;
    }

    /* ===== RECOMMENDATION BOX ===== */
    .glp-rec__inner {
        flex-direction: column;
        gap: 12px;
    }

    .glp-rec__info {
        text-align: center;
    }

    /* ===== TOP PICK ===== */
    .glp-top-pick {
        padding: 12px;
    }

    .glp-top-pick__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .glp-top-pick__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .glp-top-pick__name {
        font-size: 15px;
    }

    /* ===== INFO SECTION ===== */
    .glp-info h2 {
        font-size: 19px;
    }

    .glp-info h3 {
        font-size: 16px;
    }

    .glp-info p,
    .glp-info ul li {
        font-size: 14px;
    }

    /* ===== DISCLOSURE ===== */
    .glp-disclosure-banner {
        font-size: 10px;
    }

}
