/* IMGIN - AI Image Generator Core Styles */

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: #333; background: #fff; }
body { padding-top: 70px; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 80px 0 60px; margin-bottom: 0; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.hero-content h1 { font-size: 3em; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.3em; opacity: 0.95; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Container */
.page-container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Generator Card */
.generator-section { background: #f8f9fa; padding: 60px 0; }
.generator-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 30px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; color: #2d3748; font-size: 0.95em; }
.form-control { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1em; transition: all 0.3s; }
.form-control:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; font-family: inherit; }
select.form-control { cursor: pointer; }
.btn { padding: 16px 32px; border: none; border-radius: 10px; font-size: 1em; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; width: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Engine Cards */
.engines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.engine-card { padding: 24px 16px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all 0.3s; text-align: center; background: #fff; }
.engine-card:hover { border-color: #667eea; background: #f7f9ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); }
.engine-card.selected { border-color: #667eea; background: linear-gradient(135deg, #f7f9ff 0%, #e9ecff 100%); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); }
.engine-card h3 { font-size: 1em; margin-bottom: 8px; color: #2d3748; }
.engine-card p { font-size: 0.85em; color: #718096; line-height: 1.4; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; }
.alert-error { background: #fff5f5; border-left: 4px solid #f56565; color: #c53030; }
.alert-success { background: #f0fdf4; border-left: 4px solid #48bb78; color: #276749; }

/* Results */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.result-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.result-card img { width: 100%; height: 280px; object-fit: cover; }
.result-card-body { padding: 20px; }
.result-card-body h4 { font-size: 0.95em; color: #2d3748; margin-bottom: 16px; line-height: 1.5; }
.result-actions { display: flex; gap: 12px; }
.result-actions a { flex: 1; padding: 10px; text-align: center; background: #f7fafc; border-radius: 8px; text-decoration: none; color: #4a5568; font-size: 0.9em; font-weight: 600; transition: all 0.3s; }
.result-actions a:hover { background: #667eea; color: white; }

/* Loading */
.loading { text-align: center; padding: 60px 20px; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Recent Images Section */
.recent-images-section { padding: 80px 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5em; color: #2d3748; margin-bottom: 16px; font-weight: 700; }
.section-header p { font-size: 1.1em; color: #718096; max-width: 600px; margin: 0 auto; }
.view-all-btn { text-align: center; margin-top: 40px; }
.view-all-btn a { display: inline-block; padding: 14px 32px; background: #667eea; color: white; border-radius: 10px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.view-all-btn a:hover { background: #5568d3; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }

/* Features Section */
.features-section { padding: 80px 0; background: #f8f9fa; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 50px; }
.feature-card { background: white; padding: 40px 32px; border-radius: 16px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; }
.feature-card h3 { font-size: 1.3em; color: #2d3748; margin-bottom: 16px; font-weight: 600; }
.feature-card p { color: #718096; line-height: 1.7; font-size: 0.95em; }

/* FAQ Section */
.faq-section { padding: 80px 0; background: #fff; }
.faq-container { max-width: 900px; margin: 50px auto 0; }
.faq-item { background: #f8f9fa; border-radius: 12px; margin-bottom: 16px; overflow: hidden; border: 1px solid #e2e8f0; }
.faq-question { padding: 24px 28px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #2d3748; font-size: 1.05em; transition: background 0.3s; }
.faq-question:hover { background: #f1f3f5; }
.faq-answer { padding: 0 28px 24px; color: #4a5568; line-height: 1.7; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { background: #f1f3f5; }

/* Footer */
.footer { background: #2d3748; color: #cbd5e0; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1em; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #cbd5e0; text-decoration: none; transition: color 0.3s; font-size: 0.95em; }
.footer-col ul li a:hover { color: #667eea; }
.footer-bottom { border-top: 1px solid #4a5568; padding-top: 30px; text-align: center; color: #a0aec0; font-size: 0.9em; }
