/**
 * EroticMystery Theme Main Stylesheet
 * 
 * Dark Mode + Neon Accents
 * Mobile-First Responsive System
 */

/* ==========================================================================
   0. Custom Variables & Root Settings
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-deep: #08040d;
    --color-bg-card: #12091c;
    --color-bg-elevated: #1a0e28;
    --color-text-main: #d7cfe0;
    --color-text-muted: #8c7e9f;
    --color-text-white: #ffffff;
    
    /* Neon Colors */
    --color-neon-pink: #ff0066;
    --color-neon-purple: #bd00ff;
    --color-neon-cyan: #00e5ff;
    --color-neon-green: #39ff14;
    --color-pulsing-red: #ff003c;
    
    /* Font Families */
    --font-ui: 'Outfit', sans-serif;
    --font-reading: 'Lora', serif;
    
    /* Layout properties */
    --max-width: 1200px;
    --max-reading-width: 760px;
    --border-radius: 12px;
    --shadow-glow-pink: 0 0 8px rgba(255, 0, 102, 0.4);
    --shadow-glow-purple: 0 0 12px rgba(189, 0, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   1. Base & Typography
   ========================================================================== */
body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-neon-pink);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-white);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.7em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-elevated);
    border-radius: 4px;
    border: 2px solid var(--color-bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-neon-purple);
}

/* ==========================================================================
   2. Pulsing Global Header Banner
   ========================================================================== */
.lol24-global-banner {
    background: linear-gradient(90deg, var(--color-pulsing-red), #900018, var(--color-pulsing-red));
    background-size: 200% auto;
    color: var(--color-text-white);
    text-align: center;
    padding: 10px 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 2px 15px rgba(255, 0, 60, 0.5);
    animation: pulseBanner 2s infinite, bgGlow 4s linear infinite;
    position: relative;
    z-index: 1000;
}

.lol24-global-banner a {
    color: var(--color-text-white);
    text-decoration: none;
    display: inline-block;
}

.lol24-global-banner a::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s ease;
}

.lol24-global-banner a:hover::after {
    transform: translateX(5px);
}

@keyframes pulseBanner {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 60, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
    }
}

@keyframes bgGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   3. Header Navigation (Desktop & General)
   ========================================================================== */
.site-header {
    background-color: rgba(8, 4, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(189, 0, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-white);
    letter-spacing: -0.5px;
}

.site-logo span {
    color: var(--color-neon-pink);
    text-shadow: var(--shadow-glow-pink);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-neon-pink);
    background-color: rgba(255, 0, 102, 0.05);
    box-shadow: var(--shadow-glow-pink);
}

/* ==========================================================================
   4. Layout Containers & Sidebar Grid
   ========================================================================== */
.main-wrapper {
    max-width: var(--max-width, 1280px);
    margin: 30px auto;
    padding: 0 20px 80px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .main-wrapper {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 35px;
    }
}

.site-main {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-container {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-container .widget {
    background-color: var(--color-bg-card, #12091c);
    border: 1px solid rgba(189, 0, 255, 0.12);
    border-radius: var(--border-radius, 12px);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feed-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.feed-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-neon-pink), var(--color-neon-purple));
    box-shadow: var(--shadow-glow-pink);
}

/* ==========================================================================
   5. Post Cards / Loop Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Blog / Opowiadania has a separately configurable layout. */
.blog-wrapper .em-blog-grid {
    display: grid !important;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .blog-wrapper .em-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* At tablet widths a 340px sidebar leaves too little room for two story cards. */
@media (max-width: 1200px) {
    .main-wrapper.blog-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.post-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 102, 0.25);
    box-shadow: var(--shadow-glow-purple);
}

.post-thumbnail-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.post-thumbnail-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail-wrap img {
    transform: scale(1.05);
}

.post-cpt-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(8, 4, 13, 0.8);
    backdrop-filter: blur(5px);
    color: var(--color-neon-pink);
    border: 1px solid var(--color-neon-pink);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--color-text-white);
}

.post-card-title a:hover {
    color: var(--color-neon-pink);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

.post-card-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==========================================================================
   6. Sidebar & Filters
   ========================================================================== */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 25px;
}

.widget-title {
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-neon-pink);
    box-shadow: var(--shadow-glow-pink);
}

.widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget ul a {
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.widget ul a:hover {
    color: var(--color-neon-cyan);
}

/* ==========================================================================
   7. Voting Buttons (Global & Cards)
   ========================================================================== */
.lol24-voting-box {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4px 8px;
    gap: 10px;
}

.lol24-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.vote-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lol24-vote-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lol24-vote-up:hover {
    color: var(--color-neon-green);
    filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.5));
}

.lol24-vote-down:hover {
    color: var(--color-neon-pink);
    filter: drop-shadow(0 0 4px rgba(255, 0, 102, 0.5));
}

.lol24-vote-score {
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 25px;
    text-align: center;
}

.lol24-vote-score.positive {
    color: var(--color-neon-green);
}

.lol24-vote-score.negative {
    color: var(--color-neon-pink);
}

.lol24-already-voted .lol24-vote-btn {
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================================================
   8. View Badges
   ========================================================================== */
.lol24-views-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.views-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   9. NSFW 18+ Overlay and Blur
   ========================================================================== */
.nsfw-blurred {
    position: relative;
    overflow: hidden;
}

/* Apply blur to images, text, and other children */
.nsfw-blurred .post-thumbnail-wrap img,
.nsfw-blurred .post-card-excerpt,
.nsfw-blurred .entry-content,
.nsfw-blurred .media-container {
    filter: blur(22px);
    transition: filter 0.3s ease;
    user-select: none;
    pointer-events: none;
}

/* Reset blur globally when body has the active class */
body.lol24-nsfw-unlocked .nsfw-blurred .post-thumbnail-wrap img,
body.lol24-nsfw-unlocked .nsfw-blurred .post-card-excerpt,
body.lol24-nsfw-unlocked .nsfw-blurred .entry-content,
body.lol24-nsfw-unlocked .nsfw-blurred .media-container {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

body.lol24-nsfw-unlocked .lol24-nsfw-overlay {
    display: none !important;
}

/* Globally disabled blurs and overlays as requested by the user */
.lol24-nsfw-overlay {
    display: none !important;
}

.nsfw-blurred .post-thumbnail-wrap img,
.nsfw-blurred .post-card-excerpt,
.nsfw-blurred .entry-content,
.nsfw-blurred .media-container,
.nsfw-blurred .lol24-feed-body > *:not(.lol24-nsfw-overlay) {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

.lol24-nsfw-overlay-content {
    max-width: 320px;
}

.nsfw-badge-18 {
    display: inline-block;
    background-color: var(--color-pulsing-red);
    color: var(--color-text-white);
    font-weight: 800;
    font-size: 1.25rem;
    padding: 6px 14px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.6);
}

.lol24-nsfw-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text-white);
}

.lol24-nsfw-overlay p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.lol24-nsfw-accept-btn {
    background: linear-gradient(135deg, var(--color-neon-pink), var(--color-neon-purple));
    border: none;
    color: var(--color-text-white);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow-pink);
}

.lol24-nsfw-accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.8);
}

/* ==========================================================================
   10. Single templates (Opowiadanie tryb czytania)
   ========================================================================== */
.single-post-container {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 25px;
}

@media (min-width: 768px) {
    .single-post-container {
        padding: 40px;
    }
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.reading-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg-elevated);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.reading-controls-left,
.reading-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctrl-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-muted);
}

.ctrl-btn {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-white);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.ctrl-btn:hover {
    border-color: var(--color-neon-pink);
}

/* Background mode buttons */
.bg-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}

.bg-btn-dark { background-color: #08040d; border-color: rgba(255, 255, 255, 0.1); }
.bg-btn-black { background-color: #000000; border-color: rgba(255, 255, 255, 0.1); }
.bg-btn-purple { background-color: #16002c; border-color: rgba(255, 255, 255, 0.1); }
.bg-btn-sepia { background-color: #2b1f14; border-color: rgba(255, 255, 255, 0.1); }

.bg-btn.active {
    border-color: var(--color-neon-pink);
    box-shadow: var(--shadow-glow-pink);
}

/* Reading container styling overrides based on JS */
.single-opowiadanie .entry-content,
.single-post .entry-content {
    font-family: var(--font-reading);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #e2dbec;
    max-width: var(--max-reading-width);
    margin: 0 auto;
}

.single-opowiadanie .entry-content p,
.single-post .entry-content p {
    margin-bottom: 1.8em;
}

/* Theme overrides for reading views */
.read-bg-black .single-post-container { background-color: #000000; }
.read-bg-purple .single-post-container { background-color: #16002c; }
.read-bg-sepia .single-post-container { background-color: #2b1f14; color: #d6caa9; }
.read-bg-sepia .entry-content { color: #ebdfc0 !important; }

/* ==========================================================================
   11. Media Layouts (Fotka, Wideo, Dowcip, Prasa)
   ========================================================================== */
.media-container {
    text-align: center;
    margin: 30px auto;
    max-width: 100%;
}

.media-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Video Responsive Embed */
.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(189, 0, 255, 0.2);
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.joke-box {
    background-color: var(--color-bg-elevated);
    border-left: 4px solid var(--color-neon-cyan);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-text-white);
}

.prasa-source-banner {
    background-color: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prasa-source-banner a.source-link {
    background-color: var(--color-neon-cyan);
    color: var(--color-bg-deep);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
}

.prasa-source-banner a.source-link:hover {
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================================
   12. HydePark Thread / Forum Layout
   ========================================================================== */
.forum-thread-wrapper {
    margin-top: 40px;
}

.forum-replies-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.replies-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.reply-item {
    background-color: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    border-radius: 50%;
    border: 1px solid var(--color-neon-purple);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--color-text-white);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 1em;
}

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

/* Fast reply Form */
.hydepark-reply-form-box {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
}

.hydepark-reply-form-box textarea {
    width: 100%;
    background-color: var(--color-bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--color-text-main);
    padding: 15px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.hydepark-reply-form-box textarea:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: var(--shadow-glow-purple);
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-neon-pink), var(--color-neon-purple));
    color: var(--color-text-white);
    border: none;
    padding: 12px 28px;
    font-weight: 800;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: var(--shadow-glow-pink);
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.6);
}

.reply-login-alert {
    background-color: rgba(255, 0, 102, 0.05);
    border: 1px solid rgba(255, 0, 102, 0.15);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   13. Submission Form Template (/dodaj/)
   ========================================================================== */
.submission-form-container {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: var(--color-bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--color-text-main);
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-neon-purple);
    box-shadow: var(--shadow-glow-purple);
}

.form-group input[type="file"] {
    background-color: var(--color-bg-deep);
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-neon-pink);
}

.form-feedback {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 600;
    display: none;
}

.form-feedback.success {
    background-color: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
    color: var(--color-neon-green);
    display: block;
}

.form-feedback.error {
    background-color: rgba(255, 0, 102, 0.08);
    border: 1px solid rgba(255, 0, 102, 0.2);
    color: var(--color-neon-pink);
    display: block;
}

/* ==========================================================================
   14. Mobile Navigation & Floating Bar
   ========================================================================== */
.mobile-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(8, 4, 13, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(189, 0, 255, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

@media (min-width: 992px) {
    .mobile-bottom-navbar {
        display: none; /* Hide on desktop */
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--color-neon-pink);
    text-shadow: var(--shadow-glow-pink);
}

.mobile-nav-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-bottom: 2px;
}

/* Offset for mobile screens because of fixed bottom bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 60px;
    }
}

/* ==========================================================================
   15. Pagination & Footer
   ========================================================================== */
.pagination-box {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-box .page-numbers {
    padding: 8px 16px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--color-text-main);
}

.pagination-box .page-numbers.current {
    background: linear-gradient(135deg, var(--color-neon-pink), var(--color-neon-purple));
    color: var(--color-text-white);
    border: none;
    box-shadow: var(--shadow-glow-pink);
}

.pagination-box a.page-numbers:hover {
    border-color: var(--color-neon-pink);
}

.site-footer {
    background-color: #040207;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    list-style: none;
}

.footer-nav a {
    color: var(--color-text-muted);
}

.footer-nav a:hover {
    color: var(--color-neon-pink);
}

/* ==========================================================================
   16. Custom Feed Cards (Strefa and Poczekalnia)
   ========================================================================== */
body.page-template-template-strefa-glowna-php .posts-grid,
body.page-template-template-poczekalnia-php .posts-grid,
.strefa-wrapper .posts-grid,
.poczekalnia-wrapper .posts-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
}

/* Hide sidebar ad block on Strefa template page */
body.page-template-template-strefa-glowna-php .widget-ad-neverblock {
    display: none !important;
}

.lol24-feed-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.lol24-feed-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 102, 0.25);
    box-shadow: var(--shadow-glow-purple);
}

.lol24-feed-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.lol24-feed-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.lol24-feed-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lol24-feed-meta i {
    color: var(--color-neon-pink);
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.lol24-feed-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--color-neon-pink);
    background-color: rgba(255, 0, 102, 0.1);
    color: var(--color-neon-pink);
}

.lol24-feed-badge.dowcip {
    border-color: var(--color-neon-purple);
    background-color: rgba(189, 0, 255, 0.1);
    color: var(--color-neon-purple);
}

.lol24-feed-badge.fotka {
    border-color: var(--color-neon-blue);
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--color-neon-blue);
}

.lol24-feed-badge.wideo {
    border-color: var(--color-neon-green);
    background-color: rgba(57, 255, 20, 0.1);
    color: var(--color-neon-green);
}

.lol24-feed-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 5px 0 0 0;
    line-height: 1.3;
}

.lol24-feed-title a {
    color: var(--color-text-white);
    text-decoration: none;
    transition: var(--transition);
}

.lol24-feed-title a:hover {
    color: var(--color-neon-pink);
}

.lol24-feed-body {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-white);
}

.lol24-feed-body.fotka {
    padding: 10px 0;
}

.lol24-feed-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lol24-feed-video {
    padding: 10px 0;
}

.lol24-feed-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lol24-feed-text {
    word-break: break-word;
}

.lol24-feed-text p {
    margin-bottom: 12px;
}

.lol24-feed-text p:last-child {
    margin-bottom: 0;
}

.prasa-source {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.prasa-source a {
    color: var(--color-neon-blue);
    text-decoration: underline;
}

.read-more-link {
    color: var(--color-neon-pink);
    font-weight: 600;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

.lol24-feed-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    margin-top: 5px;
}

.lol24-feed-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lol24-feed-actions-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lol24-action-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.lol24-action-item:hover {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.lol24-action-item i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.lol24-action-item.fav-btn.active,
.lol24-action-item.fav-btn.active i {
    color: var(--color-neon-pink) !important;
    text-shadow: 0 0 8px rgba(255, 0, 102, 0.4);
}

.lol24-comments-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.lol24-comments-link a:hover {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.lol24-comments-link i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.lol24-feed-voting {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

/* NSFW blur on full body */
.nsfw-blurred .lol24-feed-body > *:not(.lol24-nsfw-overlay) {
    filter: blur(15px);
    pointer-events: none;
    user-select: none;
}

body.lol24-nsfw-unlocked .nsfw-blurred .lol24-feed-body > *:not(.lol24-nsfw-overlay) {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}

/* ==========================================================================
   17. Strefa/Poczekalnia Sub-Navigation Menu
   ========================================================================== */
.lol24-cpt-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background-color: rgba(8, 4, 13, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lol24-cpt-menu-left,
.lol24-cpt-menu-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lol24-menu-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.lol24-menu-item:hover {
    color: var(--color-text-white);
    border-color: rgba(189, 0, 255, 0.3);
    background-color: rgba(189, 0, 255, 0.05);
}

.lol24-menu-item.active {
    background: linear-gradient(135deg, var(--color-neon-pink), var(--color-neon-purple));
    color: var(--color-text-white);
    border-color: transparent;
    box-shadow: var(--shadow-glow-pink);
}

.lol24-menu-item.active-parent {
    background: rgba(189, 0, 255, 0.15);
    color: var(--color-text-white);
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

/* Hide top primary menu on mobile screens to prevent layout overlap */
@media (max-width: 991px) {
    .main-navigation {
        display: none !important;
    }
    
    .lol24-cpt-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lol24-cpt-menu-left,
    .lol24-cpt-menu-right {
        justify-content: center;
    }
}

/* Sidebar widgets scrollable categories lists */
.widget-categories-list ul {
    max-height: 170px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom modern scrollbars for scrollable category lists */
.widget-categories-list ul::-webkit-scrollbar {
    width: 6px;
}
.widget-categories-list ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.widget-categories-list ul::-webkit-scrollbar-thumb {
    background: rgba(189, 0, 255, 0.3);
    border-radius: 3px;
}
.widget-categories-list ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 102, 0.5);
}

/* Sidebar Custom Widgets Styles */
.widget-title-indicator {
    color: var(--color-neon-pink);
    font-weight: 900;
    margin-right: 8px;
    text-shadow: var(--shadow-glow-pink);
}

/* 1. Top Posts Widget */
.top-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.top-post-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
}

.top-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-post-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.top-post-title a {
    color: var(--color-text-white);
    text-decoration: none;
    transition: var(--transition);
}

.top-post-title a:hover {
    color: var(--color-neon-pink);
}

.top-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.top-post-meta .post-cpt-badge {
    position: static;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: lowercase;
}

.top-post-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2ecc71;
    font-weight: 700;
}

.top-post-score i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* 2. Top Authors & Online Users Widgets */
.top-authors-list,
.online-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.top-author-item,
.online-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar img,
.avatar-wrapper img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name,
.user-name {
    color: var(--color-text-white);
    font-size: 0.92rem;
    font-weight: 700;
}

.author-count {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Avatar Status Dot */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
}

.avatar-wrapper .status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-card);
}

.avatar-wrapper.online .status-dot {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
}

.avatar-wrapper.offline .status-dot {
    background-color: #7f8c8d;
}

/* Community link style */
.widget .see-all-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-neon-pink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.widget .see-all-link:hover {
    color: var(--color-text-white);
    text-shadow: var(--shadow-glow-pink);
}

/* Opowiadania Card Menu (Główna Card Menu) */
.lol24-glowna-card-menu-container {
    width: 100%;
}

.lol24-glowna-card-menu {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: rgba(8, 4, 13, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lol24-cpt-menu-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* Dropdown styling inside card menu */
.lol24-menu-item-dropdown {
    position: relative;
    display: inline-block;
}

.lol24-menu-item.has-dropdown::after {
    content: " \25be";
    font-size: 0.75rem;
    margin-left: 5px;
}

.lol24-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.2);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    margin-top: 5px;
}

.lol24-menu-item-dropdown:hover .lol24-dropdown-content {
    display: block;
}

.lol24-dropdown-content a {
    color: var(--color-text-muted);
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.lol24-dropdown-content a:hover {
    color: var(--color-text-white);
    background-color: rgba(189, 0, 255, 0.1);
    text-shadow: none;
    box-shadow: none;
}

.lol24-dropdown-content.dropdown-grid {
    display: none;
    grid-template-columns: repeat(3, 190px);
    gap: 2px 10px;
    min-width: 600px;
    padding: 15px;
}

.lol24-menu-item-dropdown:hover .lol24-dropdown-content.dropdown-grid {
    display: grid;
}

@media (max-width: 768px) {
    .lol24-glowna-card-menu {
        padding: 12px;
    }
    
    .lol24-cpt-menu-row {
        gap: 8px;
    }
    
    .lol24-menu-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .lol24-dropdown-content.dropdown-grid {
        grid-template-columns: repeat(2, 140px);
        min-width: 300px;
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Sidebar Tag Cloud styles */
.widget-area {
    min-width: 0;
}
.lol24-sidebar-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 5px 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(189, 0, 255, 0.3) rgba(8, 4, 13, 0.2);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.lol24-sidebar-tags::-webkit-scrollbar {
    height: 4px;
}
.lol24-sidebar-tags::-webkit-scrollbar-track {
    background: rgba(8, 4, 13, 0.2);
    border-radius: 10px;
}
.lol24-sidebar-tags::-webkit-scrollbar-thumb {
    background: rgba(189, 0, 255, 0.5);
    border-radius: 10px;
}
.lol24-sidebar-tags::-webkit-scrollbar-thumb:hover {
    background: var(--color-neon-pink);
}
.sidebar-tag-link {
    font-size: 0.85rem;
    color: #e5b3f7;
    background-color: rgba(142, 68, 173, 0.15);
    border: 1px solid rgba(142, 68, 173, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    display: inline-block;
}

.sidebar-tag-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #a83279, #d38312);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(168, 50, 121, 0.4);
}

.sidebar-tag-link .count {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-left: 2px;
}

/* ==========================================================================
   18. Live Chat Container & Bubbles Styles
   ========================================================================== */
.lol24-chat-container {
    display: flex;
    background-color: #12091c;
    border: 1px solid rgba(168, 50, 121, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(8, 4, 13, 0.6);
    overflow: hidden;
    margin-bottom: 30px;
    height: 600px;
}

/* Chat Sidebar */
.lol24-chat-sidebar {
    width: 280px;
    background-color: rgba(8, 4, 13, 0.4);
    border-right: 1px solid rgba(168, 50, 121, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .lol24-chat-container {
        flex-direction: column;
        height: 700px;
    }
    .lol24-chat-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(168, 50, 121, 0.15);
        padding: 12px;
        height: auto;
    }
}

.lol24-chat-sidebar-section h3 {
    font-size: 0.95rem;
    color: #ff66cc;
    text-shadow: 0 0 5px rgba(255, 102, 204, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.lol24-chat-sidebar-section .chat-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Status Dot styling */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
}

.status-dot.pulsing {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.chat-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-rules-list li {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-rules-list li i {
    color: #00e676;
    font-size: 1rem;
}

/* Current user profile block */
.chat-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-user-profile .avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
}

.chat-user-profile .avatar-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ff66cc;
}

.chat-user-profile .avatar-wrap .status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #12091c;
}

.chat-user-profile .profile-info {
    display: flex;
    flex-direction: column;
}

.chat-user-profile .profile-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.chat-user-profile .profile-role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.lol24-chat-sidebar-section .anon-text {
    font-size: 0.8rem;
    color: #ff66cc;
    font-style: italic;
}

/* Chat Main Area */
.lol24-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(18, 9, 28, 0.2);
}

/* Chat Rooms Tabs */
.lol24-chat-rooms-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background-color: rgba(8, 4, 13, 0.4);
    border-bottom: 1px solid rgba(168, 50, 121, 0.2);
    padding: 10px 15px;
}
.chat-room-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}
.chat-room-tab:hover {
    color: #fff;
    border-bottom-color: rgba(255, 102, 204, 0.3);
}
.chat-room-tab.active {
    color: #ff66cc;
    border-bottom-color: #ff66cc;
    text-shadow: 0 0 8px rgba(255, 102, 204, 0.5);
}

/* Messages area */
.lol24-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

/* Chat loading and placeholders */
.chat-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    gap: 12px;
}

.chat-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(168, 50, 121, 0.2);
    border-top-color: #ff66cc;
    border-radius: 50%;
    animation: chatSpin 0.8s linear infinite;
}

@keyframes chatSpin {
    to { transform: rotate(360deg); }
}

/* Messages items */
.chat-message-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
    animation: chatMessageFadeIn 0.25s ease-out;
}

@keyframes chatMessageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-item .msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-item .msg-body {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.chat-message-item .msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-message-item .chat-message-user {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Rank Coloring */
.chat-message-item.rank-admin .chat-message-user {
    color: #ff3366;
    text-shadow: 0 0 4px rgba(255, 51, 102, 0.4);
}

.chat-message-item.rank-moderator .chat-message-user {
    color: #00e676;
    text-shadow: 0 0 4px rgba(0, 230, 118, 0.4);
}

.chat-message-item.rank-vip .chat-message-user {
    color: #ffd700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

.chat-message-item.rank-user .chat-message-user {
    color: #ff66cc;
}

.chat-message-item .msg-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.chat-message-item .msg-text {
    font-size: 0.9rem;
    color: #f1e9f5;
    line-height: 1.45;
    word-break: break-word;
}

.chat-message-item .msg-text a {
    color: #ff66cc;
    text-decoration: underline;
}

/* Chat Footer & Input */
.lol24-chat-footer {
    padding: 15px 20px;
    background-color: rgba(8, 4, 13, 0.3);
    border-top: 1px solid rgba(168, 50, 121, 0.15);
}

.lol24-chat-input-bar {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 50, 121, 0.4);
    border-radius: 30px;
    padding: 4px 6px;
    gap: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: border-color 0.2s ease-in-out;
}

.lol24-chat-input-bar:focus-within {
    border-color: #ff66cc;
    box-shadow: 0 0 10px rgba(255, 102, 204, 0.2);
}

.lol24-chat-action-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lol24-chat-action-btn:hover {
    transform: scale(1.15);
}

#lol24-chat-message-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 8px 10px;
}

.lol24-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a83279, #d38312);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lol24-chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(168, 50, 121, 0.4);
}

.lol24-chat-send-btn i {
    font-size: 1.1rem;
}

/* Emoji picker styling */
.lol24-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background-color: rgba(8, 4, 13, 0.8);
    border: 1px solid rgba(168, 50, 121, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: chatMessageFadeIn 0.2s ease;
}

.lol24-emoji-picker .emoji-item {
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: none;
}

.lol24-emoji-picker .emoji-item:hover {
    transform: scale(1.3);
}

/* Chat login prompt styling */
.lol24-chat-login-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
}

.lol24-chat-login-prompt p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.btn-chat-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a83279, #d38312);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(168, 50, 121, 0.3);
}

.btn-chat-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 50, 121, 0.5);
    color: #fff;
}

/* Community / Społeczność Page Styles */
.community-desc {
    margin-bottom: 30px;
    font-size: 1rem;
    color: var(--color-text-muted);
}
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.community-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(189, 0, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.community-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 0, 102, 0.25);
    box-shadow: var(--shadow-glow-purple);
}
.community-card-avatar {
    position: relative;
    width: 80px;
    height: 80px;
}
.community-card-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}
.community-card-avatar .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-bg-card);
}
.community-card-avatar.online .status-dot {
    background-color: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
}
.community-card-avatar.offline .status-dot {
    background-color: #7f8c8d;
}
.community-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.community-username {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin: 0;
}
.community-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.rank-badge-admin {
    background-color: rgba(255, 0, 102, 0.1);
    color: var(--color-neon-pink);
    border: 1px solid var(--color-neon-pink);
}
.rank-badge-moderator {
    background-color: rgba(189, 0, 255, 0.1);
    color: var(--color-neon-purple);
    border: 1px solid var(--color-neon-purple);
}
.rank-badge-vip {
    background-color: rgba(211, 131, 18, 0.1);
    color: #d38312;
    border: 1px solid #d38312;
}
.rank-badge-user {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.community-status-text {
    font-size: 0.8rem;
    font-weight: 600;
}
.community-status-text.online {
    color: #2ecc71;
}
.community-status-text.offline {
    color: var(--color-text-muted);
}

/* ==========================================================================
   23. Confessional Booth & Ranks Styling
   ========================================================================== */
.confessional-page-wrapper {
    margin-bottom: 40px;
}

.confessional-booth-container {
    position: relative;
    background: linear-gradient(135deg, #12061e 0%, #06020a 100%);
    border: 2px solid #3d1b5c;
    border-radius: 12px;
    padding: 40px 90px;
    margin-bottom: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(189, 0, 255, 0.05);
    overflow: hidden;
}

/* Side candle columns */
.confessional-side-column {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.confessional-side-column.left-candle {
    left: 25px;
}
.confessional-side-column.right-candle {
    right: 25px;
}

/* Candle element */
.confessional-candle {
    width: 18px;
    height: 90px;
    background: linear-gradient(to right, #4a0d24, #9a1f49, #4a0d24);
    border-radius: 4px 4px 0 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-in-out;
}
.confessional-candle::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 3px;
    width: 3px;
    height: 25px;
    background: #9a1f49;
    border-radius: 2px;
    opacity: 0.7;
}

/* Candle flame */
.candle-flame {
    width: 12px;
    height: 26px;
    background: radial-gradient(ellipse at bottom, #ffcc00 20%, #ff5500 50%, #880000 100%);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    top: -24px;
    left: 3px;
    box-shadow: 0 0 12px #ff5500, 0 0 25px #ffcc00;
    transform-origin: center bottom;
    animation: flicker 2s infinite ease-in-out;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Glow when ignited */
.confessional-candle.candle-ignited {
    opacity: 1;
}
.confessional-candle.candle-ignited .candle-flame {
    opacity: 1;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-1deg); }
    20% { transform: scale(1.1) rotate(1deg); }
    40% { transform: scale(0.95) rotate(-2deg); }
    60% { transform: scale(1.05) rotate(0deg); }
    80% { transform: scale(1) rotate(2deg); }
    100% { transform: scale(1) rotate(-1deg); }
}

/* Center Form Panel */
.confessional-center-panel {
    flex: 1;
    min-width: 0;
}

.confessional-screen {
    position: relative;
    display: flex;
    flex-direction: column;
}

.confessional-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(189, 0, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.confessional-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e5b3f7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.confessional-rank-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Rank Badges */
.confession-rank-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.confession-rank-badge.rank-nowicjusz {
    background-color: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.confession-rank-badge.rank-kusiciel {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.confession-rank-badge.rank-jawnogrzesznik {
    background-color: rgba(189, 0, 255, 0.1);
    color: var(--color-neon-purple);
    border: 1px solid var(--color-neon-purple);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

.confession-rank-badge.rank-kardynal {
    background-color: rgba(255, 0, 102, 0.1);
    color: var(--color-neon-pink);
    border: 1px solid var(--color-neon-pink);
    box-shadow: 0 0 12px rgba(255, 0, 102, 0.4);
    animation: goldGlow 2s infinite alternate;
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 5px var(--color-neon-pink); }
    100% { box-shadow: 0 0 15px var(--color-neon-pink), 0 0 25px rgba(255, 0, 102, 0.5); }
}

/* Textarea container */
.confessional-textarea-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(189, 0, 255, 0.15);
}

/* Gothic screen/grille overlay in background of textarea */
.confessional-grille {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(189, 0, 255, 0.05) 15%, transparent 16%),
        radial-gradient(rgba(189, 0, 255, 0.05) 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.confessional-grille.grille-active {
    background-image: 
        radial-gradient(rgba(189, 0, 255, 0.1) 15%, transparent 16%),
        radial-gradient(rgba(189, 0, 255, 0.1) 15%, transparent 16%);
}

#lol24-confession-text {
    width: 100%;
    min-height: 180px;
    background-color: rgba(18, 9, 28, 0.85);
    color: #f1dbff;
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: 8px;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    outline: none;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}
#lol24-confession-text::placeholder {
    color: rgba(229, 179, 247, 0.4);
    font-style: italic;
}

#lol24-confession-text:focus {
    background-color: rgba(8, 4, 13, 0.95);
}

.confessional-action-row {
    display: flex;
    justify-content: flex-end;
}

.confessional-submit-btn {
    background: linear-gradient(90deg, var(--color-neon-purple) 0%, var(--color-neon-pink) 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.confessional-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.5);
}

.confessional-submit-btn:disabled {
    background: #2b1f3c;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.confession-feedback {
    display: none;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.confession-feedback.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.confession-feedback.success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.recent-confessions-section {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .confessional-booth-container {
        padding: 20px;
    }
    .confessional-side-column {
        display: none; /* Hide candles on small mobile screens */
    }
}

/* Confessional Nickname Input Styling */
.confessional-nick-row {
    margin-bottom: 15px;
    width: 100%;
}

#grzech_nick {
    width: 100%;
    background-color: rgba(18, 9, 28, 0.65);
    color: #f1dbff;
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
}

#grzech_nick:focus {
    background-color: rgba(18, 9, 28, 0.85);
    border-color: rgba(189, 0, 255, 0.4);
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.8);
}

#grzech_nick::placeholder {
    color: rgba(229, 179, 247, 0.4);
    font-style: italic;
}

/* Confessional CTA Card at the end of post */
.confessional-cta-card {
    position: relative;
    background: linear-gradient(135deg, #18092c 0%, #08040d 100%);
    border: 2px solid var(--color-neon-purple);
    border-radius: 12px;
    padding: 35px 25px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(189, 0, 255, 0.2), inset 0 0 15px rgba(189, 0, 255, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.confessional-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: var(--color-neon-pink);
    filter: blur(90px);
    opacity: 0.12;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.confessional-cta-content {
    position: relative;
    z-index: 2;
}

.confessional-cta-icon {
    font-size: 38px;
    color: var(--color-neon-pink);
    margin-bottom: 12px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.confessional-cta-icon i {
    font-size: 38px;
    width: 38px;
    height: 38px;
    display: inline-block;
    line-height: 1;
}

.confessional-cta-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e5b3f7;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confessional-cta-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.confessional-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--color-neon-purple) 0%, var(--color-neon-pink) 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(255, 0, 102, 0.3);
    transition: all 0.3s ease;
}

.confessional-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.5);
    color: #fff !important;
}

/* ==========================================================================
   Additional Styles for Favorites, Quick Actions & UX Improvements
   ========================================================================== */

/* Active Favorites Button styling */
.lol24-action-item.fav-btn.active {
    color: var(--color-neon-pink) !important;
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.4);
}

.lol24-action-item.fav-btn.active i,
.lol24-action-item.fav-btn.active .dashicons {
    color: var(--color-neon-pink) !important;
}

/* Sidebar Quick Actions Widget */
.widget-quick-actions {
    background-color: var(--color-bg-card);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-neon-pink));
    color: var(--color-text-white) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.2);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.35);
    color: var(--color-text-white) !important;
}

.quick-action-btn i,
.quick-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Audiobook Track Share Features */
.abp-playlist-item .abp-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.abp-track-share-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    outline: none;
}

.abp-track-share-btn:hover {
    color: var(--color-neon-pink);
    background-color: rgba(255, 255, 255, 0.08);
}

.abp-track-share-btn i,
.abp-track-share-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    display: block;
    line-height: 1;
}

/* Share notification toast */
.lol24-share-toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #18092c 0%, #08040d 100%);
    color: #fff;
    border: 1px solid var(--color-neon-pink);
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 25px rgba(255, 0, 102, 0.4);
    opacity: 0;
    z-index: 9999999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.lol24-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ExoClick & NeverBlock Ad Containers & Feed Tiles
   ========================================================================== */
.post-card.ad-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 320px;
    background: var(--color-bg-card, #140510);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 12px);
    padding: 20px 15px;
    text-align: center;
}

.post-card.ad-card .ad-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted, #a1a1aa);
    margin-bottom: 12px;
    display: block;
    width: 100%;
}

.post-card.ad-card .ad-content-box {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

ins[data-zoneid],
.ad-content-box ins,
.single-post-ad-wrap ins,
.widget-ad-neverblock ins {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    min-height: 250px;
}

.exoclick-ad-wrap {
    display: block;
    width: 100%;
    margin: 15px auto;
    text-align: center;
}

/* ==========================================================================
   HOMEPAGE MODULAR BLOCKS & LAYOUT MANAGERS
   ========================================================================== */
.em-fullwidth-wrapper {
    grid-template-columns: 1fr !important;
}
.em-fullwidth-main {
    max-width: 100% !important;
    width: 100% !important;
}

/* Instagram Reels/posts submitted in Fotki i Filmiki. */
.lol24-instagram-embed {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    overflow: hidden;
}
.lol24-instagram-embed .instagram-media {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
}

.em-block-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

/* 1. Featured Stories Grid */
.em-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.em-featured-card {
    background: rgba(20, 11, 30, 0.7);
    border: 1px solid rgba(255, 0, 127, 0.2);
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    flex-direction: column;
}
.em-featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-neon-pink, #ff007f);
    box-shadow: 0 8px 24px rgba(255, 0, 127, 0.25);
}
.em-featured-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.em-featured-thumb-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #111;
    overflow: hidden;
}
.em-featured-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.em-featured-card:hover .em-featured-thumb-wrap img {
    transform: scale(1.06);
}
.em-card-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff007f, #e11d48);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.em-featured-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.em-featured-meta {
    font-size: 0.72rem;
    color: var(--color-text-muted, #a1a1aa);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.em-featured-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2. Categories Pills Grid */
.em-categories-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.em-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.em-category-pill:hover {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--color-neon-pink, #ff007f);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.2);
}
.em-cat-count {
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 12px;
    color: #d0c0d8;
}

/* 3. Compact List Mode */
.em-compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.em-compact-card {
    display: flex;
    gap: 16px;
    background: rgba(20, 11, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--border-radius, 10px);
    padding: 12px;
    transition: all 0.2s ease;
    align-items: center;
}
.em-compact-card:hover {
    border-color: rgba(255, 0, 127, 0.4);
    background: rgba(20, 11, 30, 0.85);
    transform: translateX(4px);
}
.em-compact-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}
.em-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.em-compact-body {
    flex: 1;
    min-width: 0;
}
.em-compact-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--color-text-muted, #a1a1aa);
    margin-bottom: 4px;
}
.em-compact-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.em-compact-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.em-compact-title a:hover {
    color: var(--color-neon-pink, #ff007f);
}
.em-compact-excerpt {
    font-size: 0.82rem;
    color: var(--color-text-muted, #a1a1aa);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. Top Rated Stories */
.em-top-rated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.em-top-rated-card {
    background: rgba(20, 11, 30, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}
.em-top-rated-card:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}
.em-rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f59e0b;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.em-top-rated-info {
    flex: 1;
    min-width: 0;
}
.em-top-rated-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.em-top-rated-title a {
    color: #fff;
    text-decoration: none;
}
.em-top-rated-title a:hover {
    color: #f59e0b;
}
.em-top-rated-score {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
}

/* 5. Mini Randki AI Grid on Homepage */
.em-randki-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
}
.em-randki-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 0, 127, 0.2);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
    text-align: center;
}
.em-randki-mini-card:hover {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--color-neon-pink, #ff007f);
    transform: translateY(-3px);
}
.em-randki-mini-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.em-randki-mini-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid var(--color-neon-pink, #ff007f);
}
.em-randki-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.em-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #140b1e;
    border-radius: 50%;
}
.em-randki-mini-details h4 {
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 2px 0;
}
.em-randki-mini-details p {
    font-size: 0.75rem;
    color: var(--color-text-muted, #a1a1aa);
    margin: 0 0 8px 0;
}
.em-btn-flirt {
    background: linear-gradient(135deg, #ff007f, #d6006c);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* 6. Fotki Community Grid */
.em-fotki-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.em-fotka-tile {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    display: block;
}
.em-fotka-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.em-fotka-tile:hover img {
    transform: scale(1.08);
}
.em-fotka-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 8px;
}
.em-fotka-overlay span {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fotki i Filmiki: compact, click-first media gallery.
   Full-size images and embeds remain available only after opening the post. */
.lol24-media-thumb-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 16px !important;
}
.lol24-media-thumb-grid .lol24-feed-card {
    position: relative;
    min-width: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
}
.lol24-media-thumb-grid .lol24-feed-header {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 42px 12px 12px;
    border: 0;
    background: linear-gradient(to top, rgba(7, 3, 12, 0.96), rgba(7, 3, 12, 0));
    pointer-events: none;
}
.lol24-media-thumb-grid .lol24-feed-meta,
.lol24-media-thumb-grid .lol24-feed-footer {
    display: none;
}
.lol24-media-thumb-grid .lol24-feed-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}
.lol24-media-thumb-grid .lol24-feed-title a {
    pointer-events: auto;
}
.lol24-media-thumb-grid .lol24-feed-body,
.lol24-media-thumb-grid .lol24-feed-body.fotka,
.lol24-media-thumb-grid .lol24-feed-image,
.lol24-media-thumb-grid .lol24-feed-video {
    width: 100%;
    height: 220px;
    padding: 0;
    overflow: hidden;
}
.lol24-media-thumb-grid .lol24-feed-image > a {
    display: block;
    width: 100%;
    height: 100%;
}
.lol24-media-thumb-grid .lol24-feed-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.lol24-media-thumb-grid .lol24-feed-card:hover .lol24-feed-image img {
    transform: scale(1.05);
}
.lol24-media-thumb-grid .lol24-instagram-embed {
    width: 100%;
    max-width: none;
    height: 220px;
    margin: 0;
}
.lol24-media-thumb-grid .lol24-instagram-embed .instagram-media,
.lol24-media-thumb-grid .lol24-feed-video iframe {
    width: 100% !important;
    min-width: 0 !important;
    height: 220px !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
}
@media (max-width: 560px) {
    .lol24-media-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .lol24-media-thumb-grid .lol24-feed-body,
    .lol24-media-thumb-grid .lol24-feed-body.fotka,
    .lol24-media-thumb-grid .lol24-feed-image,
    .lol24-media-thumb-grid .lol24-feed-video,
    .lol24-media-thumb-grid .lol24-instagram-embed,
    .lol24-media-thumb-grid .lol24-instagram-embed .instagram-media,
    .lol24-media-thumb-grid .lol24-feed-video iframe {
        height: 170px !important;
    }
}
