/**
 * Gated Content Frontend Styles
 *
 * @package Niche\Gated
 * @since   2.0.0
 */

.niche-gc-locked-section {
    width: 100%;
}

/* === LOCKED SECTION MESSAGES === */
.niche-gc-section-lock-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #000000;
    font-size: 14px;
    margin: 16px 0;
}

.niche-gc-section-lock-message .niche-gc-lock-icon {
    width: 20px !important;
    height: 20px !important;
    color: #000000;
    flex-shrink: 0;
}

.niche-gc-section-lock-message .niche-gc-lock-text {
    margin: 0;
}

/* === CLICKABLE LOCKED MESSAGE === */
.niche-gc-clickable-message {
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.niche-gc-clickable-message:hover {
    transform: translateY(-1px);
}

.niche-gc-clickable-message:hover .niche-gc-section-lock-message {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.niche-gc-hover-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #666;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.niche-gc-clickable-message:hover .niche-gc-hover-tooltip {
    opacity: 1;
}

.niche-gc-auto-form {
    margin-top: 2em;
}

/* === UNLOCK FORM === */
.niche-gc-unlock-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
}

.niche-gc-form-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.niche-gc-form-description {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
}

/* === REQUIREMENTS === */
.niche-gc-requirements {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.niche-gc-requirements h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.niche-gc-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.niche-gc-requirements li {
    padding: 4px 0;
    font-size: 13px;
}

/* === LOGIN SECTION === */
.niche-gc-login-section {
    margin-bottom: 16px;
}

.niche-gc-login-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
}

.niche-gc-register-link {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

.niche-gc-logged-in {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    color: #155724;
}

/* === STATUS MESSAGE === */
.niche-gc-status-message {
    margin: 16px 0;
}

.niche-gc-status-message.loading {
    text-align: center;
    color: #666;
}

.niche-gc-status-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    color: #155724;
}

.niche-gc-status-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    color: #721c24;
}

/* === UNLOCKED STATE === */
.niche-gc-unlocked {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    color: #155724;
}

/* === FORM SECTION === */
.niche-gc-form-section {
    margin-top: 16px;
}

.niche-gc-form-completed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    color: #155724;
    text-align: center;
}

.niche-gc-form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    color: #721c24;
    text-align: center;
}

/* === BUTTONS === */
.niche-gc-unlock-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.niche-gc-unlock-btn:hover {
    background: #005a87;
}

/* === STATUS DISPLAY === */
.niche-gc-status-display {
    padding: 12px;
    border-radius: 4px;
}

.niche-gc-access-granted {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
}

.niche-gc-access-denied {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
}

.niche-gc-debug-info {
    margin-top: 16px;
    background: #f0f0f0;
    padding: 12px;
    border-radius: 4px;
}

.niche-gc-debug-info pre {
    margin: 0;
    font-size: 11px;
    overflow-x: auto;
}

/* === ERROR === */
.niche-gc-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    color: #721c24;
}
