/*
Theme Name: CoolSymbols
Theme URI: http://coolsymbols.org/
Author: Admin
Author URI: http://coolsymbols.org/
Description: A simple custom stylish name WordPress theme

License: GPL v2 or later
Text Domain: stylishname
*/

/* ============================================
   DESIGN TOKENS
   System font stack only — zero network requests, zero
   render-blocking font swap. One accent color, neutral
   grays. Dark mode swaps these same variables below, so
   no component needs its own dark-mode rules.
   ============================================ */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F7F8FA;
    --surface: #FFFFFF;
    --surface-2: #F1F2F5;
    --ink: #1A1D29;
    --muted: #6B7280;
    --line: #E4E7EC;
    --line-strong: #D0D5DD;

    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --up: #16A34A;
    --down: #EA580C;
    --danger: #DC2626;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Small, cheap shadows only — no large blur radii */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 2px 8px rgba(16, 24, 40, 0.08);

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Consolas", monospace;
}

.dark{
   
        --bg: #16181D;
        --bg-alt: #1D2027;
        --surface: #1D2027;
        --surface-2: #262A33;
        --ink: #EDEEF1;
        --muted: #9CA3AF;
        --line: #30343D;
        --line-strong: #40454F;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #14161B;
    padding: 5px 0px;
}
.site-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #fff;
}
.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
#themeToggle {
    background: #222;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
	cursor:pointer;
	    touch-action: manipulation;
}
.hamburger {
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    transition: background 0.15s ease;
	display:none;
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}
.hamburger svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   VOTE HEADER / ADD-NAME FORM
   ============================================ */
.emoheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.emotitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.emotitle small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}
.emoheader a{
	text-decoration:none;
}

.add-front {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    transition: background 0.15s ease, color 0.15s ease;
}
.add-front:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.add-form {
    display: none;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.add-form-inner {
    display: flex;
    gap: 10px;
}

.add-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.95rem;
}

.add-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.add-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease;
}
.add-submit:hover {
    background: var(--accent-hover);
}

.add-cancel {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.add-cancel:hover {
    border-color: var(--muted);
    color: var(--ink);
}

.add-msg {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--up);
}

/* ============================================
   VOTE ITEMS
   Flat cards, one solid border-color change on hover.
   No pseudo-element glow, no blur — cheap to paint even
   with a long list of cards on screen at once.
   ============================================ */
.items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
    gap: 12px;
    padding: 0 16px;
}

.item {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

.item:hover {
    box-shadow: var(--shadow-md);
}

.item.voted {
    border-color: var(--up);
    background: var(--surface);
}

.item-name {
        font-size: 1.8rem;
    font-weight: 600;
    word-break: break-word;
    color: var(--ink);
    cursor: pointer;
    padding: 5px 20px;
    width: 100%;
    display: block;
}

.item-controls {
        display: flex;
    justify-content: center;
    width: 100%;
    background: var(--bg-alt);
	user-select: none;
}

.item-controls button {
        display: inline-flex;
    align-items: center;
    padding: 5px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--bg-alt);
	    font-size: 10px;
    transition: background 0.15s ease;
	touch-action: manipulation;
}
.alert{
	position:absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
	font-size:0.8rem;
	font-weight:bold;
	display:flex;
	align-items: center;
    justify-content: center;
	background:var(--surface);
}

.emoup-btn {
    color: var(--up);
}
.emoup-btn:hover:not(:disabled) {
    background: rgba(22, 163, 74, 0.12);
}

.emodown-btn {
    color: var(--down);
}
.emodown-btn:hover:not(:disabled) {
    background: rgba(234, 88, 12, 0.12);
}

.emovote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emovote-icon.your-vote {
    color: var(--up);
}

.emoup-count,
.emodown-count {
    min-width: 16px;
    text-align: center;
    font-family: var(--font-mono);
}

.item-enter {
    animation: fadeIn 0.2s ease;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.view-all {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}
.view-all a {
    text-decoration: none;
    padding: 10px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #444;
}
.view-all a:hover {
    color: #000;
}

/* ============================================
   PAGINATION / NAVIGATION
   (single source of truth — do not duplicate
   pagination rules anywhere else in this file.
   Colors come from the shared tokens above, so
   dark mode needs no separate block.)
   ============================================ */
.pagination,
.emopagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.bottom-menu a,
.emopagination .emo-btn,
.emopagination .emo-number {
    display: inline-block;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    min-width: 36px;
    text-align: center;
    cursor: pointer;
    line-height: 1.4;
}
.bottom-menu a{
	margin-bottom:5px
}

.pagination .page-numbers:hover:not(.current):not(.dots),
.emopagination .emo-btn:hover:not(:disabled):not(.emo-current),
.emopagination .emo-number:hover:not(.emo-current),
.bottom-menu a:hover{
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination .page-numbers.current,
.emopagination .emo-number.emo-current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
    cursor: default;
}

.emopagination .emo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
    color: var(--muted);
    padding: 8px 5px;
}
.pagination .page-numbers.dots:hover {
    background: transparent;
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers,
.emopagination .emopage-nav {
    font-weight: 700;
    padding: 8px 18px;
    background: var(--surface-2);
    border-color: var(--line-strong);
}
.emopagination .emopage-nav:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.bottom-menu {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
}

/* --- Mobile Responsive for Pagination / Navigation --- */
@media only screen and (max-width: 767px) {

    .page-content img {
        width: 100%;
        height: auto;
    }
}

/* ============================================
   END OF PAGINATION / NAVIGATION STYLES
   ============================================ */

/* ===== SHARE URL SECTION ===== */
.share-url {
    background: var(--bg-alt);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border: 1px solid var(--line);
}

.share-url label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
}

.share-url input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.share-url input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.share-url button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.share-url button:hover {
    background: var(--accent-hover);
}

.share-url button:active {
    background: var(--accent-hover);
}

/* ===== ARTICLE / POST ===== */
.post {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--line);
}

/* ===== POST TITLE ===== */
.post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 24px;
    word-break: break-word;
}

/* ===== POST CONTENT ===== */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== POST FOOTER ===== */
.post-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    background: var(--bg-alt);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--line);
    transition: background 0.15s ease, color 0.15s ease;
}

.post-tags a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== COMMENT SECTION ===== */
.comment-respond {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

#reply-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}

#reply-title small {
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 12px;
}

#reply-title small a {
    color: var(--accent);
    text-decoration: none;
}

#reply-title small a:hover {
    text-decoration: underline;
}

.logged-in-as {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 16px;
    background: var(--bg-alt);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
}

.logged-in-as a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.logged-in-as a:hover {
    text-decoration: underline;
}

.required-field-message {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.required {
    color: var(--danger);
}

.comment-form-comment {
    margin-top: 14px;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-2);
    color: var(--ink);
    resize: vertical;
    min-height: 140px;
    outline: none;
    transition: border-color 0.15s ease;
}

.comment-form-comment textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-submit {
    margin-top: 18px;
}

#submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

#submit:hover {
    background: var(--accent-hover);
}

#submit:active {
    background: var(--accent-hover);
}

/* ===== BACK TO TOP BUTTON ===== */
.to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: opacity 0.2s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    outline: none;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: var(--accent-hover);
}

.to-top img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
    display: block;
}

/* ===== GENERAL RESPONSIVE (non-pagination) ===== */
@media only screen and (max-width: 767px) {
    .page-content img {
        width: 100%;
        height: auto;
    }

    .post,
    .comment-respond {
        padding: 26px 20px;
        border-radius: var(--radius-md);
    }

    .post-title {
        font-size: 1.7rem;
    }
}