/* ═══════════════════════════════════════════════
   Q Sine Blog Content Gate — CSS v2.5
   SEO SAFE: All content present in HTML/DOM.
═══════════════════════════════════════════════ */

.qsine-gate-wrap { position: relative; }

/* ── GATED CONTENT ── */
.qsine-gate-content { position: relative; }

.qsine-gate-content.qsine-gate-locked {
    max-height: 300px;
    overflow: hidden;
}

.qsine-gate-content.qsine-gate-locked::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 45%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── GATE BOX ── */
.qsine-gate-box {
    position: relative;
    z-index: 10;
    margin: 24px auto 0;
    max-width: 520px;
    background: #FFFFFF;
    border: 1.5px solid #E2D9F3;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(107,45,139,0.05), 0 12px 32px rgba(107,45,139,0.10);
    padding: 28px 32px 22px;
    text-align: center;
    overflow: hidden;
}

.qsine-gate-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6B2D8B, #F5A800);
}

/* ── ICON ── */
.qsine-gate-icon {
    width: 46px;
    height: 46px;
    background: #F0EBF8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.qsine-gate-icon svg {
    width: 21px; height: 21px;
    color: #6B2D8B; stroke: #6B2D8B;
}

/* ── TEXT ── */
.qsine-gate-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A2E;
    margin: 0 0 6px;
    line-height: 1.3;
}
.qsine-gate-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 18px;
    line-height: 1.6;
}

/* ── FORM ── */
.qsine-gate-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.qsine-gate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.qsine-gate-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qsine-gate-field label {
    font-size: 10px;
    font-weight: 700;
    color: #4A1D62;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.qsine-gate-field input {
    padding: 10px 12px;
    border: 1.5px solid #D1C4E9 !important;
    border-radius: 8px;
    font-size: 13px;
    color: #1A1A2E !important;
    background: #FAFAFA !important;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
    box-shadow: none !important;
}
.qsine-gate-field input::placeholder { color: #B0AABB !important; }
.qsine-gate-field input:focus {
    outline: none;
    border-color: #6B2D8B !important;
    box-shadow: 0 0 0 3px rgba(107,45,139,0.09) !important;
    background: #FFFFFF !important;
}
.qsine-gate-field input.qsine-gate-error {
    border-color: #EF4444 !important;
}

/* ── SUBMIT ── */
.qsine-gate-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: #6B2D8B !important;
    background-image: none !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(107,45,139,0.22) !important;
    -webkit-appearance: none;
}
.qsine-gate-submit:hover {
    background: #5A2475 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107,45,139,0.30) !important;
}
.qsine-gate-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    transform: none !important;
}
.qsine-gate-submit svg,
.qsine-gate-submit svg * {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    fill: none !important;
}

/* ── PRIVACY ── */
.qsine-gate-privacy {
    font-size: 11px;
    color: #9CA3AF;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    text-align: center;
}
.qsine-gate-privacy svg {
    flex-shrink: 0;
    width: 11px; height: 11px;
    color: #00A651 !important;
    stroke: #00A651 !important;
}

/* ── ALREADY READ ── */
.qsine-gate-already {
    margin-top: 8px;
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
}
.qsine-gate-already a {
    color: #8B44B0 !important;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border-bottom: 1px dashed rgba(139,68,176,0.35);
}
.qsine-gate-already a:hover {
    color: #6B2D8B !important;
}

/* ── SPINNER ── */
.qsine-gate-spinner {
    width: 15px; height: 15px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: qsine-gate-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes qsine-gate-spin { to { transform: rotate(360deg); } }

/* ── SUCCESS ── */
.qsine-gate-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
}
.qsine-gate-check {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A651, #00CF66);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qsine-gate-pop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes qsine-gate-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.qsine-gate-check svg {
    width: 24px; height: 24px;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}
.qsine-gate-success-title {
    font-size: 17px; font-weight: 800;
    color: #1A1A2E; margin: 0;
}
.qsine-gate-success-msg {
    font-size: 13px; color: #6B7280; margin: 0;
}

/* ── UNLOCKED ── */
.qsine-gate-content.qsine-gate-unlocked {
    max-height: none !important;
    overflow: visible !important;
}
.qsine-gate-content.qsine-gate-unlocked::after { display: none !important; }
.qsine-gate-box.qsine-gate-box-hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
    .qsine-gate-box { padding: 22px 16px 18px; margin: 12px auto 0; }
    .qsine-gate-row { grid-template-columns: 1fr; }
    .qsine-gate-title { font-size: 16px; }
}

/* ── EMAIL VERIFY SECTION ── */
.qsine-gate-already {
    margin-top: 10px;
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
}

.qsine-gate-already-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #8B44B0 !important;
    font-weight: 600;
    font-size: 11px !important;
    cursor: pointer !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(139,68,176,0.35) !important;
    box-shadow: none !important;
    display: inline !important;
    width: auto !important;
    line-height: inherit !important;
    letter-spacing: 0;
    font-family: inherit !important;
}

.qsine-gate-already-toggle:hover {
    color: #6B2D8B !important;
    background: none !important;
    transform: none !important;
}

.qsine-gate-verify-wrap {
    margin-top: 12px;
    padding: 14px 16px;
    background: #F5F0FA;
    border-radius: 10px;
    border: 1.5px solid #E2D9F3;
}

.qsine-gate-verify-inner .qsine-gate-field label {
    font-size: 10px;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.qsine-gate-verify-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.qsine-gate-verify-row input {
    flex: 1;
    padding: 9px 12px !important;
    border: 1.5px solid #D1C4E9 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #1A1A2E !important;
    background: #FFFFFF !important;
    box-sizing: border-box;
    font-family: inherit !important;
    box-shadow: none !important;
}

.qsine-gate-verify-row input:focus {
    outline: none;
    border-color: #6B2D8B !important;
    box-shadow: 0 0 0 3px rgba(107,45,139,0.09) !important;
}

.qsine-gate-verify-row input.qsine-gate-error {
    border-color: #EF4444 !important;
    animation: qsine-gate-shake 0.35s ease;
}

@keyframes qsine-gate-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    60%      { transform: translateX(4px); }
}

.qsine-gate-verify-submit {
    background: #4A1D62 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 9px 16px !important;
    cursor: pointer !important;
    white-space: nowrap;
    font-family: inherit !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
}

.qsine-gate-verify-submit:hover {
    background: #6B2D8B !important;
    color: #FFFFFF !important;
    transform: none !important;
}

.qsine-gate-verify-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Verify response messages */
.qsine-gate-verify-msg {
    font-size: 12px;
    margin: 8px 0 0;
    min-height: 16px;
    display: block;
    text-align: left;
}

.qsine-gate-verify-success {
    color: #00A651;
    font-weight: 600;
}

.qsine-gate-verify-error {
    color: #EF4444;
    font-weight: 500;
}
