/* Headless Shop Connection - Paywall-spezifische Styles */

/* ==========================================================================
   PAYWALL CONTAINER
   ========================================================================== */

.headless-shop-paywall-container {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   PAYWALL TEASER SECTION
   ========================================================================== */

.paywall-teaser {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.paywall-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 5;
}

/* ==========================================================================
   PAYWALL BARRIER
   ========================================================================== */

.paywall-barrier {
    position: relative;
    margin-top: -3rem;
    z-index: 10;
    padding: 3rem 0;
}

.paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 1) 80%);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   PAYWALL MESSAGE BOX
   ========================================================================== */

.paywall-message-box {
    position: relative;
    z-index: 2;
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: paywall_fade_in_up 0.6s ease-out;
    background-image:
            radial-gradient(circle at 20% 20%, rgba(0, 115, 170, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 115, 170, 0.03) 0%, transparent 50%);
}

@keyframes paywall_fade_in_up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   PAYWALL CONTENT ELEMENTS
   ========================================================================== */

.paywall-title {
    font-family: var(--e-global-typography-286a92d-font-family);
    color: var(--e-global-color-primary, #0073aa);
    margin: 0 0 1.5rem 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.paywall-message {
    font-family: var(--e-global-typography-5947517-font-family, inherit);
    color: #000000;
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0 0 2.5rem 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ==========================================================================
   PAYWALL ACTIONS
   ========================================================================== */

.paywall-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.paywall-login-button {
    background-color: var(--e-global-color-text, #000000) !important;
    border-color: var(--e-global-color-text, #000000) !important;
    color: #F6F6F6 !important;
}

.paywall-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
    transition: left 0.5s ease;
}

.paywall-login-button:hover {
    background-color: #f6f6f6 !important;
    color: #000 !important;
    border-color: #f6f6f6 !important;
}

.paywall-login-button:hover::before {
    left: 100%;
}

.paywall-login-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.paywall-buy-now-button a,
.paywall-login-button {
    font-family: var(--e-global-typography-ffc3ea7-font-family, inherit) !important;
    letter-spacing: 1px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    padding: 12px 24px !important;
    border-radius: 3px;
    line-height: 1;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.paywall-buy-now-button a {
    background-color: var(--e-global-color-accent, #DFFD31) !important;
    fill: var(--e-global-color-accent, #DFFD31);
    color: var(--e-global-color-text, #000000) !important;
    border-color: var(--e-global-color-accent, #DFFD31) !important;
}

.paywall-buy-now-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wp--preset--color--primary, #0073aa);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.paywall-buy-now-button a:hover {
    border-color: var(--e-global-color-accent, #DFFD31) !important;
    background-color: #000 !important;
    color: var(--e-global-color-accent, #DFFD31) !important;
}

.paywall-shop-link:hover::before {
    transform: translateX(0);
}

/* ==========================================================================
   JAVASCRIPT-GENERATED ELEMENTS
   ========================================================================== */

@keyframes paywall-ripple {
    to { transform: scale(4); opacity: 0; }
}

.paywall-button-loading {
    opacity: 0.7;
    pointer-events: none;
}

.paywall-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.paywall-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.paywall-sticky-cta.visible {
    transform: translateY(0);
}

.paywall-sticky-login-button {
    width: 100%;
    padding: 16px;
    background: var(--wp--preset--color--primary, #0073aa);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
}

@media (min-width: 769px) {
    .paywall-sticky-cta {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .paywall-message-box {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .paywall-title {
        font-size: 1.5rem;
    }

    .paywall-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .paywall-actions {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .paywall-login-button,
    .paywall-shop-link {
        width: 100% !important;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .paywall-message-box {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .paywall-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .paywall-message {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .paywall-login-button,
    .paywall-shop-link {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}
