/* Create Page - Landing Theme Style */

:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(255, 255, 255, 0.02);
    --primary-blue: #00d4ff;
    --primary-green: #00ff88;
    --accent-purple: #b794f6;
    --accent-pink: #ff6b9d;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    --border-glow: rgba(0, 212, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Animated Background - Same as Landing */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(183, 148, 246, 0.04) 0%, transparent 60%);
    animation: backgroundPulse 20s ease-in-out infinite;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.25) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: -8s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(183, 148, 246, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -15s;
}

@keyframes backgroundPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.language-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    font-family: 'Inter', sans-serif;
}

/* Create Container */
.create-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    position: relative;
}

.create-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Bot Avatar - Improved */
.bot-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.5),
        0 0 100px rgba(0, 255, 136, 0.3);
    position: relative;
    animation: avatarPulse 3s ease-in-out infinite, avatarFloat 6s ease-in-out infinite;
    cursor: default;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 
            0 0 50px rgba(0, 212, 255, 0.5),
            0 0 80px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 
            0 0 70px rgba(0, 212, 255, 0.7),
            0 0 120px rgba(0, 255, 136, 0.5);
    }
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question Container */
.question-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-glow);
    border-radius: 32px;
    padding: 40px 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.question-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.question-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-glow);
}

.question-icon {
    font-size: 2rem;
    animation: iconWiggle 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.question-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    flex: 1;
}

.question-explanation {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid var(--primary-blue);
    border-radius: 12px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    padding: 18px 24px;
    background: rgba(10, 10, 15, 0.6);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.input-field:focus {
    border-color: var(--primary-blue);
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 8px 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* Textarea */
textarea.input-field {
    min-height: 150px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.option-card {
    background: rgba(10, 10, 15, 0.6);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.option-card:hover::before {
    width: 300px;
    height: 300px;
}

.option-card:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 212, 255, 0.3),
        0 0 0 4px rgba(0, 212, 255, 0.1);
}

.option-card.selected {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transform: scale(1.05);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.option-card.selected .emoji {
    animation: emojiBounce 0.6s ease-out;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Buttons */
.btn-option, .btn-send, .btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    margin: 8px auto;
    box-shadow: 
        0 10px 40px rgba(0, 212, 255, 0.3),
        0 0 0 0 rgba(0, 212, 255, 0.6);
}

/* Continue Button Wrapper - CENTRALIZADO */
.continue-button-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 24px !important;
}

.continue-button-wrapper .btn-send {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-option::before,
.btn-send::before,
.btn-upload::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-option:hover::before,
.btn-send:hover::before,
.btn-upload:hover::before {
    width: 500px;
    height: 500px;
}

.btn-option:hover,
.btn-send:hover,
.btn-upload:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 212, 255, 0.5),
        0 0 0 8px rgba(0, 212, 255, 0.1);
}

.btn-option:active,
.btn-send:active,
.btn-upload:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-option:disabled,
.btn-send:disabled,
.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* User Message - HIDDEN */
.user-message {
    display: none !important;
    visibility: hidden !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-message-text {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
}

/* Media Preview */
.media-preview-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(10, 10, 15, 0.4);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    animation: fadeIn 0.6s ease-out;
}

.media-preview-section h4 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.media-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.media-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(4px);
}

.media-item-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.btn-remove {
    background: rgba(255, 107, 157, 0.2);
    border: 1px solid rgba(255, 107, 157, 0.4);
    color: var(--accent-pink);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(255, 107, 157, 0.3);
    transform: scale(1.05);
}

.btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-glow);
    border-radius: 32px;
    padding: 40px 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.media-upload-area {
    text-align: center;
    padding: 32px 20px;
    border: 2px dashed var(--border-glow);
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.media-upload-area:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.05);
}

.media-upload-area input[type="file"] {
    display: none;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-dot.active {
    width: 32px;
    border-radius: 8px;
    background: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.progress-dot.completed {
    background: var(--primary-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Errors */
.errors-display {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message {
    color: var(--accent-pink);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Quick Date Buttons */
.quick-date-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-quick-date {
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--border-glow);
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-date:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .create-container {
        padding: 60px 20px 40px;
    }
    
    .question-container {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .avatar-circle {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .question-explanation {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
    
    .input-field {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .create-container {
        padding: 40px 16px 30px;
    }
    
    .question-container {
        padding: 24px 20px;
    }
    
    .quick-date-buttons {
        flex-direction: column;
    }
    
    .btn-quick-date {
        width: 100%;
    }
}

