/* AI Guru - Components */
/* UI components, buttons, forms, and interactive elements */

/* Welcome Banner Responsive Styles */
@media (max-width: 768px) {
    #welcomeBanner {
        padding: 12px 15px !important;
        height: 60px !important; /* Ensure consistent height */
    }
    
    #welcomeBanner > div {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    #welcomeBanner select,
    #welcomeBanner button {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    #welcomeBanner {
        padding: 8px 10px !important;
        height: 55px !important; /* Ensure consistent height for small mobile */
    }
    
    #welcomeBanner > div {
        flex-direction: row !important;
        gap: 5px !important;
        text-align: center !important;
        justify-content: space-between !important;
    }
    
    #welcomeBanner > div > div:first-child {
        font-size: 12px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    #welcomeBanner select,
    #welcomeBanner button {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

/* Quiz Section */
.quiz-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.question-title {
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 25px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    padding: 18px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.2);
}

.quiz-option:hover::before {
    left: 0;
}

.quiz-option.selected {
    background: var(--gradient);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Interactive Wisdom Section */
.scroll-section {
    text-align: center;
    padding: 40px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wisdom-header {
    margin-bottom: 40px;
}

.wisdom-title {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.wisdom-subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 400;
}

/* Wisdom Card */
.wisdom-reveal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    perspective: 1000px;
}

.wisdom-card {
    width: 320px;
    height: 420px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wisdom-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
}

.card-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    display: none;
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-instruction {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 30px;
}

.tap-indicator {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.wisdom-quote {
    font-size: 1.4em;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
}

.wisdom-author {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 600;
}

/* Continue Button */
.continue-btn {
    margin-top: 30px;
    padding: 18px 40px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.continue-btn:hover .arrow-icon {
    transform: translateX(5px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.continue-btn.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .wisdom-card {
        width: 280px;
        height: 380px;
    }
    
    .wisdom-title {
        font-size: 1.6em;
    }
    
    .wisdom-quote {
        font-size: 1.2em;
    }
}

/* Loading Screen Analysis Progress */
.analysis-progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.analysis-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 50%, #27AE60 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-out;
    position: relative;
}

.analysis-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* CTA Section */
.cta-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
}

.cta-text {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    padding: 20px 40px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(255,107,53,0.4);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255,107,53,0.6);
}

.urgency-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    font-size: 2em;
    font-weight: bold;
    color: var(--danger-color);
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.scarcity-text {
    color: var(--danger-color);
    font-weight: 600;
    margin: 10px 0;
}

.live-update {
    margin-top: 15px;
    padding: 10px;
    background: rgba(39,174,96,0.1);
    border-radius: 10px;
    color: var(--success-color);
    font-weight: 600;
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.85em;
    color: #999;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lead Magnet Components */
.lead-magnet-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lead-magnet-title {
    font-size: 2.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.lead-magnet-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Preview Cards */
.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.preview-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.preview-card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.preview-card h3 {
    font-size: 1.1em;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.preview-card p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Email Form */
.email-form {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFF3E0 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid var(--primary-color);
}

.email-form input[type="email"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    font-size: 1.1em;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.email-form button {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.email-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 20px;
    padding: 15px;
    background: rgba(39,174,96,0.1);
    border-radius: 10px;
    color: var(--success-color);
    font-weight: 600;
}

.trust-indicators p {
    margin: 0;
    font-size: 0.95em;
}

/* Processing Message */
.processing-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 20px;
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-message p {
    font-size: 1.1em;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 20px;
    margin: 20px 0;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    font-size: 1.8em;
    color: var(--success-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    font-size: 1.1em;
    color: #2E7D32;
    margin-bottom: 30px;
    line-height: 1.5;
}

.next-steps {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.next-steps p {
    font-size: 1em;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.next-steps .cta-button {
    margin: 0;
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Mobile Responsiveness for Lead Magnet */
@media (max-width: 768px) {
    .lead-magnet-container {
        padding: 30px 20px;
    }
    
    .lead-magnet-title {
        font-size: 1.8em;
    }
    
    .lead-magnet-subtitle {
        font-size: 1.1em;
    }
    
    .preview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .preview-card {
        padding: 20px 10px;
    }
    
    .preview-card .icon {
        font-size: 2em;
    }
    
    .preview-card h3 {
        font-size: 1em;
    }
    
    .preview-card p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .lead-magnet-container {
        padding: 25px 15px;
    }
    
    .lead-magnet-title {
        font-size: 1.5em;
    }
    
    .preview-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .email-form {
        padding: 20px;
    }
    
    .email-form input[type="email"] {
        padding: 15px;
        font-size: 1em;
    }
    
    .email-form button {
        padding: 15px;
        font-size: 1.1em;
    }
}
