/*
Theme Name: YTlio theme
Theme URI: https://littlesoftlab.com
Author: littlesoftlab
Author URI: https://littlesoftlab.com
Description: A YouTube-inspired WordPress theme with built-in Social Login Pro integration. Features dark/light mode toggle, customizable colors, fonts, and full Block Editor & Elementor compatibility.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: YTlio-theme
Tags: dark, light, custom-colors, custom-logo, blog, full-site-editing, block-editor, elementor
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — THEME TOKENS
   ============================================================ */
:root {
    /* Brand */
    --slp-red:          #FF0000;
    --slp-red-dark:     #CC0000;
    --slp-red-light:    #FF4444;

    /* Light Mode (default) */
    --slp-bg:           #FFFFFF;
    --slp-bg-secondary: #F2F2F2;
    --slp-bg-card:      #FFFFFF;
    --slp-bg-hover:     #E5E5E5;
    --slp-border:       #E0E0E0;
    --slp-text:         #0F0F0F;
    --slp-text-muted:   #606060;
    --slp-text-inverse: #FFFFFF;
    --slp-header-bg:    #FFFFFF;
    --slp-sidebar-bg:   #F9F9F9;
    --slp-shadow:       rgba(0,0,0,0.1);

    /* Typography */
    --slp-font:         'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --slp-font-size:    14px;
    --slp-font-size-lg: 16px;
    --slp-heading-size: 20px;
    --slp-heading-weight: 700;
    --slp-line-height:  1.5;
    --slp-radius:       8px;
    --slp-radius-sm:    4px;

    /* Spacing */
    --slp-header-h:     56px;
    --slp-sidebar-w:    240px;
    --slp-content-max-w: 1280px;
    --slp-card-gap:     16px;
    --slp-section-pad:  24px;
    --slp-gap:          16px;
    --slp-gap-lg:       24px;
    --slp-transition:   0.2s ease;
}

/* Dark Mode */
[data-theme="dark"],
body.slp-dark {
    --slp-bg:           #0F0F0F;
    --slp-bg-secondary: #181818;
    --slp-bg-card:      #212121;
    --slp-bg-hover:     #3F3F3F;
    --slp-border:       #3F3F3F;
    --slp-text:         #F1F1F1;
    --slp-text-muted:   #AAAAAA;
    --slp-text-inverse: #0F0F0F;
    --slp-header-bg:    #212121;
    --slp-sidebar-bg:   #181818;
    --slp-shadow:       rgba(0,0,0,0.4);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: var(--slp-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--slp-font);
    font-size: var(--slp-font-size);
    background: var(--slp-bg);
    color: var(--slp-text);
    line-height: var(--slp-line-height);
    transition: background var(--slp-transition), color var(--slp-transition);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--slp-text);
    text-decoration: none;
    transition: color var(--slp-transition);
}
a:hover { color: var(--slp-red); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
#slp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--slp-header-h);
    background: var(--slp-header-bg);
    border-bottom: 1px solid var(--slp-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    box-shadow: 0 1px 4px var(--slp-shadow);
    transition: background var(--slp-transition);
}

/* Hamburger */
.slp-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--slp-radius-sm);
    background: transparent;
    border: none;
    color: var(--slp-text);
    flex-shrink: 0;
}
.slp-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--slp-text);
    border-radius: 2px;
    transition: all var(--slp-transition);
}
.slp-menu-toggle:hover { background: var(--slp-bg-hover); }

/* Logo */
.slp-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    flex-shrink: 0;
}
.slp-logo-icon {
    width: calc(var(--slp-logo-size, 24px) * 1.4);
    height: var(--slp-logo-size, 24px);
    background: var(--slp-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slp-logo-icon svg { width: 66%; height: 66%; fill: #fff; }
.slp-logo img.slp-custom-logo {
    max-height: var(--slp-logo-size, 32px);
    width: auto;
    display: block;
}
.slp-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--slp-text);
    letter-spacing: -0.3px;
}

/* Search Bar */
.slp-search-wrap {
    flex: 1;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 auto;
}
.slp-search-wrap form {
    display: flex;
    align-items: center;
    width: 100%;
}
.slp-search-wrap input {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
    background: var(--slp-bg);
    color: var(--slp-text);
    border: 1px solid var(--slp-border);
    border-right: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    transition: border-color var(--slp-transition);
}
.slp-search-wrap input:focus { border-color: var(--slp-text-muted); }
.slp-search-btn {
    height: 36px;
    padding: 0 16px;
    background: var(--slp-bg-secondary);
    color: var(--slp-text);
    border: 1px solid var(--slp-border);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background var(--slp-transition);
    display: flex;
    align-items: center;
    font-size: 14px;
}
.slp-search-btn:hover { background: var(--slp-bg-hover); }

/* Header Actions */
.slp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Social Icons (header + footer) */
.slp-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.slp-social-icons--footer {
    margin: 12px 0;
    justify-content: center;
    flex-wrap: wrap;
}
.slp-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--slp-bg-secondary);
    color: var(--slp-text);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.2px;
    transition: background var(--slp-transition), color var(--slp-transition), transform .1s;
}
.slp-social-icon:hover {
    background: var(--slp-red);
    color: #fff;
    transform: translateY(-1px);
}

/* Footer Logo (image upload fallback) */
.slp-footer-logo-img {
    max-height: 28px;
    width: auto;
    display: block;
}

/* Dark/Light Toggle */
.slp-theme-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--slp-text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background var(--slp-transition);
}
.slp-theme-toggle:hover { background: var(--slp-bg-hover); }

/* Sign In Button */
.slp-signin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid #3EA6FF;
    border-radius: 20px;
    color: #3EA6FF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--slp-transition);
    white-space: nowrap;
}
.slp-signin-btn:hover { background: rgba(62,166,255,0.1); color: #3EA6FF; }
.slp-signin-btn svg { width: 18px; height: 18px; fill: #3EA6FF; }

/* ============================================================
   LAYOUT — SIDEBAR + CONTENT
   ============================================================ */
#slp-wrapper {
    display: flex;
    min-height: calc(100vh - var(--slp-header-h));
}

/* Sidebar */
#slp-sidebar {
    width: var(--slp-sidebar-w);
    background: var(--slp-sidebar-bg);
    padding: 12px 0;
    flex-shrink: 0;
    position: sticky;
    top: var(--slp-header-h);
    height: calc(100vh - var(--slp-header-h));
    overflow-y: auto;
    transition: width var(--slp-transition), background var(--slp-transition);
    scrollbar-width: thin;
}
#slp-sidebar.collapsed { width: 72px; }

.slp-sidebar-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--slp-border);
    margin-bottom: 4px;
}
.slp-sidebar-section:last-child { border-bottom: none; }

.slp-sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--slp-radius-sm);
    margin: 0 4px;
    cursor: pointer;
    color: var(--slp-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--slp-transition);
    white-space: nowrap;
    overflow: hidden;
}
.slp-sidebar-item:hover,
.slp-sidebar-item.active {
    background: var(--slp-bg-hover);
    color: var(--slp-text);
}
.slp-sidebar-item.active { font-weight: 700; }
.slp-sidebar-icon { font-size: 18px; flex-shrink: 0; }
.slp-sidebar-label { overflow: hidden; text-overflow: ellipsis; }
#slp-sidebar.collapsed .slp-sidebar-label { display: none; }
#slp-sidebar.collapsed .slp-sidebar-section-title { display: none; }

.slp-sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slp-text-muted);
    padding: 8px 16px 4px;
    letter-spacing: 0.5px;
}

/* Main Content */
#slp-main {
    flex: 1;
    min-width: 0;
    padding: var(--slp-section-pad);
}

/* ============================================================
   CHIPS / FILTER BAR
   ============================================================ */
.slp-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: var(--slp-gap-lg);
    padding-bottom: 4px;
}
.slp-chips::-webkit-scrollbar { display: none; }

.slp-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--slp-bg-secondary);
    color: var(--slp-text);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--slp-transition);
    text-decoration: none;
    display: inline-block;
}
.slp-chip:hover { background: var(--slp-bg-hover); color: var(--slp-text); }
.slp-chip.active {
    background: var(--slp-text);
    color: var(--slp-bg);
}

/* ============================================================
   VIDEO / POST GRID
   ============================================================ */
.slp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--slp-card-gap);
}

.slp-card {
    background: var(--slp-bg-card);
    border-radius: var(--slp-radius);
    overflow: hidden;
    transition: transform var(--slp-transition), box-shadow var(--slp-transition);
    cursor: pointer;
}
.slp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--slp-shadow);
}

.slp-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--slp-bg-secondary);
    overflow: hidden;
}
.slp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--slp-transition);
}
.slp-card:hover .slp-card-thumb img { transform: scale(1.03); }

.slp-card-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
}

.slp-card-body {
    display: flex;
    gap: 10px;
    padding: 10px 12px 12px;
}

.slp-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--slp-bg-hover);
    flex-shrink: 0;
    overflow: hidden;
}
.slp-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.slp-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--slp-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.slp-card-info { flex: 1; min-width: 0; }
.slp-card-title {
    font-size: var(--slp-font-size-lg);
    font-weight: 600;
    line-height: 1.4;
    color: var(--slp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.slp-card-meta {
    font-size: 12px;
    color: var(--slp-text-muted);
    line-height: 1.4;
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.slp-single-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--slp-gap-lg);
    align-items: start;
}
@media (max-width: 1024px) {
    .slp-single-wrap { grid-template-columns: 1fr; }
}

.slp-video-player {
    background: #000;
    aspect-ratio: 16/9;
    border-radius: var(--slp-radius);
    overflow: hidden;
    margin-bottom: var(--slp-gap);
}
.slp-video-player img,
.slp-video-player iframe {
    width: 100%;
    height: 100%;
}

.slp-video-title {
    font-size: var(--slp-heading-size);
    font-weight: var(--slp-heading-weight);
    margin-bottom: 8px;
    line-height: 1.4;
}

.slp-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slp-border);
    margin-bottom: var(--slp-gap);
}

.slp-video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slp-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--slp-bg-secondary);
    border: none;
    color: var(--slp-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--slp-transition);
}
.slp-action-btn:hover { background: var(--slp-bg-hover); }
.slp-action-btn.liked { background: var(--slp-red); color: #fff; }

/* Channel row */
.slp-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--slp-gap);
}
.slp-channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slp-red);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.slp-channel-info { flex: 1; }
.slp-channel-name { font-weight: 700; font-size: 14px; }
.slp-channel-subs { font-size: 12px; color: var(--slp-text-muted); }
.slp-subscribe-btn {
    padding: 8px 16px;
    background: var(--slp-text);
    color: var(--slp-bg);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--slp-transition);
}
.slp-subscribe-btn:hover { opacity: 0.85; }
.slp-subscribe-btn.subscribed {
    background: var(--slp-bg-secondary);
    color: var(--slp-text);
}

/* ============================================================
   SIDEBAR — RELATED POSTS
   ============================================================ */
.slp-related-list { display: flex; flex-direction: column; gap: 8px; }
.slp-related-item {
    display: flex;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--slp-radius-sm);
    text-decoration: none;
    color: var(--slp-text);
    transition: background var(--slp-transition);
}
.slp-related-item:hover { background: var(--slp-bg-hover); color: var(--slp-text); }
.slp-related-thumb {
    width: 160px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    background: var(--slp-bg-secondary);
    border-radius: var(--slp-radius-sm);
    overflow: hidden;
    position: relative;
}
.slp-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slp-related-info { flex: 1; }
.slp-related-title {
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}
.slp-related-meta { font-size: 11px; color: var(--slp-text-muted); }

/* ============================================================
   ENTRY CONTENT (blog post body)
   ============================================================ */
.entry-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--slp-text);
}
.entry-content h1,.entry-content h2,.entry-content h3 {
    margin: 1.5em 0 0.5em;
    font-weight: 700;
}
.entry-content p { margin-bottom: 1em; }
.entry-content a { color: var(--slp-red); }
.entry-content ul,.entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.entry-content blockquote {
    border-left: 4px solid var(--slp-red);
    padding: 8px 16px;
    background: var(--slp-bg-secondary);
    border-radius: 0 var(--slp-radius-sm) var(--slp-radius-sm) 0;
    margin: 1em 0;
    font-style: italic;
}
.entry-content img { border-radius: var(--slp-radius); margin: 1em 0; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: var(--slp-gap-lg); }
.comments-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--slp-gap);
}
.comment-list { list-style: none; padding: 0; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--slp-border); }
.comment-author-name { font-weight: 700; font-size: 13px; }
.comment-meta { font-size: 11px; color: var(--slp-text-muted); margin-bottom: 6px; }
.comment-content { font-size: 14px; }

/* Comment Form */
.comment-form { margin-top: var(--slp-gap); }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--slp-bg-secondary);
    border: 1px solid var(--slp-border);
    border-radius: var(--slp-radius-sm);
    color: var(--slp-text);
    font-family: var(--slp-font);
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color var(--slp-transition);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--slp-text-muted);
}
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-form .submit {
    padding: 8px 20px;
    background: var(--slp-text);
    color: var(--slp-bg);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: opacity var(--slp-transition);
}
.comment-form .submit:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
#slp-footer {
    background: var(--slp-header-bg);
    border-top: 1px solid var(--slp-border);
    padding: var(--slp-gap-lg) var(--slp-gap-lg) var(--slp-gap);
    margin-top: var(--slp-gap-lg);
    transition: background var(--slp-transition);
}
.slp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--slp-gap-lg);
    margin-bottom: var(--slp-gap-lg);
}
.slp-footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--slp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.slp-footer-col a {
    display: block;
    font-size: 13px;
    color: var(--slp-text-muted);
    margin-bottom: 8px;
    transition: color var(--slp-transition);
}
.slp-footer-col a:hover { color: var(--slp-text); }
.slp-footer-bottom {
    border-top: 1px solid var(--slp-border);
    padding-top: var(--slp-gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.slp-footer-bottom p { font-size: 12px; color: var(--slp-text-muted); }
.slp-footer-logo { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.login {
    background: var(--slp-bg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
body.login #login {
    background: var(--slp-bg-card);
    border: 1px solid var(--slp-border);
    border-radius: var(--slp-radius);
    padding: 32px 28px;
    box-shadow: 0 4px 24px var(--slp-shadow);
    width: 100%;
    max-width: 380px;
}
body.login h1 a {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    display: block;
    text-align: center;
    color: var(--slp-red) !important;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 4px;
}
body.login .login-action-login h1::after { content: ' ▶'; color: var(--slp-red); }
body.login label { color: var(--slp-text) !important; font-size: 13px; font-weight: 600; }
body.login input[type="text"],
body.login input[type="password"] {
    background: var(--slp-bg-secondary) !important;
    border-color: var(--slp-border) !important;
    color: var(--slp-text) !important;
    border-radius: var(--slp-radius-sm) !important;
    box-shadow: none !important;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: var(--slp-red) !important;
    box-shadow: 0 0 0 2px rgba(255,0,0,0.15) !important;
}
body.login .button-primary {
    background: var(--slp-red) !important;
    border-color: var(--slp-red-dark) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    width: 100%;
}
body.login .button-primary:hover {
    background: var(--slp-red-dark) !important;
}
body.login #nav a,
body.login #backtoblog a { color: var(--slp-text-muted) !important; font-size: 12px; }
body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--slp-red) !important; }

/* ============================================================
   SOCIAL LOGIN BUTTONS — THEME INTEGRATION
   ============================================================ */
.slp-social-buttons { margin: 20px 0; }
.slp-divider { color: var(--slp-text-muted); }
.slp-divider::before, .slp-divider::after { border-color: var(--slp-border); }

.slp-btn {
    background: var(--slp-bg-secondary) !important;
    color: var(--slp-text) !important;
    border-color: var(--slp-border) !important;
    font-family: var(--slp-font) !important;
    border-radius: var(--slp-radius) !important;
}
.slp-btn:hover {
    background: var(--slp-bg-hover) !important;
    box-shadow: 0 2px 8px var(--slp-shadow) !important;
}
.slp-btn-facebook { background: #1877F2 !important; color: #fff !important; }
.slp-btn-github   { background: #24292e !important; color: #fff !important; }

/* ============================================================
   CUSTOMIZER — LIVE PREVIEW CLASSES
   ============================================================ */
.slp-font-youtube  { --slp-font: 'Roboto', sans-serif; }
.slp-font-modern   { --slp-font: 'Inter', sans-serif; }
.slp-font-serif    { --slp-font: 'Georgia', serif; }
.slp-font-mono     { --slp-font: 'JetBrains Mono', monospace; }

.slp-accent-red    { --slp-red: #FF0000; --slp-red-dark: #CC0000; }
.slp-accent-blue   { --slp-red: #065FD4; --slp-red-dark: #0556BD; }
.slp-accent-green  { --slp-red: #00B050; --slp-red-dark: #009040; }
.slp-accent-purple { --slp-red: #9B59B6; --slp-red-dark: #8549A1; }
.slp-accent-orange { --slp-red: #FF6D00; --slp-red-dark: #E56200; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    #slp-sidebar { width: 72px; }
    #slp-sidebar .slp-sidebar-label,
    #slp-sidebar .slp-sidebar-section-title { display: none; }
    #slp-main { padding: 16px; }
}
@media (max-width: 768px) {
    #slp-sidebar { display: none; }
    #slp-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: var(--slp-header-h);
        left: 0;
        height: calc(100vh - var(--slp-header-h));
        z-index: 999;
        width: var(--slp-sidebar-w);
        box-shadow: 4px 0 24px var(--slp-shadow);
    }
    .slp-search-wrap { max-width: 200px; }
    .slp-logo-text { display: none; }
    .slp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
    .slp-search-wrap { display: none; }
    .slp-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    #slp-main { padding: 12px; }
}

/* ============================================================
   BLOCK EDITOR COMPATIBILITY
   ============================================================ */
.wp-block-group { margin: 0; }
.wp-block-columns { gap: var(--slp-gap); }
.wp-block-image img { border-radius: var(--slp-radius); }
.wp-block-quote {
    border-left: 4px solid var(--slp-red);
    padding: 8px 16px;
    background: var(--slp-bg-secondary);
    border-radius: 0 var(--slp-radius-sm) var(--slp-radius-sm) 0;
}
.wp-block-button__link {
    background: var(--slp-red) !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-widget-container { color: var(--slp-text); }
.elementor-section { background: var(--slp-bg); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.slp-container { max-width: var(--slp-content-max-w); margin: 0 auto; padding: 0 var(--slp-gap); }
.slp-text-muted  { color: var(--slp-text-muted); }
.slp-text-red    { color: var(--slp-red); }
.slp-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--slp-red);
    color: #fff;
}
.slp-skeleton {
    background: linear-gradient(90deg, var(--slp-bg-secondary) 25%, var(--slp-bg-hover) 50%, var(--slp-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: slp-shimmer 1.5s infinite;
    border-radius: var(--slp-radius-sm);
}
@keyframes slp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.slp-no-thumb {
    width:100%;
    height:100%;
    background:#202020;
    display:flex;
    align-items:center;
    justify-content:center;
}

.slp-no-thumb span {
    width:60px;
    height:42px;
    background:#ff0000;
    color:#fff;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}
