/*
Theme Name: Chinese Name Service
Theme URI: https://chinesenameservice.com
Author: Dev Team
Description: A professional WordPress theme for Chinese name service
Version: 1.0
Text Domain: chinese-name
*/

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== BASE ===== */
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: #f0f2f5; 
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== HEADER ===== */
.header { 
    background: white; 
    padding: 0 30px; 
    display: flex; 
    align-items: center; 
    height: 70px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { 
    font-size: 22px; 
    font-weight: bold; 
    color: #e74c3c; 
    margin-right: 40px; 
}

.logo span { color: #333; }

.nav-links { 
    display: flex; 
    gap: 30px; 
    flex: 1; 
}

.nav-links a { 
    color: #555; 
    font-size: 15px; 
    padding: 10px 0; 
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active { 
    color: #e74c3c; 
    border-bottom-color: #e74c3c; 
}

.header-cta { 
    background: #e74c3c; 
    color: white; 
    padding: 10px 24px; 
    border-radius: 25px; 
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(231,76,60,0.4); 
}

/* ===== HERO ===== */
.hero { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px; 
    padding: 60px 40px; 
    color: white; 
    text-align: center;
    margin: 40px auto;
    max-width: 1000px;
}

.hero h1 { 
    font-size: 42px; 
    margin-bottom: 15px; 
}

.hero p { 
    font-size: 18px; 
    opacity: 0.9; 
    margin-bottom: 30px; 
}

/* ===== FORM BOX ===== */
.form-box { 
    background: white; 
    border-radius: 12px; 
    padding: 30px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 40px;
}

.form-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 20px; 
}

.form-group { text-align: left; }

.form-group label { 
    display: block; 
    color: #555; 
    font-size: 14px; 
    margin-bottom: 8px; 
    font-weight: 500; 
}

.form-group input, .form-group select { 
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus { 
    outline: none; 
    border-color: #667eea; 
}

.submit-btn { 
    background: #e74c3c; 
    color: white; 
    border: none; 
    padding: 15px 50px; 
    border-radius: 30px; 
    font-size: 18px; 
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(231,76,60,0.4); 
}

/* ===== RESULTS ===== */
.results-section { 
    margin-top: 40px; 
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.results-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.results-header h2 { 
    color: #333; 
    font-size: 28px; 
    margin-bottom: 10px; 
}

.results-header p { color: #666; }

.names-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}

.name-card { 
    background: white; 
    border-radius: 12px; 
    padding: 25px; 
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.name-card:hover { 
    transform: translateY(-5px); 
}

.name-card .pinyin { 
    color: #888; 
    font-size: 14px; 
}

.name-card .hanja { 
    font-size: 48px; 
    color: #333; 
    margin: 10px 0; 
    font-weight: bold; 
}

.name-card .meaning { 
    color: #555; 
    font-size: 14px; 
    line-height: 1.5; 
}

.name-card .badge { 
    background: #e74c3c; 
    color: white; 
    padding: 5px 15px; 
    border-radius: 15px; 
    font-size: 12px;
    display: inline-block;
    margin-top: 12px;
}

.name-card .badge.premium { background: #f39c12; }

/* ===== CTA BOX ===== */
.cta-box { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px; 
    padding: 40px; 
    text-align: center; 
    color: white;
    margin-top: 40px;
}

.cta-box h3 { font-size: 28px; margin-bottom: 15px; }
.cta-box p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }

/* ===== FEATURES ===== */
.features-section { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin: 40px auto; 
    max-width: 1000px;
}

.feature-box { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-box .icon { font-size: 40px; margin-bottom: 15px; }
.feature-box h3 { color: #333; margin-bottom: 10px; }
.feature-box p { color: #666; font-size: 14px; }

/* ===== PRICING ===== */
.pricing-section { 
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.section-title { 
    font-size: 32px; 
    color: #333; 
    text-align: center; 
    margin-bottom: 10px; 
}

.section-subtitle { 
    text-align: center; 
    color: #666; 
    margin-bottom: 40px; 
}

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
}

.pricing-card { 
    background: white; 
    border-radius: 16px; 
    padding: 25px 15px; 
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.pricing-card.featured { 
    border: 3px solid #e74c3c; 
    transform: scale(1.05); 
}

.pricing-card .popular { 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.pricing-card .tier { font-size: 16px; color: #888; margin-bottom: 10px; }
.pricing-card .price { font-size: 32px; font-weight: bold; color: #333; }
.pricing-card .names-count { color: #666; font-size: 13px; margin: 15px 0; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

.pricing-card .features { 
    list-style: none; 
    text-align: left; 
    font-size: 12px; 
    color: #555; 
    margin: 15px 0; 
}

.pricing-card .features li { padding: 6px 0; }
.pricing-card .features li::before { content: "✓ "; color: #27ae60; font-weight: bold; }

.pricing-card button { 
    width: 100%; 
    padding: 12px; 
    border-radius: 25px; 
    border: none; 
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
}

.pricing-card button.primary { background: #e74c3c; color: white; }
.pricing-card button.secondary { background: #eee; color: #333; }
.pricing-card button.premium-btn { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }

/* ===== PAGE CONTAINER ===== */
.page-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

/* ===== FOOTER ===== */
.footer { 
    text-align: center; 
    padding: 40px; 
    color: #888; 
    font-size: 14px; 
    margin-top: 40px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 28px; }
    .hero { padding: 40px 20px; }
    .pricing-card.featured { transform: scale(1); }
    .features-section { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}