/* ================================================
   GENERATOR NAMA BAYI — STYLE
   Theme: Soft Pastels, Modern, Clean
   ================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Light mode (default) */
    --bg-primary: #FDFBF7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #FFF5F7;
    --bg-input: #F8F9FA;
    
    /* Brand Colors */
    --brand-blue: #4A90E2; 
    --brand-pink: #FF8FAB;
    --brand-neutral: #00B8D4;
    
    --accent-primary: #FF8FAB; /* Default accent */
    --accent-gradient: linear-gradient(135deg, #FF8FAB 0%, #4A90E2 100%);
    
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --text-muted: #A0AEC0;
    --text-on-accent: #ffffff;

    --border-color: #E2E8F0;
    --border-focus: #FF8FAB;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(255, 143, 171, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --font-family: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1A202C;
        --bg-secondary: #2D3748;
        --bg-card: #2D3748;
        --bg-card-hover: #4A5568;
        --bg-input: #4A5568;
        
        --text-primary: #EDF2F7;
        --text-secondary: #CBD5E0;
        --text-muted: #718096;
        
        --border-color: #4A5568;
        
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-pink); }

/* ---------- HEADER ---------- */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.3rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--brand-pink); }

/* ---------- ADS ---------- */
.ad-container { margin: 20px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 40px 0; }
.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ---------- TOOL CARD ---------- */
.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 40px;
}

.tool-body { padding: 30px; }

.tool-title { text-align: center; margin-bottom: 24px; font-size: 1.4rem; color: var(--text-primary); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.9rem; }

.input-row { display: flex; gap: 20px; }
.input-row .input-group { flex: 1; }

input[type="text"], select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

input[type="text"]:focus, select:focus {
    border-color: var(--brand-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.2);
}

/* Radio Group (Gender) */
.radio-group { display: flex; gap: 10px; justify-content: center; }
.radio-group label {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}
.radio-group input { position: absolute; opacity: 0; }
.radio-group span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-secondary);
}

/* Gender specific colors on checked */
.radio-group input[value="boy"]:checked + span {
    border-color: var(--brand-blue);
    background: rgba(74, 144, 226, 0.1);
    color: var(--brand-blue);
}
.radio-group input[value="girl"]:checked + span {
    border-color: var(--brand-pink);
    background: rgba(255, 143, 171, 0.1);
    color: var(--brand-pink);
}
.radio-group input[value="any"]:checked + span {
    border-color: var(--brand-neutral);
    background: rgba(0, 184, 212, 0.1);
    color: var(--brand-neutral);
}

.button-row { display: flex; gap: 15px; margin-top: 30px; }
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    flex: 2;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 143, 171, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 143, 171, 0.5); }

.btn-secondary {
    flex: 1;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover { background: var(--border-color); color: var(--text-primary); }

/* ---------- RESULTS AREA ---------- */
.result-area { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.hidden { display: none !important; }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.result-header h3 { font-size: 1.2rem; color: var(--text-primary); }
.result-count { font-size: 0.9rem; color: var(--text-secondary); background: var(--bg-input); padding: 4px 10px; border-radius: 20px; }

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.name-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-pink);
}

.name-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.name-text { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }

.name-gender-icon { font-size: 1.2rem; }
.gender-boy { color: var(--brand-blue); }
.gender-girl { color: var(--brand-pink); }

.name-meaning { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 15px; font-style: italic; flex-grow: 1; }

.name-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 500;
}

.card-actions { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: auto; }
.action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn:hover { background: var(--bg-input); color: var(--text-primary); }
.btn-fav.active { color: #E0245E; border-color: #E0245E; background: rgba(224, 36, 94, 0.05); }

/* ---------- FAVORITES AREA ---------- */
.favorites-area {
    margin-top: 40px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px dashed var(--border-color);
}
.favorites-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.favorites-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fav-item {
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.remove-fav { cursor: pointer; color: var(--text-muted); font-size: 1.1rem; line-height: 1; }
.remove-fav:hover { color: #E0245E; }

.btn-text { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.btn-text:hover { color: #E0245E; }

.load-more-container { text-align: center; margin-top: 24px; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- CONTENT SECTIONS & FAQ ---------- */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
}
/* Reusing previous styles but updated for theme... (abbreviated) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.step-card { background: var(--bg-input); padding: 20px; border-radius: var(--radius-md); text-align: center; }
.step-number { width: 32px; height: 32px; background: var(--text-primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; font-weight: bold; }

.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; text-align: left; padding: 16px 0; background: none; border: none; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; color: var(--text-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; color: var(--text-secondary); }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 16px; }
.faq-arrow { transition: 0.3s; }
.faq-item.active .faq-arrow { transform: rotate(90deg); }

/* ---------- FOOTER ---------- */
.site-footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border-color); margin-top: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; gap: 0; }
    .hero h1 { font-size: 1.8rem; }
    .names-grid { grid-template-columns: 1fr; }
}