/* Pattern Content Locker - Frontend Styles */

.pcl-locked-wrapper {
    position: relative;
    min-height: 400px;
}

.pcl-locked-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.pcl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.pcl-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 90%;
    padding: 0;
    overflow: hidden;
}

.pcl-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    background: #CFE4DF;
    color: #2c3338;
}

.pcl-modal-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.pcl-modal-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 15px;
    line-height: 1.5;
}

.pcl-tabs {
    display: flex;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.pcl-tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.pcl-tab:hover {
    color: #333;
    background: #f0f0f0;
}

.pcl-tab.active {
    color: #5A9A8E;
    background: white;
}

.pcl-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #5A9A8E;
}

.pcl-form-container {
    padding: 32px;
}

.pcl-tab-content {
    display: none;
}

.pcl-tab-content.active {
    display: block;
}

.pcl-form-group {
    margin-bottom: 20px;
}

.pcl-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pcl-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.pcl-form-group input:focus {
    outline: none;
    border-color: #5A9A8E;
}

.pcl-submit-btn {
    width: 100%;
    padding: 16px;
    background: #5A9A8E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 154, 142, 0.3);
    background: #4D8479;
}

.pcl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pcl-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.pcl-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.pcl-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.pcl-help-text {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Animation for unlocking */
.pcl-unlocking .pcl-overlay {
    animation: fadeOut 0.5s ease forwards;
}

.pcl-unlocking .pcl-locked-content {
    animation: unblur 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes unblur {
    to {
        filter: blur(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .pcl-modal {
        width: 95%;
    }
    
    .pcl-modal-header {
        padding: 24px 20px 20px;
    }
    
    .pcl-modal-header h2 {
        font-size: 24px;
    }
    
    .pcl-form-container {
        padding: 24px 20px;
    }
}
