/**
 * GZ Membership — Subscriptions / Pricing Page Stylesheet
 *
 * Styles for the public pricing page with three-column layout,
 * plan cards, feature lists, and responsive design.
 */

/* =================================================================
 *  CSS CUSTOM PROPERTIES
 * ================================================================= */

:root {
    --gz-noir: #0a090b;
    --gz-fond: #f9f9f9;
    --gz-rose: #ff1699;
    --gz-rose-hover: #e01485;
    --gz-cyan: #63d0ff;
    --gz-grey: #888888;
    --gz-text: #333333;
    --gz-text-light: #666666;
    --gz-border: #e0e0e0;
    --gz-radius: 16px;
    --gz-radius-sm: 8px;
    --gz-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --gz-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --gz-font-heading: 'Fugaz One', cursive;
    --gz-font-body: 'Abel', sans-serif;
    --gz-font-nav: 'Anton', sans-serif;
    --gz-transition: 0.25s ease;
}

/* =================================================================
 *  PRICING CONTAINER
 * ================================================================= */

.gz-pricing {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* Header */
.gz-pricing__header {
    text-align: center;
    margin-bottom: 48px;
}

.gz-pricing__main-title {
    font-family: var(--gz-font-heading);
    font-size: 36px;
    color: var(--gz-noir);
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.gz-pricing__subtitle {
    font-family: var(--gz-font-body);
    font-size: 18px;
    color: var(--gz-text-light);
    margin: 0;
    line-height: 1.5;
}

/* =================================================================
 *  PRICING GRID
 * ================================================================= */

.gz-pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* =================================================================
 *  PRICING CARD
 * ================================================================= */

.gz-pricing__card {
    background: #ffffff;
    border-radius: var(--gz-radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--gz-shadow-sm);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.gz-pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Popular card */
.gz-pricing__card--popular {
    border-color: var(--gz-rose);
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(255, 22, 153, 0.12);
    z-index: 1;
}

.gz-pricing__card--popular:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 22, 153, 0.18);
}

/* Popular badge */
.gz-pricing__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gz-rose);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-family: var(--gz-font-nav);
    font-size: 12px;
    letter-spacing: 1.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 22, 153, 0.3);
}

/* Title */
.gz-pricing__title {
    font-family: var(--gz-font-heading);
    font-size: 24px;
    color: var(--gz-noir);
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

/* Price */
.gz-pricing__price {
    font-family: var(--gz-font-heading);
    font-size: 48px;
    font-weight: normal;
    color: var(--gz-noir);
    margin: 0 0 4px;
    line-height: 1;
}

.gz-pricing__price small {
    font-size: 18px;
    font-family: var(--gz-font-body);
    color: var(--gz-grey);
    font-weight: 400;
}

/* Period */
.gz-pricing__period {
    font-family: var(--gz-font-body);
    font-size: 14px;
    color: var(--gz-grey);
    margin-bottom: 28px;
}

/* =================================================================
 *  FEATURE LIST
 * ================================================================= */

.gz-pricing__features {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 32px;
}

.gz-pricing__features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--gz-font-body);
    font-size: 15px;
    color: var(--gz-text);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.gz-pricing__features li:last-child {
    border-bottom: none;
}

.gz-pricing__features .included::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8faf0;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.gz-pricing__features .excluded::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f5f5f5;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.gz-pricing__features .excluded {
    color: #aaa;
}

/* =================================================================
 *  PRICING BUTTONS
 * ================================================================= */

.gz-pricing__card .gz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--gz-font-nav);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--gz-radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
    line-height: 1;
    width: 100%;
    padding: 14px 24px;
    box-sizing: border-box;
}

.gz-pricing__card .gz-btn--primary {
    background: var(--gz-rose);
    color: #ffffff;
}

.gz-pricing__card .gz-btn--primary:hover {
    background: var(--gz-rose-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 22, 153, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.gz-pricing__card .gz-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gz-pricing__card .gz-btn--outline {
    background: transparent;
    color: var(--gz-rose);
    border: 2px solid var(--gz-rose);
}

.gz-pricing__card .gz-btn--outline:hover {
    background: var(--gz-rose);
    color: #ffffff;
    text-decoration: none;
}

.gz-pricing__card .gz-btn--outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    color: var(--gz-rose);
    transform: none;
}

.gz-pricing__card .gz-btn--grey {
    background: var(--gz-grey);
    color: #ffffff;
}

.gz-pricing__card .gz-btn--grey:hover {
    background: #666;
    color: #ffffff;
    text-decoration: none;
}

.gz-pricing__card .gz-btn--grey:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #aaa;
    transform: none;
}

.gz-btn__text {
    display: inline;
}

.gz-btn__spinner {
    display: inline-flex;
    align-items: center;
}

.gz-spinner {
    animation: gz-spin 0.8s linear infinite;
}

@keyframes gz-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =================================================================
 *  COMPLETE MESSAGE
 * ================================================================= */

.gz-pricing__complete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--gz-font-body);
    font-size: 16px;
    color: #27ae60;
    margin-top: 32px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: var(--gz-radius-sm);
    border: 1px solid #bbf7d0;
}

.gz-pricing__current-info {
    text-align: center;
    font-family: var(--gz-font-body);
    font-size: 14px;
    color: var(--gz-grey);
    margin-top: 24px;
}

.gz-pricing__current-info strong {
    color: var(--gz-rose);
}

/* =================================================================
 *  TOAST (for subscriptions page)
 * ================================================================= */

.gz-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0a090b;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: var(--gz-font-body);
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.gz-toast.gz-toast--visible {
    transform: translateY(0);
    opacity: 1;
}

.gz-toast--success {
    border-left: 4px solid #27ae60;
}

.gz-toast--error {
    border-left: 4px solid #e74c3c;
}

.gz-toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* =================================================================
 *  RESPONSIVE — TABLET
 * ================================================================= */

@media (max-width: 900px) {
    .gz-pricing__grid {
        gap: 16px;
    }

    .gz-pricing__card {
        padding: 32px 24px;
    }

    .gz-pricing__price {
        font-size: 40px;
    }
}

/* =================================================================
 *  RESPONSIVE — MOBILE
 * ================================================================= */

@media (max-width: 768px) {
    .gz-pricing {
        padding: 40px 16px 60px;
    }

    .gz-pricing__main-title {
        font-size: 28px;
    }

    .gz-pricing__subtitle {
        font-size: 16px;
    }

    .gz-pricing__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Remove scale on popular card for mobile */
    .gz-pricing__card--popular {
        transform: none;
    }

    .gz-pricing__card--popular:hover {
        transform: translateY(-4px);
    }

    .gz-pricing__card {
        padding: 32px 24px;
    }

    .gz-pricing__price {
        font-size: 42px;
    }

    /* Stack the "complete" message */
    .gz-pricing__complete {
        flex-direction: column;
        text-align: center;
    }

    /* Toast */
    .gz-toast {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* =================================================================
 *  RESPONSIVE — SMALL MOBILE
 * ================================================================= */

@media (max-width: 768px) {
    /* Touch targets */
    .gz-pricing__card .gz-btn {
        min-height: 48px;
    }
}

@media (max-width: 400px) {
    .gz-pricing__header {
        margin-bottom: 32px;
    }

    .gz-pricing__main-title {
        font-size: 24px;
    }

    .gz-pricing__card {
        padding: 28px 20px;
    }

    .gz-pricing__price {
        font-size: 36px;
    }

    .gz-pricing__features li {
        font-size: 14px;
    }
}
