/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */

/* === Sidebar Meme Custom === */

/* Listă top meme-uri */
.sidebar .top-memes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .top-meme-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar .top-meme-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.sidebar .top-meme-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar .top-meme-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    color: inherit;
    text-decoration: none;
}

.sidebar .top-meme-title:hover {
    text-decoration: underline;
    color: #00bcd4;
}

.sidebar .top-meme-stats {
    font-size: 12px;
    opacity: 0.8;
}

/* Random meme box */
.sidebar .random-meme-box {
    margin-top: 24px;
}

.sidebar .random-meme-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    background-color: #00bcd4;
    color: #000;
    transition: background 0.2s ease-in-out;
}

.sidebar .random-meme-btn:hover {
    background-color: #00a0b3;
}

/* Dark / Light adaptare */
html.s-light .sidebar {
    background-color: #f5f5f5;
    color: #222;
    box-shadow: 0 0 10px rgba(0,0,0,.05);
}

html.s-dark .sidebar {
    background-color: #151515;
    color: #fff;
    box-shadow: 0 0 10px #000;
}

/* Sidebar custom pentru pagina meme */
.meme-sidebar,
.sidebar-meme,
.sidebar {
    border-radius: 10px;
    padding: 20px;
}

/* Light */
html.s-light .meme-sidebar {
    background: #f5f5f5;
    color: #222;
    box-shadow: 0 0 10px rgba(0,0,0,.05);
}

/* Dark */
html.s-dark .meme-sidebar {
    background: #1e1e1e;
    color: #fff;
    box-shadow: 0 0 10px #000;
}

.meme-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(127,127,127,.3);
    padding-bottom: 5px;
    color: #00bcd4;
}

.meme-sidebar a { text-decoration: none; }
html.s-light .meme-sidebar a { color: #175676; }
html.s-dark  .meme-sidebar a { color: #00bcd4; }
.meme-sidebar a:hover { text-decoration: underline; }
/* Specific doar pentru pagina de meme */
.meme-sidebar {
    margin-top: 20px;
}

/* Light/Dark auto */
html.s-light .meme-sidebar { background: #f5f5f5; color: #222; }
html.s-dark  .meme-sidebar { background: #1e1e1e; color: #fff; }

/* Ascunde butonul pe desktop */
.sidebar-toggle {
    display: none;
}

/* Afișează doar pe mobil */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }
}
