/**
 * Şekilli Nick Tools CSS
 * Premium Utility SaaS Design System V2
 * Clean typography, crisp white cards, indigo/violet accents, accessible responsive layout.
 */

:root {
    --sn-bg-canvas: #f8fafc;
    --sn-bg-card: #ffffff;
    --sn-bg-subtle: #f1f5f9;
    --sn-text-main: #0f172a;
    --sn-text-muted: #475569;
    --sn-text-subtle: #64748b;
    --sn-primary: #4f46e5;
    --sn-primary-hover: #4338ca;
    --sn-primary-light: #eef2ff;
    --sn-primary-border: #c7d2fe;
    --sn-secondary: #7c3aed;
    --sn-accent-teal: #0f766e;
    --sn-accent-teal-light: #f0fdfa;
    --sn-border: #cbd5e1;
    --sn-border-focus: #4f46e5;
    --sn-radius-sm: 8px;
    --sn-radius-md: 14px;
    --sn-radius-lg: 20px;
    --sn-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
    --sn-shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --sn-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --sn-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Cambria Math", sans-serif;
    --sn-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tool Wrapper Container */
.sn-generator-wrap,
.sn-ready-wrap,
.sn-symbols-wrap,
.sn-contact-wrap {
    font-family: var(--sn-font-sans);
    color: var(--sn-text-main);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 2.5rem auto;
    box-sizing: border-box;
}

/* Hero / Tool Input Box (SaaS V2) */
.sn-tool-box {
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-lg);
    padding: 1.15rem 1.75rem 1.35rem 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .sn-tool-box {
        padding: 1.25rem 1rem 1.5rem 1rem;
        border-radius: var(--sn-radius-md);
    }
}

/* =============================================================
   PREMIUM NICKNAME INPUT REDESIGN V3 (SaaS Component)
   Brand Colors:
   - Indigo: #4F46E5
   - Violet: #7C3AED
   - Dark Text: #0F172A
   - Muted Text: #64748B
   - Background: #FFFFFF
   ============================================================= */

/* =============================================================
   PREMIUM NICKNAME INPUT REDESIGN V4 (Layered SaaS Component)
   Color System:
   - Primary Indigo: #4F46E5
   - Secondary Violet: #7C3AED
   - Light Lavender Surface: #EEF2FF
   - White: #FFFFFF
   - Main Text: #0F172A
   - Placeholder Text: #64748B
   - Border: #CBD5E1
   - Subtle Success Green: #0F766E
   ============================================================= */

/* Outer Layered Component (Lavender Surface + Refined Gradient Border Treatment) */
.sn-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 72px;
    background: #EEF2FF;
    border: 1.5px solid #CBD5E1;
    border-radius: 18px;
    padding: 6px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px -3px rgba(79, 70, 229, 0.06);
    cursor: text;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Outer Hover State */
.sn-input-group:hover {
    border-color: #A5B4FC;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 8px 22px -3px rgba(79, 70, 229, 0.09);
}

/* Outer Focused State (2px Indigo/Violet Gradient Outline & Soft Indigo Glow) */
.sn-input-group:focus-within {
    border: 1.5px solid transparent;
    background-image: linear-gradient(#EEF2FF, #EEF2FF), linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14), 0 12px 28px -4px rgba(79, 70, 229, 0.12);
}

/* Inner Editable Field (Pure White Pill / Card - Single Unified Boundary) */
.sn-input-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 13px;
    padding: 0 16px 0 18px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    border: none !important;
}

/* Clean Integrated Lucide-Style Pencil SVG Icon (Inside Left) */
.sn-input-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #64748B;
    margin-right: 14px;
    cursor: text;
    line-height: 1;
    z-index: 1;
    transition: color 0.15s ease;
}

.sn-input-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    display: block;
    transition: stroke 0.15s ease;
}

/* Pencil turns Indigo on Hover / Focus */
.sn-input-group:hover .sn-input-icon,
.sn-input-group:focus-within .sn-input-icon {
    color: #4F46E5;
}

/* Clear, Highly Readable Editable Text inside Main Generators & Search Bars */
.sn-main-input,
.sn-pubg-input,
.sn-nulls-input,
.sn-brawl-input,
.sn-wa-input,
.sn-heart-input,
.sn-ready-search,
.sn-symbol-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.3;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.sn-main-input:focus,
.sn-pubg-input:focus,
.sn-nulls-input:focus,
.sn-brawl-input:focus,
.sn-wa-input:focus,
.sn-heart-input:focus,
.sn-ready-search:focus,
.sn-symbol-search:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Accessible, WCAG-Compliant Placeholder */
.sn-main-input::placeholder,
.sn-pubg-input::placeholder,
.sn-nulls-input::placeholder,
.sn-brawl-input::placeholder,
.sn-wa-input::placeholder,
.sn-heart-input::placeholder,
.sn-ready-search::placeholder,
.sn-symbol-search::placeholder {
    color: #64748B !important;
    font-weight: 400;
}

/* Dedicated Clear Button (Inside Right) */
.sn-clear-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 8px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.35rem;
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
    transition: all 0.15s ease;
}

.sn-clear-btn:hover {
    color: #0F172A;
    background-color: #F1F5F9;
}

/* Multiline Text Converter Layered Component Variant (P11) */
.sn-input-group-multiline {
    height: auto !important;
    min-height: unset !important;
    align-items: stretch !important;
}

.sn-input-inner-multiline {
    height: auto !important;
    min-height: unset !important;
    align-items: flex-start !important;
    padding: 10px 16px 10px 18px !important;
}

.sn-input-inner-multiline .sn-input-icon {
    margin-top: 4px;
    flex-shrink: 0;
}

.sn-input-inner-multiline .sn-clear-btn {
    margin-top: 2px;
    flex-shrink: 0;
}

.sn-multiline-input {
    flex: 1 1 auto;
    width: 100%;
    min-height: 88px;
    height: 88px;
    max-height: 280px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 1.6;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--sn-font-sans);
    resize: none;
    overflow-y: hidden;
}

.sn-multiline-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.sn-multiline-input::placeholder {
    color: #64748B !important;
    font-weight: 400;
}

/* Tablet Responsive Adaptation for Multiline Input */
@media (max-width: 900px) {
    .sn-multiline-input {
        min-height: 80px;
        height: 80px;
    }
}

/* Mobile Responsive Adaptation for Main Inputs */
@media (max-width: 640px) {
    .sn-input-group {
        height: 60px;
        border-radius: 14px;
        padding: 4px 5px;
    }
    .sn-input-group-multiline {
        height: auto !important;
        min-height: unset !important;
        padding: 4px 5px;
    }
    .sn-input-inner {
        border-radius: 10px;
        padding: 0 10px 0 14px;
    }
    .sn-input-inner-multiline {
        height: auto !important;
        min-height: unset !important;
        padding: 8px 10px 8px 14px !important;
    }
    .sn-input-icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    .sn-input-icon svg {
        width: 18px;
        height: 18px;
    }
    .sn-main-input,
    .sn-pubg-input,
    .sn-nulls-input,
    .sn-brawl-input,
    .sn-wa-input,
    .sn-heart-input,
    .sn-ready-search,
    .sn-symbol-search {
        font-size: 16px !important;
    }
    .sn-multiline-input {
        font-size: 16px !important;
        min-height: 72px;
        height: 72px;
    }
    .sn-clear-btn {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        margin-left: 4px;
    }
}

/* Tool Meta Bar */
.sn-tool-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    color: var(--sn-text-muted);
}

.sn-char-count,
.sn-pubg-count,
.sn-pubg-bytes,
.sn-text-stats {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--sn-text-muted);
    font-family: var(--sn-font-mono);
    font-size: 0.825rem;
}

.sn-badge-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background-color: #F0FDFA;
    color: #0F766E;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #CCFBF1;
}

.sn-badge-warn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    background-color: #fef2f2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #fee2e2;
}

/* Notice Banners */
.sn-notice,
.sn-tr-notice,
.sn-pubg-limit-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--sn-radius-md);
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
}

.sn-notice-info,
.sn-tr-notice {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.sn-notice-warn,
.sn-pubg-limit-notice {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.sn-notice-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Filter Navigation Bar (SaaS Pills) */
.sn-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.65rem 0;
    margin: 1.5rem 0 1.25rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sn-filters-bar::-webkit-scrollbar {
    display: none;
}

.sn-filter-btn,
.sn-ready-tab,
.sn-symbol-tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 38px;
    padding: 0 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sn-text-muted);
    background-color: #ffffff;
    border: 1px solid var(--sn-border);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.sn-filter-btn:hover,
.sn-ready-tab:hover,
.sn-symbol-tab:hover {
    color: var(--sn-text-main);
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.sn-filter-btn:focus-visible,
.sn-ready-tab:focus-visible,
.sn-symbol-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.sn-filter-btn.active,
.sn-ready-tab.active,
.sn-symbol-tab.active {
    background-color: var(--sn-primary);
    color: #ffffff;
    border-color: var(--sn-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

/* -------------------------------------------------------------
   Premium Font Result Cards (3-Column Desktop Grid with Centered Incomplete Rows)
   ------------------------------------------------------------- */
.sn-results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.15rem;
}

.sn-result-card {
    flex: 0 0 calc((100% - 2 * 1.15rem) / 3);
    max-width: calc((100% - 2 * 1.15rem) / 3);
    width: calc((100% - 2 * 1.15rem) / 3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--sn-shadow-sm);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 155px;
    position: relative;
}

@media (max-width: 1023px) {
    .sn-result-card {
        flex: 0 0 calc((100% - 1.15rem) / 2);
        max-width: calc((100% - 1.15rem) / 2);
        width: calc((100% - 1.15rem) / 2);
    }
}

@media (max-width: 639px) {
    .sn-result-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

.sn-result-card:hover {
    border-color: var(--sn-primary-border);
    box-shadow: 0 10px 24px -4px rgba(79, 70, 229, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
}

/* TOP: Style name + Sample Badge + Favorite action */
.sn-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}

.sn-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    overflow: hidden;
}

.sn-card-style-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sn-text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Subtle "Örnek" Sample Badge */
.sn-card-sample-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 6px;
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.sn-btn-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--sn-bg-canvas);
    border: 1px solid var(--sn-border);
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sn-btn-fav:hover {
    color: #ca8a04;
    background-color: #fef9c3;
    border-color: #fde047;
}

.sn-btn-fav.is-favorited {
    color: #ca8a04;
    background-color: #fef08a;
    border-color: #facc15;
}

/* MIDDLE: Large Generated Text Preview */
.sn-card-body {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin-bottom: 0.85rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.sn-styled-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--sn-text-main);
    line-height: 1.4;
    user-select: all;
    font-family: var(--sn-font-sans);
}

.sn-card-empty-placeholder .sn-styled-text {
    color: #94A3B8;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* BOTTOM: Dedicated Prominent Copy CTA */
.sn-card-footer {
    margin-top: auto;
    width: 100%;
}

.sn-btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: 40px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sn-primary);
    background-color: var(--sn-primary-light);
    border: 1px solid var(--sn-primary-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.sn-btn-copy:hover {
    background-color: var(--sn-primary);
    color: #ffffff;
    border-color: var(--sn-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.sn-btn-copy:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.35);
}

.sn-btn-copied {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
    box-shadow: none !important;
}

.sn-btn-copy-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.sn-btn-copy-text {
    font-weight: 700;
}

/* Empty State */
.sn-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
    padding: 3.5rem 1.5rem;
    background-color: var(--sn-bg-subtle);
    border-radius: var(--sn-radius-md);
    color: var(--sn-text-muted);
}

.sn-empty-icon {
    font-size: 2.75rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------
   Progressive Font Styles Rendering & Load More
   ------------------------------------------------------------- */
.sn-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px dashed var(--sn-border);
}

.sn-results-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sn-text-muted);
    background: #ffffff;
    padding: 0.45rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--sn-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sn-btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 48px;
    padding: 0 2.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sn-primary) 0%, #4338ca 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sn-btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.sn-btn-load-more:active {
    transform: translateY(0);
}

.sn-btn-load-more-icon {
    font-size: 1.05rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.sn-btn-load-more:hover .sn-btn-load-more-icon {
    transform: translateY(2px);
}

/* -------------------------------------------------------------
   Smart Sticky Nickname Input Bar (Floating Constrained Island)
   ------------------------------------------------------------- */
.sn-sticky-bar {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -150%);
    width: min(1100px, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    z-index: 995 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Account for WordPress admin bar when logged in */
body.admin-bar .sn-sticky-bar {
    top: var(--wp-admin--admin-bar--height, 32px) !important;
}
@media (max-width: 782px) {
    body.admin-bar .sn-sticky-bar {
        top: var(--wp-admin--admin-bar--height, 46px) !important;
    }
}

.sn-sticky-bar.sn-sticky-visible {
    transform: translate(-50%, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.sn-sticky-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.sn-sticky-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Unified Bordered Search Component (Layered Lavender + White Inner SaaS Island) */
.sn-sticky-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    height: 54px;
    background: #EEF2FF;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(79, 70, 229, 0.04);
    box-sizing: border-box;
    position: relative;
    cursor: text;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sn-sticky-input-group:hover {
    border-color: #A5B4FC;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.10), 0 2px 8px -1px rgba(79, 70, 229, 0.06);
}

.sn-sticky-input-group:focus-within {
    border: 1.5px solid transparent;
    background-image: linear-gradient(#EEF2FF, #EEF2FF), linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14), 0 8px 24px -4px rgba(79, 70, 229, 0.08);
}

.sn-sticky-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 0 0.4rem 0 0.85rem;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

/* Sticky search bar pencil icon (18px) inside input */
.sn-sticky-input-group .sn-input-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    color: #64748B;
    cursor: text;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.sn-sticky-input-group .sn-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    display: block;
    transition: stroke 0.15s ease;
}
.sn-sticky-input-group:hover .sn-input-icon,
.sn-sticky-input-group:focus-within .sn-input-icon {
    color: #4F46E5;
}

/* Native input: borderless, transparent, flex auto */
.sn-sticky-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 0.5rem 0 0 !important;
    margin: 0;
    box-sizing: border-box;
}

.sn-sticky-input::placeholder {
    color: #64748B !important;
    font-weight: 400;
}

.sn-sticky-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Clear (X) button */
.sn-sticky-clear-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--sn-text-subtle);
    cursor: pointer;
    padding: 0;
    border-radius: var(--sn-radius-sm);
    transition: color 0.15s ease;
}

.sn-sticky-clear-btn:hover {
    color: var(--sn-text-main);
}

/* Subtle vertical divider */
.sn-sticky-divider {
    width: 1px;
    height: 24px;
    background: #E2E8F0;
    margin: 0 0.65rem 0 0.35rem;
    flex-shrink: 0;
}

/* Small character/result counter */
.sn-sticky-char-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    white-space: nowrap;
    line-height: 1.2;
}

/* Back to Top button */
.sn-sticky-scroll-top {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    color: #4F46E5;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sn-sticky-scroll-top:hover,
.sn-sticky-scroll-top:focus-visible {
    background: var(--sn-primary);
    color: #ffffff;
    border-color: var(--sn-primary);
    outline: none;
}

.sn-sticky-arrow-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.15s ease;
}

.sn-sticky-scroll-top:hover .sn-sticky-arrow-svg {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sn-sticky-bar {
        width: min(1100px, calc(100% - 32px)) !important;
        max-width: calc(100% - 32px) !important;
        padding: 8px 0 0 0 !important;
    }
    .sn-sticky-input-group {
        height: 48px;
    }
}

@media (max-width: 640px) {
    .sn-sticky-bar {
        width: min(1100px, calc(100% - 24px)) !important;
        max-width: calc(100% - 24px) !important;
        padding: 8px 0 0 0 !important;
    }
    .sn-sticky-input-group {
        height: 48px;
        border-radius: 12px;
        padding: 3px;
    }
    .sn-sticky-inner {
        border-radius: 8px;
        padding: 0 0.35rem 0 0.65rem;
    }
    .sn-sticky-input-group .sn-input-icon {
        margin-right: 0.5rem;
    }
    .sn-sticky-input {
        font-size: 16px !important;
        padding: 0 0.25rem 0 0 !important;
    }
    .sn-sticky-divider {
        display: none;
    }
    .sn-sticky-char-count {
        display: none;
    }
    .sn-sticky-scroll-text {
        display: none;
    }
    .sn-sticky-scroll-top {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }
    .sn-sticky-arrow-svg {
        width: 16px;
        height: 16px;
    }
}

/* -------------------------------------------------------------
   Dedicated Tool Modes (PUBG, Nulls, Brawl, WhatsApp, etc.)
   ------------------------------------------------------------- */

/* Nulls Brawl cards inherit clean .sn-result-card structure */

/* Brawler Chips (P06: Brawl Stars Tool) */
.sn-brawler-presets-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.sn-brawler-presets-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: -0.01em;
    margin-right: 0.25rem;
}

/* Default state: highly readable dark text, visible border, touch-friendly */
.sn-brawler-chip,
button.sn-brawler-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #0F172A !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    user-select: none !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover state: light indigo tint, indigo text, subtle elevation */
.sn-brawler-chip:hover,
button.sn-brawler-chip:hover {
    color: #4F46E5 !important;
    background: #EEF2FF !important;
    border-color: #818CF8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(79, 70, 229, 0.15) !important;
}

/* Active / Selected state: strong indigo background, white contrasting text */
.sn-brawler-chip.is-active,
button.sn-brawler-chip.is-active,
.sn-brawler-chip[aria-pressed="true"],
button.sn-brawler-chip[aria-pressed="true"] {
    color: #FFFFFF !important;
    background: #4F46E5 !important;
    border-color: #4338CA !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3) !important;
    font-weight: 700 !important;
    transform: translateY(0);
}

/* Accessible Keyboard Focus state */
.sn-brawler-chip:focus-visible,
button.sn-brawler-chip:focus-visible {
    outline: 2px solid #6366F1 !important;
    outline-offset: 2px !important;
}

.sn-brawler-chip:active,
button.sn-brawler-chip:active {
    transform: translateY(1px);
}

/* WhatsApp Preview Card (P05) */
.sn-wa-preview-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .sn-wa-preview-box {
        grid-template-columns: 1fr 1fr;
    }
}

.sn-wa-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--sn-radius-md);
    padding: 1.25rem;
}

.sn-wa-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.sn-wa-preview-name,
.sn-wa-preview-about {
    font-size: 1.15rem;
    font-weight: 600;
    color: #14532d;
    word-break: break-all;
}

/* Heart Composer (P07) */
.sn-heart-composer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.sn-select-heart {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    font-size: 1.1rem;
    background-color: var(--sn-bg-card);
    color: var(--sn-text-main);
    cursor: pointer;
}

.sn-heart-custom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: var(--sn-radius-md);
    padding: 1.15rem 1.25rem;
    margin-top: 1.25rem;
}

.sn-heart-custom-preview {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e11d48;
    word-break: break-all;
}

/* Multiline Text Converter (P11) */
.sn-multiline-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.5rem;
}

.sn-multiline-results .sn-result-card,
.sn-card-multiline {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box;
    cursor: default;
}

.sn-multiline-results .sn-result-card .sn-card-body,
.sn-card-multiline .sn-card-body {
    display: block;
    min-height: 48px;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sn-multiline-results .sn-result-card .sn-styled-text,
.sn-card-multiline .sn-styled-text {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1.25rem;
    line-height: 1.6;
    width: 100%;
}

@media (max-width: 640px) {
    .sn-multiline-results .sn-result-card .sn-styled-text,
    .sn-card-multiline .sn-styled-text {
        font-size: 1.125rem;
        line-height: 1.55;
    }
}

.sn-multiline-card {
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sn-shadow-sm);
}

.sn-multiline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sn-border);
}

.sn-multiline-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sn-text-main);
}

.sn-multiline-output {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--sn-font-sans);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
    color: var(--sn-text-main);
}

/* Ready-Made Nicknames (P09) */
.sn-ready-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .sn-ready-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sn-ready-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sn-ready-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    padding: 0.95rem 1.15rem;
    box-shadow: var(--sn-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sn-ready-card:hover {
    box-shadow: var(--sn-shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.sn-ready-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sn-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5rem;
}

.sn-ready-copy-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sn-primary);
    background: var(--sn-primary-light);
    border: 1px solid var(--sn-primary-border);
    border-radius: var(--sn-radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.sn-ready-copy-btn:hover {
    background: var(--sn-primary);
    color: #ffffff;
}

/* Symbols Catalog (P03) */
.sn-symbol-category-section {
    margin-bottom: 2.5rem;
}

.sn-symbol-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sn-text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sn-symbol-category-desc {
    font-size: 0.875rem;
    color: var(--sn-text-subtle);
    margin-bottom: 1rem;
}

.sn-symbols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .sn-symbols-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }
}

.sn-symbol-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    padding: 0.75rem 0.35rem;
    cursor: pointer;
    box-shadow: var(--sn-shadow-sm);
    transition: all 0.15s ease;
    user-select: none;
    min-height: 76px;
    box-sizing: border-box;
}

.sn-symbol-item:hover {
    border-color: var(--sn-primary);
    box-shadow: var(--sn-shadow-md);
    transform: translateY(-2px);
    background-color: var(--sn-primary-light);
}

.sn-symbol-item.is-copied {
    background-color: #dcfce7 !important;
    border-color: #22c55e !important;
}

.sn-symbol-char {
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--sn-text-main);
    margin-bottom: 0.25rem;
    font-family: var(--sn-font-sans);
}

.sn-symbol-name {
    font-size: 0.65rem;
    color: var(--sn-text-subtle);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.sn-symbol-codepoint {
    font-family: var(--sn-font-mono);
    font-size: 0.6rem;
    color: var(--sn-text-muted);
}

/* Contact Form (/iletisim/) */
.sn-contact-card {
    background: var(--sn-bg-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--sn-shadow-md);
    max-width: 680px;
    margin: 0 auto;
}

.sn-form-group {
    margin-bottom: 1.25rem;
}

.sn-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sn-text-main);
    margin-bottom: 0.45rem;
}

.sn-input,
.sn-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1.5px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    background: #ffffff;
    color: var(--sn-text-main);
    font-family: var(--sn-font-sans);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.sn-input:focus,
.sn-textarea:focus {
    border-color: var(--sn-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.sn-textarea {
    min-height: 120px;
    resize: vertical;
}

.sn-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background-color: var(--sn-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--sn-radius-md);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
    transition: all 0.15s ease;
}

.sn-btn-submit:hover {
    background-color: var(--sn-primary-hover);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.sn-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alert Boxes */
.sn-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--sn-radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.sn-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.sn-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Toast Notification (Floating) */
.sn-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    padding: 0.85rem 1.25rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--sn-radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 90vw;
    word-break: break-all;
}

.sn-toast-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sn-toast-success {
    border-left: 4px solid #22c55e;
}

.sn-toast-error {
    border-left: 4px solid #ef4444;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sn-result-card,
    .sn-symbol-item,
    .sn-ready-card,
    .sn-toast,
    .sn-sticky-bar,
    .sn-btn-load-more,
    .sn-hero-badge-pulse,
    .sn-hub-card {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    .sn-btn-load-more:hover .sn-btn-load-more-icon,
    .sn-hub-card:hover .sn-arrow {
        transform: none !important;
    }
}


/* Master Related Tools Hub Grid: 3 cols desktop, 2 cols tablet, 1 col mobile with centered incomplete final rows */
.sn-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 0 auto;
    width: 100%;
}

.sn-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    /* Desktop: 3 columns with balanced centered last row */
    flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
    max-width: calc((100% - 2 * 1.25rem) / 3);
    width: calc((100% - 2 * 1.25rem) / 3);
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .sn-hub-card {
        /* Tablet: 2 columns */
        flex: 0 0 calc((100% - 1.25rem) / 2);
        max-width: calc((100% - 1.25rem) / 2);
        width: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 640px) {
    .sn-hub-card {
        /* Mobile: 1 column */
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* Master Editorial Content Section */
.sn-guide-section {
    max-width: 800px;
    margin: 3.5rem auto 0;
    padding: 0 1rem;
    box-sizing: border-box;
    color: var(--sn-text-main);
    line-height: 1.7;
}

.sn-guide-section h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sn-guide-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 0.75rem 0;
    line-height: 1.4;
}

.sn-guide-section p {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 1.25rem;
}

.sn-guide-section ul,
.sn-guide-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.sn-guide-section li {
    margin-bottom: 0.5rem;
}

.sn-guide-section a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.sn-guide-section a:hover {
    color: #4338ca;
}

.sn-guide-section code {
    background: #f1f5f9;
    color: #4f46e5;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: monospace;
}
