/**
 * Cure Space - Elementor Widget Styles
 * Modern, Minimal Design
 *
 * @package Cure_Space
 */

/* Widget Container */
.cure-space-widget {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Editor Preview */
.cure-space-editor-preview {
    min-height: 450px;
}

.cure-space-editor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(145deg, #0d0d12 0%, #13131a 100%);
    color: #64748b;
    text-align: center;
    border-radius: 16px;
}

.cure-space-editor-placeholder .eicon-video-camera {
    font-size: 56px;
    margin-bottom: 20px;
    color: #22c55e;
}

.cure-space-editor-placeholder p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Access Required & Join Form States */
.cure-space-access-required,
.cure-space-join-form {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(145deg, #0d0d12 0%, #13131a 100%);
    padding: 48px 24px;
    border-radius: 16px;
}

.cure-space-access-message,
.cure-space-join-message {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cure-space-access-message h3,
.cure-space-join-message h3 {
    margin: 0 0 10px;
    color: #0d0d12;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.cure-space-access-message p,
.cure-space-join-message p {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Token Form */
.cure-space-token-form,
.cure-space-display-name-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cure-space-token-input,
.cure-space-display-name-input {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.cure-space-display-name-input {
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
}

.cure-space-token-input:focus,
.cure-space-display-name-input:focus {
    outline: none;
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.cure-space-token-input::placeholder,
.cure-space-display-name-input::placeholder {
    color: #94a3b8;
    text-transform: none;
    letter-spacing: normal;
}

.cure-space-token-submit,
.cure-space-join-button {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #22c55e;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.cure-space-token-submit:hover,
.cure-space-join-button:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.cure-space-token-submit:active,
.cure-space-join-button:active {
    transform: translateY(0);
}

.cure-space-token-error {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* Display Name Form */
.cure-space-display-name-form label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Error State */
.cure-space-error {
    padding: 48px 40px;
    text-align: center;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 16px;
    font-weight: 500;
}

/* Room Access Form Widget */
.cure-space-access-form-container {
    max-width: 460px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cure-space-access-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: #0d0d12;
    text-align: center;
    letter-spacing: -0.03em;
}

.cure-space-access-description {
    text-align: center;
    margin: 0 0 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cure-space-access-message,
.cure-space-join-message,
.cure-space-access-form-container {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status Indicators */
.cure-space-status-connecting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.cure-space-status-connecting::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .cure-space-access-required,
    .cure-space-join-form {
        padding: 24px 16px;
        min-height: 400px;
    }
    
    .cure-space-access-message,
    .cure-space-join-message {
        padding: 32px 24px;
    }
    
    .cure-space-access-message h3,
    .cure-space-join-message h3 {
        font-size: 22px;
    }
    
    .cure-space-token-input,
    .cure-space-display-name-input {
        font-size: 15px;
        padding: 14px 16px;
    }
    
    .cure-space-token-submit,
    .cure-space-join-button {
        padding: 14px 24px;
    }
    
    .cure-space-access-form-container {
        padding: 28px 24px;
    }
}

/* Dark Mode Override for Join Form (when inside dark container) */
.cure-space-video-room-widget .cure-space-join-form {
    background: linear-gradient(145deg, #0d0d12 0%, #13131a 100%);
}
