* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; color: #333; }

/* HEADER */
.main-header { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; background: #fff; position: sticky; top:0; z-index: 1000; }
.header-container-left { display: flex; align-items: center; gap: 15px; }
.header-logo-text { font-size: 19px; color: #000; font-weight: 500; }
.menu-btn-svg { background: none; border: none; cursor: pointer; display: flex; align-items: center; }

/* SIDE NAV */
.side-nav { position: fixed; left: -300px; top: 0; width: 280px; height: 100%; background: #fff; z-index: 1100; transition: 0.3s; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.side-nav.active { left: 0; }
.menu-header-box { padding: 20px; display: flex; justify-content: flex-end; }
.menu-links li a { display: flex; justify-content: space-between; padding: 15px 25px; text-decoration: none; color: #333; font-weight: 500; border-bottom: 1px solid #f7f7f7; font-size: 15px; }

/* TOOL AREA */
.tool-section-wrapper { background: #fdf2f8; padding-top: 30px; border-bottom: 1px solid #fce7f3; }
.tool-inner { max-width: 650px; margin: 0 auto; padding: 0 15px; text-align: center; }
.h2-main-black { font-size: 24px; color: #000; margin-bottom: 8px; font-weight: 700; }
.sub-worldwide { font-size: 14px; color: #666; margin-bottom: 25px; }

.static-gradient-border { position: relative; border-radius: 12px; padding: 1.5px; background: linear-gradient(90deg, #ef4444, #db2777); }
textarea { width: 100%; height: 90px; border-radius: 11px; border: none; padding: 15px; font-size: 16px; outline: none; background: #fff; display: block; resize: none; }

/* ACTION BUTTON CENTER */
.button-logic-center { 
    height: 50px; 
    margin-top: 15px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
}

.pro-indigo-btn { 
    background: #4f46e5; 
    color: #fff; 
    padding: 9px 25px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s; 
    border: none;
    outline: none;
    display: block;
}

.pro-indigo-btn:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.clear-btn {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    transition: transform 0.2s ease;
    position: absolute; /* Ensures it stays centered when it appears */
}

.clear-btn:hover {
    transform: scale(1.1);
}

.clear-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* CATEGORY PILLS */
.categories-pill-area { margin-top: 30px; padding-bottom: 20px; }
.pill-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 0 15px; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.pill { padding: 7px 16px; border-radius: 20px; border: none; background: #fff; font-size: 13px; font-weight: 600; color: #4b5563; cursor: pointer; white-space: nowrap; }
.pill.active { background: #db2777; color: #fff; }

/* RESULTS AREA */
.results-area-white { background: #fff; padding: 5px 0; }
.max-width-layout { max-width: 850px; margin: 0 auto; }
.font-row { 
    padding: 18px 15px; 
    border-bottom: 1px solid #f8f8f8; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
    position: relative; 
    transition: background 0.2s; 
}

.font-row:hover { background: #fafafa; }

/* CLICK EFFECT */
.font-row.clicked-state { background: #fdf2f8 !important; }

/* TEXT STYLING & WRAPPING */
.txt-main { 
    font-size: 19px; 
    color: #111; 
    margin-bottom: 4px; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    max-width: 75vw; /* Prevents long fonts/glitch from overflowing mobile screen */
}

.meta-info { font-size: 12px; color: #999; }
.copy-icon-pro { color: #d1d5db; display: flex; align-items: center; min-width: 20px; }
.copied-msg-magenta { position: absolute; right: 50px; color: #db2777; font-weight: 700; font-size: 12px; display: none; }

/* SEO SECTION */
.seo-separation { padding: 80px 0; background: #fff; border-top: 1px solid #f5f5f5; }
.seo-edge-container { width: 100%; max-width: 100%; padding: 0 20px; text-align: left; font-size: 16px; line-height: 1.8; color: #555; }
.h1-seo { font-size: 24px; color: #000; margin-bottom: 20px; font-weight: 700; }

/* FOOTER */
.main-footer { padding: 40px 0; text-align: center; }
.footer-divider { height: 1px; background: #f0f0f0; margin-bottom: 25px; }
.footer-links a { color: #666; margin: 0 12px; text-decoration: none; font-size: 14px; }
.copyright-text { font-size: 12px; color: #aaa; margin-top: 20px; }

/* LANGUAGE SELECTOR */
.lang-select {
    border: 1px solid #eee;
    background: #fdf2f8; /* Matches your lite pink theme */
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #db2777; /* Magenta text */
    cursor: pointer;
    outline: none;
    appearance: none; /* Removes default arrow for a cleaner look */
    -webkit-appearance: none;
    text-align: center;
    min-width: 40px;
}

.lang-select:hover {
    border-color: #db2777;
}

/* Ensure header elements align correctly */
.header-container-left {
    display: flex;
    align-items: center;
    gap: 12px;
}