/* Generator Card */
.generator-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 255, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: var(--bg-dark);
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-xs);
    border-radius: var(--radius-full);
}

.toggle-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn.active {
    background: var(--gradient-button);
    color: white;
}

/* Batch Selector */
.batch-selector {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.batch-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.batch-btn.active {
    background: var(--gradient-button);
    color: white;
    border-color: transparent;
}

/* Result */
.result-container {
    text-align: center;
    padding: var(--space-2xl);
    display: none;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.result-name {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    animation: bounceIn 0.6s ease;
}

.result-explanation {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.results-grid {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.result-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-button);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-item-actions {
    display: flex;
    gap: var(--space-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.category-card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps */
.section {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title p {
    margin: 0 auto;
    color: var(--text-muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
    padding: var(--space-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-lg);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: var(--border-glass);
    padding: var(--space-2xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.footer-section h4 {
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: var(--border-glass);
    text-align: center;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient-button);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 500;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* History */
.history-sidebar {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

.history-title {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Name Grid */
.name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.name-card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.name-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.name-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.name-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        padding: var(--space-lg);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }

    .generator-card {
        padding: var(--space-lg);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CONTENT BLOCK (What Is, Why sections)
   ============================================ */
.content-block {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.content-block h3 {
    font-size: 1.4rem;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--accent);
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ============================================
   HOW TO SECTION
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.step-card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
}

.step-card .step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-lg);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-to-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.why-card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   GENERATOR TIP & CTA
   ============================================ */
.generator-tip {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.generator-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.generator-cta p {
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) auto;
    max-width: 1200px;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.what-is-section,
.faq-section {
    background: var(--bg-darker);
}

.how-to-section,
.why-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* ============================================
   SCREEN READER ONLY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   CARD GENERAL
   ============================================ */
.card {
    background: var(--gradient-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {

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

    .content-block {
        padding: 0 var(--space-md);
    }

    .faq-item {
        padding: var(--space-lg);
    }
}