﻿/* DrawAndGuessWeb Content premium premium_cards.css */

:root {
    --brand: #1eb9ec;
    --brand-2: #12a7d6;
    --ink: #0f2a35;
    --ink-2: #4c6a77;
    --bg: #f7fbfd;
    --card: #ffffff;
    --line: #e3eef2;
    --ok: #1db574;
    --danger: #e05656;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 8px 24px rgba(7, 50, 72, .08);
    --maxw: 1120px;
    --hdr: 72px;
}

/* New pricing cards (personal/classroom/business) */
.pricing-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .01em;
    position: relative;
    box-sizing:border-box;
    text-transform:none!important;
}

#layoutCenterer .pricing-card {
    max-width: 300px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);
}
.pricing-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

    .pricing-card.featured {
        border: 2px solid #22c55e;
        box-shadow: 0 12px 28px rgba(34,197,94,.15);
        position: relative;
    }

    .pricing-card .pc-badge {
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: #22c55e;
        color: #fff;
        font-weight: 800;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

.pc-header {
    text-align: center;
    margin-bottom: 8px;
}

.pc-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

    .pc-title.pc-blue {
        color: #3b82f6;
    }

    .pc-title.pc-green {
        color: #22c55e;
    }
    /* Business color refresh (replace red with professional sky blue) */
    .pc-title.pc-red {
        color: #0ea5e9;
    }
/* Emphasize audience below title */
.pc-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 700;
    margin: 8px auto 0;
    border: 1px solid;
    width: fit-content;
    font-size:16px;
}

.pc-title.pc-blue + .pc-sub {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.pc-title.pc-green + .pc-sub {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
/* Update business sub badge colors to match new scheme */
.pc-title.pc-red + .pc-sub {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.pc-options {
    display: grid;
    gap: 8px;
    margin: 8px 0 8px;
}

.plan-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: .2s ease;
    /* subtle default bg on hover for better affordance */
    background: #fff;
}

    .plan-option .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }

    .plan-option h4 {
        margin: 0;
        font-size: 14px;
        line-height: 1.2;
    }

    .plan-option p {
        margin: 4px 0 0;
        font-size: 12px;
        line-height: 1.35;
        color: var(--ink-2);
    }



    .plan-option:hover {
        border-color: #c7d2fe;
        background: #f9fafb;
    }
    .plan-option.active {
        box-shadow: 0 0 0 2px var(--tw-shadow-color);
        border-color: var(--tw-border-color);
        background: #f9fafb; /* neutral fallback */
    }
    .plan-option.social.active {
        --tw-shadow-color: #3b82f6;
        --tw-border-color: #3b82f6;
        background: #eff6ff; /* light blue */
    }

    .plan-option.classroom.active {
        --tw-shadow-color: #22c55e;
        --tw-border-color: #22c55e;
        background: #ecfdf5; /* light green */
    }

    /* Update business active border/shadow color */
    .plan-option.business.active {
        --tw-shadow-color: #0ea5e9;
        --tw-border-color: #0ea5e9;
        background: #e0f2fe; /* light sky blue */
    }


.label {
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

    .label.purple {
        color: #5b21b6;
        background: #ede9fe;
    }

    .label.teal {
        color: #115e59;
        background: #ccfbf1;
    }

    .label.yellow {
        color: #78350f;
        background: #fef3c7;
    }

.pc-price {
    text-align: center;
    margin: 6px 0;
    min-height: 64px;
}

    .pc-price .amount {
        font-size: 30px;
        font-weight: 900;
        color: #111827;
    }

    .pc-price .billing {
        font-size: 12px;
        color: #6b7280;
        height: 16px;
    }

.pill.info {
    font-size: 12px;
    color: #075985;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 6px 12px;
    margin: 8px auto 0;
    width: fit-content;
}

.pc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    min-height: 120px;
    color: #374151;
}

    .pc-features li {
        position: relative;
        padding-left: 1rem;
        margin-bottom: .35rem;
        line-height: 1.25;
    }

        .pc-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            font-weight: 700;
        }

.social-list li::before {
    color: #3b82f6;
}

.classroom-list li::before {
    color: #22c55e;
}
/* Update business features check color */
.business-list li::before {
    color: #0ea5e9;
}

.pc-cta {
    display: block;
    text-align: center;
    font-weight: 700;
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    text-decoration:none;
}

    .pc-cta.pc-blue {
        background: #3b82f6;
    }

    .pc-cta.pc-green {
        background: #22c55e;
    }
    /* Update business CTA color */
    .pc-cta.pc-red {
        background: #0ea5e9;
    }

@media (max-width:700px) {
    .pricing-card {
        max-width: 100%;
    }
}

/* New cards amount (pc-price) discount styling */
.pc-price .amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

    .pc-price .amount .amount-original {
        color: var(--danger);
        text-decoration: line-through;
        font-weight: 800;
        font-size: 14px;
        opacity: .95;
        margin-bottom: 2px;
    }

    .pc-price .amount .amount-discounted {
        color: var(--ok);
        font-weight: 900;
    }

.pricing-cards .pc-options-label {
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--ink-2);
    margin: 4px 0 6px;
    font-weight: 600;
    text-align:left;
    margin-bottom:0px;
}

@media (max-width: 520px) {
    .pricing-cards .pc-options-label {
        margin-top: 8px;
        
    }
}


/* --- Premium Popup Tabs (Plans) --- */
#premiumPlansPopup .plans-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
#premiumPlansPopup .plans-tabs::-webkit-scrollbar { display: none; }
#premiumPlansPopup .plans-tabs { scrollbar-width: none; }

#premiumPlansPopup .plans-eyebrow {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    margin: 20px 0 6px 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
}

#premiumPlansPopup .plans-tabs .tab {
    flex: 0 0 auto; /* single row by default; will wrap on mobile */
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.18s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
}
#premiumPlansPopup .plans-tabs .tab:hover { background: rgba(255, 255, 255, 0.14); }
#premiumPlansPopup .plans-tabs .tab.active {
  background: #fff;
  color: #062f3b;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
#premiumPlansPopup .plans-tabs .tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* Visual icons per tab (subtle cues) */
#premiumPlansPopup .plans-tabs .tab::before {
  display: inline-block;
  margin-right: 6px;
}
#premiumPlansPopup .plans-tabs .tab[data-tab="solo"]::before { content: "🎮"; }
#premiumPlansPopup .plans-tabs .tab[data-tab="classroom"]::before { content: "📚"; }
#premiumPlansPopup .plans-tabs .tab[data-tab="business"]::before { content: "🏢"; }

#premiumPlansPopup .tab-panels { margin-top: 10px; margin-bottom:10px; }
#premiumPlansPopup .tab-panel.hidden { display: none; }

#premiumPlansPopup h3.plansTitle {
    color: gold;
    font-size: 28px;
}

/* Mobile: ensure tabs fit and are fully visible */
@media (max-width: 700px) {
  #premiumPlansPopup .plans-tabs {
    flex-wrap: wrap;                 /* allow wrapping to multiple rows */
    gap: 8px;
    overflow-x: visible;             /* no horizontal clip when wrapping */
  }
  #premiumPlansPopup .plans-tabs .tab {
    flex: 1 1 calc(33.333% - 8px);  /* three columns */
    padding: 7px 10px;
    font-size: 12px;
    white-space: normal;             /* allow label to wrap */
  }
}

/* Very narrow phones: use two columns and hide emojis to save space */
@media (max-width: 420px) {
  #premiumPlansPopup .plans-tabs {
    gap: 6px;
  }
  #premiumPlansPopup .plans-tabs .tab {
    flex: 1 1 calc(50% - 6px);      /* two columns */
    padding: 6px 8px;
    font-size: 11.5px;
  }
  #premiumPlansPopup .plans-tabs .tab::before { display: none; }
}

/* Ultra small devices */
@media (max-width: 340px) {
  #premiumPlansPopup .plans-tabs .tab {
    flex: 1 1 100%;                  /* stack vertically if needed */
    font-size: 11px;
    padding: 6px 8px;
  }
}