/* ============================================ */
/* PetNames.fun - Cute Pet Names Website        */
/* Design: Bright, playful, mobile-first        */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

:root {
    /* 🌈 Color Palette - Bright & Cheerful */
    --pink: #FF6B9D;
    --pink-light: #FFB3CC;
    --pink-dark: #E5507A;
    --blue: #5BC0EB;
    --blue-light: #A8E0F7;
    --blue-dark: #3A9EC9;
    --green: #70E4A0;
    --green-dark: #4EC488;
    --yellow: #FFD166;
    --orange: #FF9F45;
    --purple: #C084FC;
    --red: #EF476F;

    --bg: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-dark: #2D2B55;
    --text-primary: #2D2B55;
    --text-secondary: #6B6888;
    --text-muted: #9B98B0;
    --border-color: #E8E4F0;
    --shadow: 0 4px 16px rgba(45, 43, 85, 0.08);
    --shadow-hover: 0 8px 30px rgba(45, 43, 85, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --font-display: 'Fredoka One', 'Nunito', sans-serif;
    --font-body: 'Nunito', -apple-system, sans-serif;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============== SCROLLBAR ============== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ============== NAVBAR ============== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    padding: 0 20px;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-dot {
    color: var(--pink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink);
    background: rgba(255, 107, 157, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============== HERO ============== */
.hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, #FFF0F5 0%, #FFF8F0 50%, #F0F8FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-paw {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 10c-5.5 0-10 4.5-10 10s4.5 10 10 10 10-4.5 10-10-4.5-10-10-10zm0 22c-8 0-24 4-24 12v6h48v-6c0-8-16-12-24-12z' fill='%23FF6B9D'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ============== SEARCH ============== */
.search-box {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 16px 20px;
    padding-left: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: white;
    border: 2px solid var(--pink-dark);
    border-radius: 0 50px 50px 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--pink-dark);
}

/* ============== CONTAINER ============== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.section-title span {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============== QUICK GENERATOR ============== */
.quick-gen-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.quick-gen-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.quick-gen-emoji {
    font-size: 2rem;
}

.quick-gen-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
}

.quick-gen-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.quick-gen-selects {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.filter-group select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-group select:focus {
    border-color: var(--pink);
}

/* ============== NAMES GRID ============== */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.name-chip {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--pink-light), #FFE0EC);
    color: var(--pink-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.name-chip:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: var(--pink);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.name-chip.cat-style {
    background: linear-gradient(135deg, var(--blue-light), #D0ECFF);
    color: var(--blue-dark);
}

.name-chip.cat-style:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(91, 192, 235, 0.3);
}

.name-chip.bird-style {
    background: linear-gradient(135deg, var(--green), #C8F7D8);
    color: #2D8A5A;
}

.name-chip.male-style {
    background: linear-gradient(135deg, var(--blue-light), #D0ECFF);
    color: var(--blue-dark);
}

.name-chip.female-style {
    background: linear-gradient(135deg, var(--pink-light), #FFE0EC);
    color: var(--pink-dark);
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255, 107, 157, 0.4);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.btn-outline:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

/* ============== CARDS GRID ============== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-dog::before { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.card-cat::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.card-bird::before { background: linear-gradient(90deg, var(--green), var(--green-dark)); }
.card-fish::before { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }
.card-small::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.card-gen::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card:hover::before {
    opacity: 1;
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card .badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-light), #FFE0EC);
    color: var(--pink-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 12px;
}

/* ============== STYLE TAGS ============== */
.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.style-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.style-tag:hover {
    border-color: var(--pink);
    color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

/* ============== TRENDING GRID ============== */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.trending-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

.trending-card .trend-rank {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--pink);
    margin-bottom: 4px;
}

.trending-card .trend-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.trending-card .trend-meaning {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============== BLOG TEASER ============== */
.blog-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--blue);
}

.blog-card .blog-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============== TOAST ============== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 9999;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ============== FOOTER ============== */
.footer {
    background: var(--bg-dark);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-brand .brand-text {
    color: white;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--pink);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============== ANIMATIONS ============== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ============== UTILITY ============== */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .hero { padding: 100px 16px 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 248, 240, 0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 2px solid var(--border-color);
        gap: 4px;
    }
    
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    
    .quick-gen-selects {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: unset;
    }
    
    .names-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .quick-gen-card {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .search-box { flex-direction: column; gap: 8px; }
    .search-box input { border-radius: 50px; }
    .search-btn { border-radius: 50px; width: 100%; justify-content: center; }
}
