/* Gated Content Styles - Puragen Theme */

/* Base container styles */
.puragen-gated-content-container {
    position: relative;
    min-height: 500px;
    width: 100%;
}

.puragen-gated-content-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease;
    opacity: 0.6;
    max-height: 500px;
    overflow: hidden;
}

.puragen-gated-content-unlocked {
    filter: blur(0);
    pointer-events: auto;
    user-select: auto;
    opacity: 1;
}

/* Gated overlay */
.puragen-gated-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
    min-height: 100%;
}

.puragen-gated-overlay-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 500px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    border: 2px solid #3dd7e1;
}

.puragen-gated-overlay-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.puragen-gated-overlay h3 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: #333;
    font-weight: 600;
}

.puragen-gated-overlay p {
    margin: 0 0 2rem 0;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Modal open body styles */
body.puragen-modal-open {
    overflow: hidden;
    padding-right: 0;
}

/* Modal Styles */
.puragen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
}

.puragen-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.puragen-modal-dialog {
    position: relative;
    width: auto;
    max-width: 420px;
    margin: 2rem auto;
    pointer-events: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.puragen-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0px;
    border: 2px solid #3dd7e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    outline: 0;
}

.puragen-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.puragen-modal-header h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.puragen-modal-close {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.puragen-modal-close:hover {
    opacity: 0.75;
}

.puragen-modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 0.75rem 1.5rem 1.5rem;
}

/* Form Styles */
.puragen-gated-form {
    width: 100%;
}

.puragen-form-group {
    margin-bottom: 1rem;
}

.puragen-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.puragen-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.puragen-form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.puragen-unlock-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background: #007cba;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.puragen-unlock-btn:hover:not(:disabled) {
    background: #005a87;
}

.puragen-unlock-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.puragen-form-message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.puragen-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.puragen-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#puragen-gated-form-success {
    text-align: center;
    padding: 2rem;
    color: #155724;
}

/* Dark theme overlay (if needed) */
.puragen-gated-overlay.dark {
    background: rgba(0, 0, 0, 0.85);
    color: white;
}

.puragen-gated-overlay.dark h3,
.puragen-gated-overlay.dark p {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .puragen-gated-overlay-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .puragen-gated-overlay-icon {
        font-size: 2.5rem;
    }
    
    .puragen-gated-overlay h3 {
        font-size: 1.25rem;
    }

    .puragen-modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .puragen-modal-header,
    .puragen-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .puragen-gated-overlay-content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .puragen-modal-dialog {
        margin: 0.5rem auto;
    }
}

/* Modal positioning */
#puragen-gated-content-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

form#form_gated-form {
    display: grid;
    grid-template-columns: 1fr !important;
}

/* Unlocked content styles */
.puragen-gated-content-unlocked {
    position: relative;
    opacity: 1;
    padding: 1rem;
    border-radius: 8px;
    /* border-left: 4px solid #e0e0e0; */
}

.puragen-gated-content-unlocked::before {
    /* content: "📝 Placeholder Content"; */
    position: absolute;
    top: -10px;
    left: 10px;
    /* background: #f5f5f5; */
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #666;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.puragen-content-separator {
    margin: 2rem 0;
}

.puragen-real-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem 0;
    position: relative;
}

.puragen-real-content::before {
    content: "✅ Unlocked Content";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #e8f5e8;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #2d5a2d;
    border-radius: 4px;
    border: 1px solid #a8d5a8;
}