/*
Theme Name: HapyBirthday Child
Template: generatepress
Version: 1.0
Description: Custom child theme for hapybirthday.com - Spanish birthday wishes site
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@400;500&display=swap');

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c2c2a;
    background: #f9f7f4;
}

a {
    color: #e91e63;
    text-decoration: none;
}

a:hover {
    color: #c2185b;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #f0e6eb;
    padding: 0 !important;
}

.site-header .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
}

.site-title a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63 !important;
    text-decoration: none;
}

.site-title a:hover {
    color: #c2185b !important;
}

.site-description {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-navigation {
    background: #fff;
}

.main-navigation ul li a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
    padding: 0.5rem 1rem;
}

.main-navigation ul li a:hover {
    color: #e91e63;
}

/* =============================================
   HERO SECTION (single page top)
   ============================================= */
.hb-hero {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 50%, #ff8f00 100%);
    padding: 3rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hb-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}

.hb-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hb-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hb-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

.hb-hero-desc {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hb-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hb-hero-stats span {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
}

.hb-hero-stats strong {
    color: #fff;
    font-weight: 700;
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.hb-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0e6eb;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hb-tabs::-webkit-scrollbar {
    display: none;
}

.hb-tab {
    flex-shrink: 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.hb-tab:hover {
    color: #e91e63;
}

.hb-tab.hb-active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

/* =============================================
   WISH SECTIONS
   ============================================= */
.hb-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

.hb-section {
    margin-bottom: 2.5rem;
}

.hb-section-title {
    font-size: 0.72rem;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0e6eb;
}

/* =============================================
   WISH CARDS
   ============================================= */
.hb-wish-card {
    background: #fff;
    border: 1px solid #f0e6eb;
    border-radius: 12px;
    padding: 1.1rem 1.25rem 0.9rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hb-wish-card:hover {
    border-color: #f48fb1;
    box-shadow: 0 2px 12px rgba(233,30,99,0.08);
}

.hb-wish-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.hb-badge-emotivo { background: #fce4ec; color: #c2185b; }
.hb-badge-corto   { background: #e3f2fd; color: #1565c0; }
.hb-badge-divertido { background: #fff8e1; color: #f57f17; }
.hb-badge-religioso { background: #f3e5f5; color: #6a1b9a; }
.hb-badge-lejos   { background: #e8f5e9; color: #2e7d32; }

.hb-wish-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #333;
    margin: 0 0 0.85rem;
    padding-right: 3.5rem;
}

.hb-wish-actions {
    display: flex;
    gap: 0.5rem;
}

.hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

.hb-btn-copy {
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
}

.hb-btn-copy:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: #fce4ec;
}

.hb-btn-copy.hb-copied {
    border-color: #4caf50;
    color: #4caf50;
    background: #e8f5e9;
}

.hb-btn-wp {
    border: 1px solid #25d366;
    background: transparent;
    color: #25d366;
}

.hb-btn-wp:hover {
    background: #25d366;
    color: #fff;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.hb-faq {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1.25rem;
}

.hb-faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c2c2a;
    margin-bottom: 1rem;
}

.hb-faq-item {
    border-bottom: 1px solid #f0e6eb;
    padding: 1rem 0;
}

.hb-faq-q {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hb-faq-q::after {
    content: '+';
    font-size: 1.1rem;
    color: #e91e63;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 1rem;
}

.hb-faq-q.hb-open::after {
    content: '−';
}

.hb-faq-a {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: none;
    padding-top: 0.35rem;
}

.hb-faq-a.hb-open {
    display: block;
}

/* =============================================
   RELATED LINKS
   ============================================= */
.hb-related {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 0 1.25rem;
}

.hb-related-title {
    font-size: 0.72rem;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 0.85rem;
}

.hb-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hb-related-chip {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #f0e6eb;
    color: #666;
    background: #fff;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.hb-related-chip:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: #fce4ec;
}

/* =============================================
   HOMEPAGE HERO (front page)
   ============================================= */
.hb-home-hero {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 50%, #ff8f00 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hb-home-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hb-home-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.hb-category-card {
    background: #fff;
    border: 1px solid #f0e6eb;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.hb-category-card:hover {
    border-color: #e91e63;
    box-shadow: 0 4px 16px rgba(233,30,99,0.12);
    transform: translateY(-2px);
    color: #e91e63;
}

.hb-category-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hb-category-card-name {
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
}

.hb-category-card-count {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.25rem;
    display: block;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.site-content {
    background: #f9f7f4;
}

.content-area {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Hide sidebar on wish pages */
.page-template-wish-page .widget-area {
    display: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #2c2c2a;
    color: #aaa;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
    margin-top: 2rem;
}

.site-footer a {
    color: #f48fb1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hb-hero h1 {
        font-size: 1.7rem;
    }

    .hb-home-hero h1 {
        font-size: 2rem;
    }

    .hb-wish-text {
        padding-right: 0;
        margin-top: 1.8rem;
    }

    .hb-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hb-hero-stats {
        gap: 1rem;
    }

    .hb-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
