/* ===== Warm Orange Theme - AI Lyrics Generator ===== */

/* CSS Variables */
:root {
    --primary-color: #f97316;
    --primary-light: #fb923c;
    --primary-dark: #ea580c;
    --primary-bg: rgba(249, 115, 22, 0.08);
    --primary-border: rgba(249, 115, 22, 0.2);
    
    --secondary-color: #c2410c;
    --accent-color: #ff6b35;
    
    --bg-color: #fffbf5;
    --bg-secondary: #fef7ed;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(180deg, #fef7ed 0%, #fffbf5 50%, #ffffff 100%);
    
    --text-color: #1c1917;
    --text-secondary: #57534e;
    --text-light: #a8a29e;
    
    --border-color: #e7e5e4;
    --border-light: #f5f5f4;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 15px rgba(249, 115, 22, 0.3);
    
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== Header & Navigation ===== */
header.topbar-gradient {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.navbar.custom-nav {
    background: transparent;
    padding: 14px 0;
}

.navbar.custom-nav .navbar-brand img {
    border-radius: var(--radius-sm);
}

.navbar.custom-nav .brand-gradient {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar.custom-nav .nav-link {
    color: #78716c;
    font-weight: 500;
    font-size: 0.875rem;
    margin-right: 4px;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar.custom-nav .nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.navbar.custom-nav .nav-link .small-icon {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-right: 0.25rem;
    transition: color 0.2s ease;
}

.navbar.custom-nav .nav-link:hover .small-icon {
    color: var(--primary-color);
}

/* Language Button */
.language-btn {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 0.4375rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.language-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-bg);
}

.language-btn .fa-globe {
    color: var(--text-light);
}

.language-btn:hover .fa-globe {
    color: var(--primary-color);
}

/* Start Button (CTA in nav) */
.nav-cta-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}

/* Dropdown */
.dropdown-menu {
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    color: var(--text-color) !important;
    padding: 0.625rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-bg) !important;
    color: var(--primary-color) !important;
}

/* Mobile Toggle */
.navbar-toggler {
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Footer ===== */
footer {
    background: #fefcf9 !important;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

footer .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

footer .text-muted:hover {
    color: var(--primary-color) !important;
}

footer h4 {
    color: var(--text-color);
    font-size: 1.125rem;
}

footer h6 {
    color: var(--text-color);
    font-size: 0.9375rem;
    font-weight: 600;
}

footer .footer-divider {
    border-color: var(--border-color);
}

footer p.max-w-520 {
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ===== Page Layout ===== */
body.page {
    background: var(--bg-color);
}

body.page main {
    background: transparent;
}

.page {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 0;
}

.page a {
    color: inherit;
    text-decoration: none;
}

.page a:hover {
    color: var(--primary-color);
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg-hero);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(251, 146, 60, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* FREE Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.375rem 0.5rem 0.375rem 0.375rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.badge-free {
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-title {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Lyrics Generator Layout ===== */
.lyrics-generator-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Input Panel */
.generator-input-panel {
    display: flex;
    flex-direction: column;
}

.input-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.credits-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.08));
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    align-self: flex-start;
}

/* Form Elements */
.form-group {
    margin-bottom: 0.875rem;
}

.form-group.half {
    flex: 1;
}

.form-row {
    display: flex;
    gap: 0.625rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.375rem;
}

.form-textarea {
    width: 100%;
    min-height: 90px;
    padding: 0.75rem 0.875rem;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
    background: #fff;
}

.form-textarea::placeholder {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.try-sample-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0.375rem;
    padding: 0.3125rem 0.625rem;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.try-sample-btn:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    border-style: solid;
    color: var(--primary-color);
}

/* Custom Select */
.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.custom-select i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 0.625rem;
}

.custom-select select option {
    background: var(--bg-card);
    color: var(--text-color);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    margin-top: auto;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn i {
    font-size: 0.9375rem;
}

.generate-btn .fa-sparkles,
.generate-btn .fa-wand-magic-sparkles {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== Output Panel ===== */
.generator-output-panel {
    display: flex;
    flex-direction: column;
}

.lyrics-preview-card {
    background: linear-gradient(135deg, #fffcf9 0%, #fff9f5 100%);
    border: 2px dashed rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lyrics-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.preview-default,
.preview-loading,
.preview-result {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px dashed var(--border-color);
}

.preview-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: var(--primary-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.625rem;
}

.preview-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    display: inline;
}

.preview-actions {
    display: flex;
    gap: 0.375rem;
}

.preview-actions .icon-btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Sample Lyrics */
.preview-content {
    flex: 1;
}

.sample-lyrics,
.generated-lyrics {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.9;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.125rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-label:first-child {
    margin-top: 0;
}

.lyrics-line {
    color: #4b5563;
    font-size: 0.9375rem;
    margin: 0.1875rem 0;
    font-style: italic;
}

/* Loading State */
.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-animation {
    margin-bottom: 1.5rem;
}

.typing-indicator {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    max-width: 260px;
    margin-top: 1.25rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.step i {
    font-size: 0.875rem;
    color: var(--text-light);
}

.step span {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.step.active i {
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

.step.step-complete {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
}

.step.step-complete i {
    color: var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Result Footer */
.preview-result .preview-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.preview-result .preview-content::-webkit-scrollbar {
    width: 5px;
}

.preview-result .preview-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.preview-result .preview-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.preview-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.regenerate-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regenerate-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== Section Styles ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2,
.steps h2,
.faq h2 {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.625rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ===== Examples Section ===== */
#examples {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.example-card {
    border-radius: var(--radius-xl);
    border: none;
    padding: 2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4) 0%, rgba(251, 146, 60, 0.25) 50%, rgba(249, 115, 22, 0.4) 100%);
}

.example-card::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: calc(var(--radius-xl) - 2px);
    z-index: 0;
}

.example-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(251, 146, 60, 0.4) 50%, rgba(249, 115, 22, 0.6) 100%);
}

.example-card img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius-xl) - 2px);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.example-card:hover img {
    transform: scale(1.02);
}

/* ===== Steps Section ===== */
.steps {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.steps h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.875rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.625rem;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    font-size: 0.875rem;
}

/* ===== Features Section ===== */
.features {
    padding: 4rem 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.feature-card--reverse {
    direction: rtl;
}

.feature-card--reverse > * {
    direction: ltr;
}

.feature-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

.feature-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 2px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4) 0%, rgba(251, 146, 60, 0.25) 50%, rgba(249, 115, 22, 0.4) 100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-media:hover {
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.15);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(251, 146, 60, 0.4) 50%, rgba(249, 115, 22, 0.6) 100%);
}

.feature-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-xl) - 3px);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-media img {
    transform: scale(1.02);
}

/* ===== Body Fat Chart Section ===== */
.bodyfat-chart-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.bodyfat-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.bodyfat-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title i {
    color: var(--primary-color);
}

.bodyfat-table {
    width: 100%;
    border-collapse: collapse;
}

.bodyfat-table th,
.bodyfat-table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

.bodyfat-table th {
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-secondary);
}

.bodyfat-table td {
    color: var(--text-secondary);
}

.bodyfat-table tr:last-child td {
    border-bottom: none;
}

.category-essential .category-name { color: var(--success); font-weight: 600; }
.category-athletic .category-name { color: var(--primary-color); font-weight: 600; }
.category-fitness .category-name { color: var(--info); font-weight: 600; }
.category-average .category-name { color: var(--text-color); font-weight: 600; }
.category-above .category-name { color: var(--warning); font-weight: 600; }
.category-obese .category-name { color: var(--danger); font-weight: 600; }

/* ===== FAQ Section ===== */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-border);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-light);
    transition: transform 0.25s ease;
    font-size: 0.7rem;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item summary h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    padding-right: 1rem;
    line-height: 1.5;
}

.faq-item p {
    margin: 0.875rem 0 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.875rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .lyrics-generator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .generator-input-panel {
        position: static;
    }

    .generator-output-panel {
        min-height: auto;
    }

    .lyrics-preview-card {
        min-height: 380px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card--reverse {
        direction: ltr;
    }

    .bodyfat-tables {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 3rem;
    }

    .section, .steps, .features, .faq {
        padding: 3rem 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-card {
        padding: 1.25rem;
    }

    .preview-default,
    .preview-loading,
    .preview-result {
        padding: 1.25rem;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .example-card:hover {
        transform: translateY(-4px);
    }

    .feature-text h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .section-header h2,
    .steps h2,
    .faq h2 {
        font-size: 1.5rem;
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Max Width */
.max-w-520 { max-width: 520px; }

/* Brand Icon */
.brand-icon-img {
    border-radius: var(--radius-sm);
}

/* Notification */
.notification {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Upload Button Secondary */
.upload-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--primary-dark);
}

.upload-btn.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.upload-btn.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Action Buttons */
.action-btn {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-share:hover {
    background: var(--info);
    color: #fff;
}

.btn-download {
    background: var(--primary-bg);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
}

.btn-download:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Result Actions Grid */
.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

/* Upload Icon Circle */
.upload-icon-circle {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.upload-icon-circle i {
    font-size: 1.5rem;
    color: var(--primary-color);
}
