/* UNN Hub Content Gate Styles */

.unn-gate-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.unn-content-teaser {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
}

.unn-content-teaser p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.unn-content-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
    pointer-events: none;
}

.unn-content-gate {
    position: relative;
    text-align: center;
    padding: 0 16px;
    margin-top: 0;
}

.unn-gate-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px 40px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(10, 36, 99, 0.06);
}

.unn-gate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #0a2463;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.unn-gate-icon svg {
    color: #ffffff;
    width: 28px;
    height: 28px;
}

.unn-gate-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0a2463;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.unn-gate-card > p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.unn-gate-login-btn {
    display: inline-block;
    background: #0a2463;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.2);
    letter-spacing: 0.01em;
}

.unn-gate-login-btn:hover {
    background: #081d4f;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(10, 36, 99, 0.3);
    transform: translateY(-1px);
}

.unn-gate-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
}

.unn-gate-divider::before,
.unn-gate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.unn-gate-divider span {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unn-gate-signup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #94a3b8;
    margin: 0 !important;
}

.unn-gate-signup a {
    color: #0a2463;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.unn-gate-signup a:hover {
    color: #8b0000;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .unn-content-teaser {
        max-height: 120px;
        padding: 0 12px;
    }

    .unn-content-teaser p {
        font-size: 14px;
    }

    .unn-gate-card {
        padding: 36px 24px 32px;
        border-radius: 12px;
        margin: 0 4px;
    }

    .unn-gate-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .unn-gate-icon svg {
        width: 24px;
        height: 24px;
    }

    .unn-gate-card h3 {
        font-size: 18px;
    }

    .unn-gate-login-btn {
        padding: 12px 32px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

/* Theme compatibility — match site background */
.unn-content-teaser::after {
    background: linear-gradient(to bottom, transparent 0%, var(--wp--preset--color--background, #ffffff) 100%);
}
