/**
 * Paywall Styles
 *
 * Following Xtra Design System (Light Theme)
 * - Primary: #3B6EA5 (brand blue)
 * - Accent: #E87722 (orange)
 * - Text: #1E3A5F (navy)
 * - Backgrounds: #FFFFFF, #F8FAFC
 *
 * Note: Login form styling is handled by the Magic Link block.
 */

/* ========================================
   Layout
   ======================================== */

main.xtra-paywall {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem 1rem;
}

.xtra-paywall .xtra-paywall__card {
    display: flex;
    flex-direction: column;
}

/* ========================================
   Banner
   ======================================== */

.xtra-paywall .xtra-paywall__banner {
    background-color: #3B6EA5;
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    border-radius: 6px;
}

/* ========================================
   Featured Image
   ======================================== */

.xtra-paywall .xtra-paywall__image {
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.xtra-paywall .xtra-paywall__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ========================================
   Content
   ======================================== */

.xtra-paywall .xtra-paywall__content {
    margin-bottom: 1.5rem;
}

.xtra-paywall h1.xtra-paywall__title {
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    color: #1E3A5F;
}

.xtra-paywall .xtra-paywall__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #4A6580;
    margin-bottom: 1rem;
}

.xtra-paywall .xtra-paywall__author::after {
    content: "\00b7";
    margin: 0 0.5rem;
}

.xtra-paywall .xtra-paywall__excerpt {
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1E3A5F;
}

/* ========================================
   CTA Section - Card Style
   ======================================== */

.xtra-paywall .xtra-paywall__cta {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.xtra-paywall .xtra-paywall__cta-message {
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #4A6580;
    margin: 0 0 1.5rem 0;
    text-align: center;
    line-height: 1.5;
}

/* Subscribe Button (for logged-in non-members) */
.xtra-paywall a.xtra-paywall__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #3B6EA5;
    color: #FFFFFF;
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.xtra-paywall a.xtra-paywall__button:hover {
    background-color: #2C5282;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.xtra-paywall .xtra-paywall__button-arrow {
    flex-shrink: 0;
}

/* ========================================
   Magic Link Block Integration

   The Magic Link block renders inside the CTA.
   These styles ensure it fits well in the paywall context.
   ======================================== */

.xtra-paywall .xtra-magic-link-form {
    /* Remove default block margins/padding in paywall context */
    margin: 0;
    padding: 0;
}

/* Remove card styling from Magic Link in paywall (already in a card) */
.xtra-paywall .xtra-magic-link__container {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 600px) {
    main.xtra-paywall {
        padding: 1rem 2rem 3rem 2rem;
    }

    .xtra-paywall .xtra-paywall__cta {
        padding: 2.5rem;
    }
}
