/* Generator First Screen Optimization CSS */

/* Account for fixed header - typical header height is around 60-80px */
main {
    padding-top: 80px !important;
}

/* Reduce hero section height to bring tool into view */
.generator-hero {
    padding: 2rem 0 1.5rem !important;
    margin-bottom: 2rem !important;
    min-height: auto !important;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(220, 20, 60, 0.05) 100%);
}

.generator-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.generator-hero-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
}

.generator-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Optimize main generator section */
.generator-main {
    padding-top: 0 !important;
    margin-top: -1rem !important;
}

.generator-container {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Input section optimization */
.input-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.text-input {
    min-height: 80px !important;
    max-height: 120px !important;
    font-size: 1.1rem;
}

/* Generate button prominence */
.btn-generate-premium {
    font-size: 1.125rem !important;
    padding: 1rem 2.5rem !important;
    background: linear-gradient(135deg, #ff1744 0%, #dc143c 100%) !important;
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-generate-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(255, 23, 68, 0.5) !important;
}

/* Output section */
.output-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    min-height: 200px;
}

/* Features section pushed down */
.features-section {
    margin-top: 4rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile optimization */
@media (max-width: 768px) {
    main {
        padding-top: 60px !important;
    }
    
    .generator-hero {
        padding: 1.5rem 0 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .generator-hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .generator-hero-subtitle {
        font-size: 1rem !important;
    }
    
    .generator-main {
        margin-top: 0 !important;
    }
    
    .input-section {
        padding: 1rem;
    }
    
    .text-input {
        min-height: 60px !important;
        font-size: 1rem;
    }
    
    .btn-generate-premium {
        font-size: 1rem !important;
        padding: 0.875rem 2rem !important;
        width: 100%;
    }
}

/* Ensure header doesn't take too much space */
.header {
    padding: 0.75rem 0 !important;
}

/* Visual indicator for tool area */
.generator-main::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff1744, transparent);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

/* Specific adjustments for emoji generator */
.generator-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Ensure tool is visible on page load */
@media (min-height: 600px) {
    .generator-main {
        min-height: calc(100vh - 300px);
    }
}

/* High contrast mode for better visibility */
@media (prefers-contrast: high) {
    .input-section,
    .generator-card,
    .output-section {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-generate-premium {
        border: 2px solid #fff;
    }
}