/* ========================================= */
/* COMPLETE EXTERNAL STYLING - CAMBIADORDELETRAS */
/* ========================================= */

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* HEADER & NAVBAR */
.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-width: 0;
    flex: 1; /* Space balanced */
}
.brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: clamp(14px, 3.8vw, 19px);
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    min-width: 0;
}
.brand span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-badge {
    background: linear-gradient(135deg, #8a2387, #e94057, #f27121);
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
/* Right buttons container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    flex-shrink: 0; /* Ensures right buttons never get pushed out */
}
.desktop-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.nav-link-btn:hover, .nav-item-dropdown:hover .nav-link-btn {
    color: var(--accent);
    background: var(--symbol-bg);
}
.dropdown-caret {
    font-size: 9px;
    transition: transform 0.2s ease;
}
.nav-item-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    min-width: 210px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1001;
}
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-main);
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.dropdown-item:hover {
    background: var(--menu-item-hover);
    color: var(--accent);
    transform: translateX(3px);
    font-weight: 600;
}
.nav-icon-btn {
    background: var(--symbol-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* MOBILE DRAWER */
/* HAMBURGER MENU BUTTON (Always visible on tablets & mobile ≤ 960px) */
.mobile-only-btn {
    display: none !important;
}

@media(max-width: 960px) {
    .desktop-nav-menu {
        display: none !important;
    }
    .mobile-only-btn {
        display: grid !important;
        place-items: center;
    }
}

/* MOBILE OFF-CANVAS SLIDING DRAWER FIX */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998; /* Sabse upar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.hero-drawer {
    position: fixed;
    top: 0;
    right: -340px; /* Hidden offscreen */
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: var(--drawer-bg);
    border-left: 1px solid var(--border-color);
    z-index: 99999; /* Header aur content ke upar */
    padding: 16px 14px 50px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.hero-drawer.open {
    right: 0 !important; /* Slide in smoothly */
}


.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.drawer-title {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}
.drawer-close {
    background: var(--symbol-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.drawer-section { margin-bottom: 14px; }
.drawer-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cyan);
    margin-bottom: 6px;
}
.drawer-links-group { display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    background: var(--symbol-bg);
    transition: .15s;
}
.drawer-link:hover, .drawer-link.active {
    background: var(--menu-item-hover);
    color: var(--accent);
    font-weight: 600;
}

/* HERO */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(233, 64, 87, 0.12);
    border: 1px solid rgba(233, 64, 87, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(22px, 4.5vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.hero h1 span {
    background: linear-gradient(135deg, #8a2387, #e94057, #f27121);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* LIVE PREVIEW */
.ff-preview-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--accent);
}
.preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 130px);
}
.preview-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.preview-details { overflow: hidden; }
.preview-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 800;
}
.preview-nick {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.char-badge {
    background: var(--symbol-bg);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* STICKY CONTROLLER & INPUT */
.sticky-controller {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-controller.is-stuck {
    background: var(--sticky-bg);
    backdrop-filter: blur(16px);
    padding: 6px 14px 8px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.main-input {
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(233, 64, 87, 0.35);
}
.input-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}
.action-btn {
    background: var(--symbol-bg);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: .2s;
}
.action-btn:hover {
    background: var(--accent);
    color: #fff;
}
.sticky-controller.is-stuck .main-input {
    padding: 8px 75px 8px 12px;
    font-size: 14px;
    height: 42px;
    border-radius: 8px;
    border-width: 1.5px;
}
.sticky-controller.is-stuck .action-btn { width: 28px; height: 28px; font-size: 13px; }
.sticky-controller.is-stuck .input-wrapper { margin-bottom: 4px; }
.sticky-controller.is-stuck .symbols-tray {
    padding: 4px 6px;
    margin-bottom: 0;
    background: transparent;
    border-color: transparent;
}
.sticky-controller.is-stuck .tray-header { display: none; }

/* SYMBOLS TRAY */
.symbols-tray {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.tray-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.symbols-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}
.symbols-grid {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 3px;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255,255,255,0.04);
}
.symbols-grid::-webkit-scrollbar { height: 2.5px; }
.symbols-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 10px; }
.symbols-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}
.sym-tag {
    background: var(--symbol-bg);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s;
}
.sym-tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}
.view-toggle-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(233, 64, 87, 0.35);
    transition: .2s;
}
.view-toggle-btn:hover { transform: translateY(-1px); }

/* CATEGORY FILTER TABS */
.categories-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.categories-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s;
}
.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(233, 64, 87, 0.35);
}

/* NICK CARD - AUTO PROPORTIONAL HEIGHT */
.nick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 86px; /* Fixed standard clean height */
    height: auto;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
}
.nick-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.nick-tag {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.nick-card p {
    font-size: 17px;
    font-weight: 600;
    word-break: break-all;
    margin-bottom: 10px;
    line-height: 1.4;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nick-length {
    font-size: 10px;
    color: var(--text-muted);
}
.copy-pill {
    background: var(--symbol-bg);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    transition: .2s;
}
.nick-card:hover .copy-pill {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
}

/* RESULTS GRID - NATURAL COMPACT GAP */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
    min-height: auto; /* Removed fixed 400px stretch */
}

/* COMPACT VIEW FIX */
.results-grid.compact-view {
    grid-template-columns: 1fr;
    gap: 6px;
}
.results-grid.compact-view .nick-card {
    min-height: 42px;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}
.results-grid.compact-view .nick-card .card-content-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.results-grid.compact-view .card-top {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 85px;
}
.results-grid.compact-view .nick-card p {
    margin-bottom: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.results-grid.compact-view .card-footer {
    flex-shrink: 0;
    gap: 6px;
}
.results-grid.compact-view .nick-length { display: none; }



/* LOAD MORE BUTTON */
.load-more-container {
    text-align: center;
    margin-bottom: 35px;
}
.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(233, 64, 87, 0.35);
    transition: .2s;
}
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 64, 87, 0.35);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* SEO SECTION */
.article-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    margin-top: 30px;
}
.article-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    color: var(--text-main);
    margin: 20px 0 10px;
}
.article-section h2:first-child { margin-top: 0; }
.article-section p, .article-section li {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.article-section ol, .article-section ul {
    margin-left: 20px;
    margin-bottom: 14px;
}
.article-section code {
    background: var(--symbol-bg);
    color: var(--accent);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
}
.emoji-grid-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0 20px;
    max-height: 160px;
    overflow-y: auto;
    padding: 10px;
    background: var(--symbol-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.emoji-item {
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: .15s;
}
.emoji-item:hover {
    background: var(--border-color);
    transform: scale(1.2);
}

/* FAQS */
.faq-box { margin-top: 25px; }
.faq-item {
    background: var(--faq-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 14px 16px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    text-align: left;
}
.faq-question:hover { background: var(--symbol-bg); }
.faq-icon {
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    background: var(--faq-ans);
}
.faq-answer p {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 25px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-links a { color: var(--text-muted); transition: .2s; }
.footer-links a:hover { color: var(--accent); }

/* RESPONSIVE */
@media(max-width: 640px) {
    .hero h1 { font-size: 22px; }
    .ff-preview-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .preview-info { width: 100%; }
    .results-grid { grid-template-columns: 1fr; }
    .view-toggle-btn { padding: 6px 8px; min-width: 34px; }
    .view-toggle-btn span#viewText { display: none; }
}
/* 370px & 320px ULTRA-SMALL SCREEN ADAPTATION */
@media (max-width: 370px) {
    .nav-container {
        padding: 0 8px;
        gap: 4px;
    }
    .brand {
        font-size: 13.5px;
    }
    .brand-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    .header-actions {
        gap: 4px;
    }
    .nav-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}