/* Enhanced Prompt Input Field - HERO SECTION AT THE TOP */

/* 🎯 HERO PROMPT SECTION - The most important element on the page */
.hero-prompt-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-radius: 20px;
    padding: 60px 50px;
    border: 4px solid var(--accent-color);
    box-shadow:
        0 16px 50px rgba(99, 102, 241, 0.35),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    animation: heroIntro 0.6s ease-out;
}

@keyframes heroIntro {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-prompt-section::before {
    content: '⚡ START HERE ⚡';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6, #ec4899);
    color: white;
    padding: 8px 28px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    animation: startHerePulse 2s ease-in-out infinite;
}

@keyframes startHerePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }
}

.hero-prompt-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6, #ec4899, var(--accent-color));
    background-size: 200% 100%;
    border-radius: 0 0 20px 20px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* Make the entire input section more prominent */
.generator-input-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    padding: 32px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.generator-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6, var(--accent-color));
    border-radius: 12px 12px 0 0;
    animation: shimmer 2s ease-in-out infinite;
}

/* Enhanced header with MEGA visibility */
.hero-prompt-section .input-header {
    margin-bottom: 32px;
    text-align: center;
    margin-top: 8px;
}

.hero-prompt-section .input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-weight: 900;
    color: var(--text-primary);
    font-size: 38px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 15px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-prompt-section .input-label i {
    color: var(--accent-color);
    font-size: 42px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    -webkit-text-fill-color: var(--accent-color);
}

/* Enhanced header with better visibility */
.input-header {
    margin-bottom: 20px;
    text-align: center;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-label i {
    color: var(--accent-color);
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hero-prompt-section .input-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 19px;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    padding: 18px 32px;
    border-radius: 14px;
    border-left: 6px solid var(--accent-color);
    border-right: 6px solid #8b5cf6;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.hero-prompt-section .input-help i {
    color: var(--accent-color);
    font-size: 22px;
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.input-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.input-help i {
    color: var(--accent-color);
    font-size: 16px;
}

/* MEGA ENHANCED TEXTAREA - The star of the show */
.hero-prompt-section .generator-textarea {
    width: 100%;
    min-height: 220px;
    max-height: 550px;
    padding: 32px;
    border: 5px solid var(--accent-color);
    border-radius: 18px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 2px 6px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.2);
}

.hero-prompt-section .generator-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.9;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-prompt-section .generator-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.4),
        0 0 0 8px rgba(99, 102, 241, 0.15),
        inset 0 2px 6px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.generator-textarea {
    width: 100%;
    min-height: 160px;
    max-height: 400px;
    padding: 24px;
    border: 3px solid var(--accent-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.generator-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.generator-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
    font-size: 15px;
    line-height: 1.5;
}

/* Add visual prompt examples above textarea */
.hero-prompt-section .prompt-examples {
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(99, 102, 241, 0.4);
}

.hero-prompt-section .prompt-examples-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-prompt-section .prompt-examples-title i {
    color: var(--accent-color);
    font-size: 20px;
}

.hero-prompt-section .example-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-prompt-section .example-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-prompt-section .example-prompt:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hero-prompt-section .example-prompt i {
    color: var(--accent-color);
    font-size: 16px;
}

.prompt-examples {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.prompt-examples-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-examples-title i {
    color: var(--accent-color);
}

.example-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-prompt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-prompt:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.example-prompt i {
    color: var(--accent-color);
    font-size: 10px;
}

/* HERO SECTION - MEGA Generate Button */
.hero-prompt-section .generate-btn {
    min-width: 380px;
    padding: 24px 56px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.6),
        0 0 0 4px rgba(99, 102, 241, 0.2);
    animation: buttonMegaGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-prompt-section .generate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-prompt-section .generate-btn:hover:not(:disabled)::before {
    width: 500px;
    height: 500px;
}

.hero-prompt-section .generate-btn:hover:not(:disabled) {
    transform: translateY(-6px) scale(1.02);
    background-position: 100% 0;
    box-shadow:
        0 16px 50px rgba(99, 102, 241, 0.7),
        0 0 50px rgba(99, 102, 241, 0.5),
        0 0 0 6px rgba(99, 102, 241, 0.3);
}

.hero-prompt-section .generate-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.hero-prompt-section .generate-btn i {
    font-size: 26px;
    margin-right: 4px;
}

.hero-prompt-section .generate-btn .btn-text {
    position: relative;
    z-index: 1;
}

@keyframes buttonMegaGlow {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(99, 102, 241, 0.6),
            0 0 0 4px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow:
            0 10px 30px rgba(99, 102, 241, 0.8),
            0 0 50px rgba(99, 102, 241, 0.5),
            0 0 0 6px rgba(99, 102, 241, 0.3);
    }
}

/* Enhanced Generate Button - Make it IMPOSSIBLE to miss */
.generate-btn {
    position: relative;
    min-width: 250px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    border: none;
    color: white;
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.generate-btn i {
    font-size: 18px;
}

.generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Add pulsing effect to generate button when ready */
.generate-btn:not(:disabled) {
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

/* Add character counter */
.textarea-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .generator-input-section {
        padding: 20px;
    }

    .input-label {
        font-size: 18px;
    }

    .generator-textarea {
        font-size: 15px;
        min-height: 140px;
    }

    .generate-btn {
        min-width: 100%;
        font-size: 15px;
    }
}
