/*
Theme Name: Camell Smoke Neon Global
Theme URI: https://camell.app
Author: Camell
Author URI: https://camell.app
Description: Dark xám khói + chữ neon nổi cho toàn bộ site & admin. Ẩn header/footer của theme trên frontend, giữ admin sạch.
Version: 1.0
Text Domain: camell-smoke-neon
*/

/* ==================== PALETTE (từ themes zip của Camell) ==================== */

:root {
    --csn-bg: #1f242d;          /* từ admin-dark.css */
    --csn-bg-soft: #262c37;     /* panel tối */
    --csn-bg-panel: #1a1c22;    /* từ table td */
    --csn-bg-panel2: #242637;   /* từ table border */
    --csn-bg-input: #101217;    /* từ inputs */
    --csn-border: #2d3038;      /* từ inputs border */

    --csn-text-main: #eaf3ff;   /* text sáng */
    --csn-text-soft: #cdd8e8;

    --csn-neon: #00ffa8;        /* neon xanh lá */
    --csn-neon-blue: #30e7ff;   /* neon xanh dương */
    --csn-neon-mint: #7fffd4;   /* mint sáng cho heading */
}

/* ==================== GLOBAL BASE (site + admin) ==================== */

html, body {
    background-color: var(--csn-bg);
    color: var(--csn-text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Link neon mặc định (cả site & admin) */
a {
    color: var(--csn-neon-blue);
    text-decoration: none;
    text-shadow: 0 0 6px rgba(48, 231, 255, 0.5);
    transition: color 160ms ease, text-shadow 160ms ease, transform 120ms ease;
}
a:hover,
a:focus {
    color: var(--csn-neon);
    text-shadow:
        0 0 10px rgba(0, 255, 168, 0.6),
        0 0 18px rgba(48, 231, 255, 0.45);
}

/* ==================== FRONTEND LAYOUT (TRANG WEB) ==================== */

body:not(.wp-admin).csn-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 24px 16px;
    background: radial-gradient(circle at top, #1d0c2c 0, #101217 45%, #000000 100%);
}

/* Neon border giống Dark UI cũ nhưng chỉ chạy trên frontend */
body:not(.wp-admin).csn-shell::before {
    content: "";
    position: fixed;
    inset: 10px;
    border-radius: 20px;
    border: 2px solid rgba(0,255,168,0.25);
    box-shadow:
        0 0 12px rgba(0,255,168,0.3),
        0 0 26px rgba(0,255,168,0.15);
    pointer-events: none;
    z-index: 0;
}

/* Khung chính */
.csn-frame {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    width: 100%;
    background: radial-gradient(circle at top, #13151a 0, #101217 45%, #000000 100%);
    border-radius: 18px;
    border: 1px solid rgba(0,255,168,0.18);
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
    padding: 26px 24px 30px;
}

/* Không dùng header/footer theme: ẩn luôn nếu có */
body:not(.wp-admin) header.site-header,
body:not(.wp-admin) footer.site-footer,
body:not(.wp-admin) .site-header,
body:not(.wp-admin) .site-footer {
    display: none;
}

/* Nội dung chính */
.csn-main {
    background: linear-gradient(145deg, rgba(19,21,26,0.97), rgba(16,18,23,0.97));
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.3);
    padding: 22px 22px 26px;
}

/* Bài viết */
.csn-article {
    margin-bottom: 26px;
}
.csn-article:last-child {
    margin-bottom: 0;
}

/* Title bài viết */
.csn-entry-title {
    margin: 0 0 14px;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--csn-neon-mint);
    text-shadow:
        0 0 10px rgba(127,255,212,0.6),
        0 0 20px rgba(0,255,168,0.35);
}

/* Text trong bài */
.csn-entry-content > *:first-child {
    margin-top: 0;
}
.csn-entry-content p {
    margin: 0 0 14px;
    color: var(--csn-text-soft);
}
.csn-entry-content h2,
.csn-entry-content h3,
.csn-entry-content h4 {
    margin-top: 22px;
    margin-bottom: 10px;
    color: var(--csn-neon-blue);
    letter-spacing: 0.02em;
}
.csn-entry-content ul,
.csn-entry-content ol {
    padding-left: 1.3rem;
    margin: 0 0 14px;
}

/* Bảng (dùng màu từ theme cũ) */
.csn-entry-content table {
    width: 100%;
    border-collapse: collapse;
}
.csn-entry-content table th {
    background: #13151a;
    color: var(--csn-neon-mint);
    padding: 12px;
}
.csn-entry-content table td {
    background: #1a1c22;
    padding: 10px;
    border-bottom: 1px solid #242637;
}

/* Inputs (từ theme cũ) */
.csn-entry-content input,
.csn-entry-content textarea,
.csn-entry-content select {
    background: #101217;
    border: 1px solid #2d3038;
    color: #eaf3ff;
    border-radius: 10px;
    padding: 10px;
    max-width: 100%;
}
.csn-entry-content input:focus,
.csn-entry-content textarea:focus,
.csn-entry-content select:focus {
    outline: none;
    border-color: var(--csn-neon-blue);
    box-shadow: 0 0 0 1px rgba(48,231,255,0.6);
}

/* Buttons (từ theme cũ, thêm glow nhẹ) */
.csn-entry-content button,
.csn-entry-content input[type="submit"],
.csn-entry-content .button {
    background: #30e7ff;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    color: #001a11;
    font-weight: 500;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(48,231,255,0.6),
        0 0 22px rgba(0,255,168,0.35);
    transition: transform 120ms ease, box-shadow 160ms ease;
}
.csn-entry-content button:hover,
.csn-entry-content input[type="submit"]:hover,
.csn-entry-content .button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 14px rgba(48,231,255,0.8),
        0 0 26px rgba(0,255,168,0.45);
}

/* ==================== ADMIN SMOKE NEON ==================== */

body.wp-admin {
    background-color: var(--csn-bg);
    color: var(--csn-text-main);
}

/* Khu vực bao quanh */
body.wp-admin #wpwrap,
body.wp-admin #wpcontent,
body.wp-admin #wpbody-content {
    background-color: var(--csn-bg);
}

/* Sidebar menu trái */
body.wp-admin #adminmenuback,
body.wp-admin #adminmenuwrap,
body.wp-admin #adminmenu {
    background-color: var(--csn-bg-soft);
}

/* Link menu */
body.wp-admin #adminmenu a {
    color: var(--csn-text-soft);
}

/* Menu đang chọn + hover có viền neon */
body.wp-admin #adminmenu .wp-has-current-submenu > a.menu-top,
body.wp-admin #adminmenu .wp-menu-open > a.menu-top,
body.wp-admin #adminmenu a:hover {
    background-color: var(--csn-bg-panel);
    color: var(--csn-neon-mint);
    box-shadow: inset 3px 0 0 var(--csn-neon);
}

/* Heading trong admin (Bảng tin, Cài đặt, v.v.) */
body.wp-admin h1,
body.wp-admin h2,
body.wp-admin h3,
body.wp-admin .wp-heading-inline {
    color: var(--csn-neon-mint);
    letter-spacing: 0.04em;
    text-shadow:
        0 0 10px rgba(0,255,168,0.6),
        0 0 18px rgba(48,231,255,0.45);
}

/* Text label, mô tả */
body.wp-admin .form-table th,
body.wp-admin .form-table td,
body.wp-admin .description,
body.wp-admin .blogdescription,
body.wp-admin p,
body.wp-admin label,
body.wp-admin span {
    color: var(--csn-text-soft);
}

/* Dashboard widgets */
body.wp-admin .postbox,
body.wp-admin .stuffbox {
    background-color: var(--csn-bg-panel);
    border: 1px solid var(--csn-bg-panel2);
    color: var(--csn-text-soft);
}

/* Bảng list (posts, plugins, users...) */
body.wp-admin .widefat thead th,
body.wp-admin .wp-list-table thead th {
    background-color: var(--csn-bg-soft);
    color: var(--csn-text-main);
}
body.wp-admin .widefat tbody tr:nth-child(odd),
body.wp-admin .wp-list-table tbody tr:nth-child(odd) {
    background-color: var(--csn-bg-panel);
}
body.wp-admin .widefat tbody tr:nth-child(even),
body.wp-admin .wp-list-table tbody tr:nth-child(even) {
    background-color: var(--csn-bg-panel2);
}
body.wp-admin .wp-list-table tbody td,
body.wp-admin .wp-list-table tbody th {
    color: var(--csn-text-soft);
}

/* Tên chính (tiêu đề bài viết, plugin...) */
body.wp-admin .row-title,
body.wp-admin .wp-list-table td.column-primary strong {
    color: var(--csn-neon-blue);
    text-shadow:
        0 0 10px rgba(48,231,255,0.7),
        0 0 24px rgba(0,255,168,0.4);
}

/* Input / select / textarea */
body.wp-admin input[type="text"],
body.wp-admin input[type="email"],
body.wp-admin input[type="url"],
body.wp-admin input[type="number"],
body.wp-admin input[type="search"],
body.wp-admin textarea,
body.wp-admin select {
    background-color: var(--csn-bg-input);
    border: 1px solid var(--csn-border);
    color: var(--csn-text-main);
    border-radius: 6px;
}
body.wp-admin input:focus,
body.wp-admin textarea:focus,
body.wp-admin select:focus {
    outline: none;
    border-color: var(--csn-neon-blue);
    box-shadow: 0 0 0 1px rgba(48,231,255,0.7);
}

/* Button admin */
body.wp-admin .button,
body.wp-admin .button-secondary {
    background-color: var(--csn-bg-panel2);
    border: 1px solid #4b5563;
    color: var(--csn-text-main);
}
body.wp-admin .button-primary,
body.wp-admin input[type="submit"],
body.wp-admin button[type="submit"] {
    background: linear-gradient(135deg, var(--csn-neon-blue), var(--csn-neon));
    border: 1px solid rgba(255,255,255,0.24);
    color: #001a11;
    box-shadow:
        0 0 10px rgba(48,231,255,0.6),
        0 0 22px rgba(0,255,168,0.4);
}
body.wp-admin .button:hover,
body.wp-admin .button-secondary:hover,
body.wp-admin .button-primary:hover,
body.wp-admin input[type="submit"]:hover,
body.wp-admin button[type="submit"]:hover {
    filter: brightness(1.05);
}

/* Login page */
body.login {
    background-color: var(--csn-bg);
}
body.login #login {
    padding: 24px 20px 28px;
    border-radius: 16px;
    background-color: var(--csn-bg-panel);
    box-shadow: 0 28px 70px rgba(0,0,0,0.9);
}
body.login #loginform {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    background-color: var(--csn-bg-input);
    border: 1px solid var(--csn-border);
    color: var(--csn-text-main);
}
