/*
Theme Name: ThemeTV Theme
Theme URI: https://chatjovenes.net
Description: Custom TV channel theme - Spanish chat rooms platform
Author: Anirudha Talmale
Version: 1.4.0
License: Proprietary
Text Domain: chatjovenes
*/

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo span {
    color: var(--primary);
}

/* Header Action Buttons */
.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    height: 40px;
    color: #fff !important;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
    margin: 0 5px;
    white-space: nowrap;
}

.header-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    color: #fff !important;
}

.header-btn-inicio {
    background: var(--primary);
}

.header-btn-chat {
    background: #e74c3c;
}

.header-btn-facebook {
    background: #4267B2;
}

.header-btn-whatsapp {
    background: #128C7E;
}

/* Radio Button */
.radio-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    margin-left: 10px;
}

.radio-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.main-nav ul li {
    text-align: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--bg-section);
    color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Connect form */
.connect-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.connect-form input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--text);
}

.connect-form input[type="text"]::placeholder {
    color: var(--text-muted);
}

.btn-connect {
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-connect:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ===== HERO CHAT SECTION ===== */
.hero-chat-section {
    padding: 40px 0;
}

.hero-chat-section .chat-embed-wrapper {
    max-width: 100%;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== CHAT ROOM CARDS ===== */
.rooms-section {
    padding: 50px 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.room-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.room-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.room-card-body {
    padding: 18px;
}

.room-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

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

.room-card-title a:hover {
    color: var(--primary);
}

/* Chat bubble icon on room cards */
.chat-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E") no-repeat center;
}

.room-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.room-card-body {
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.room-card-btn {
    margin-top: auto !important;
}

.room-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.room-card-meta .users-online {
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-card-meta .users-online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.room-card-btn {
    display: block;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
}

.room-card-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== CATEGORIES GRID ===== */
.categories-section {
    padding: 50px 0;
    background: var(--bg-section);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.category-card-body {
    padding: 16px;
}

.category-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

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

.category-card-title a:hover {
    color: var(--primary);
}

/* Folder icon on category cards */
.folder-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E") no-repeat center;
}

.category-card-count {
    font-size: 13px;
    color: var(--accent);
    font-weight: 400;
    margin-left: 6px;
}

.category-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    text-align: left;
}

.category-card-body {
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.category-card-body .room-card-btn {
    margin-top: auto !important;
}

/* ===== CATEGORY HEADER ===== */
.category-header {
    padding: 30px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header-image {
    float: left;
    width: 200px;
    height: auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin: 0 24px 16px 0;
}

.category-header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.category-header-info h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.category-header-desc,
.category-header-desc p,
.category-header-info p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.category-chat-box {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.category-chat-label {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.category-chat-box .chat-embed-wrapper {
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
}

.chat-room-main .chat-embed-wrapper {
    max-width: 100%;
}

body.dark-mode .category-header {
    background: #1e293b;
}

body.dark-mode .category-header-image,
body.dark-mode .chat-room-thumb {
    border-color: #334155;
}

body.dark-mode .category-chat-box {
    background: #1e293b;
}

/* ===== ALL ROOMS LINK GRID ===== */
.all-rooms-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 20px;
}

.room-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--primary);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
}

.room-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: #f97316;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
}

.room-link:hover {
    background: var(--bg-section);
    color: var(--primary-dark);
}

body.dark-mode .room-link {
    color: #60a5fa;
    border-color: #2d3748;
}

body.dark-mode .room-link:hover {
    background: #1e293b;
}

/* ===== RELATED ROOMS LINKS (single room page) ===== */
.related-rooms-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
}

.related-rooms-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 50px;
}

.related-room-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
}

.related-room-link::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: #f97316;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
}

.related-room-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

body.dark-mode .related-rooms-section {
    background: #1e293b;
}

body.dark-mode .related-room-link {
    color: #60a5fa;
}

/* ===== XAT CHAT EMBED SECTION ===== */
.chat-embed-section {
    padding: 50px 0;
}

.chat-embed-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-embed-wrapper iframe {
    width: 100%;
    height: 610px;
    border: none;
    overflow: hidden;
}

.chat-embed-wrapper {
    overflow: hidden;
}

.chat-embed-wrapper::-webkit-scrollbar {
    display: none;
}

.chat-embed-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== CHANNELS LIST ===== */
.channels-section {
    padding: 50px 0;
    background: var(--bg-section);
}

.channels-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.channels-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.channels-list {
    list-style: none;
}

.channels-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.channels-list li:last-child {
    border-bottom: none;
}

.channels-list a {
    color: var(--text);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channels-list a:hover {
    color: var(--primary);
}

.channels-list .channel-badge {
    font-size: 12px;
    padding: 2px 8px;
    background: var(--bg-section);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ===== NEWS / BLOG SECTION ===== */
.news-section {
    padding: 50px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card-body {
    padding: 18px;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== FOOTER ABOUT SECTION ===== */
.footer-about {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

.footer-about p:last-child {
    margin-bottom: 0;
}

body.dark-mode .footer-about {
    border-color: #2d3748;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-icon-list,
.footer-check-list {
    list-style: none;
}

.footer-icon-list li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
    background: #f97316;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2 4v7.053c0 .414.168.812.465 1.102l8.38 8.38a1.56 1.56 0 002.21 0l7.48-7.48a1.56 1.56 0 000-2.21l-8.38-8.38A1.553 1.553 0 0011.053 3H4a2 2 0 00-2 2zm4.5 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E") no-repeat center;
}

.footer-check-list li::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
    background: #f97316;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") no-repeat center;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== SIDEBAR (SINGLE POST) ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

.sidebar .widget {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

/* ===== SINGLE POST ===== */
.single-post-content {
    max-width: 800px;
}

.single-post-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
}

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

.post-content h2 {
    font-size: 24px;
    margin: 30px 0 12px;
}

.post-content h3 {
    font-size: 20px;
    margin: 24px 0 10px;
}

.post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ===== CHAT ROOM PAGE (with sidebar) ===== */
.chat-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px 0;
}

.chat-breadcrumb a {
    color: var(--primary);
}

.chat-breadcrumb a:hover {
    text-decoration: underline;
}

.chat-breadcrumb span {
    margin: 0 6px;
    color: var(--text-muted);
}

.chat-breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.chat-room-layout {
    display: block;
    max-width: 100%;
}

.chat-room-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.chat-room-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.chat-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-room-info h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.chat-room-sidebar .sidebar-widget {
    background: var(--card-bg, var(--bg));
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-room-list {
    list-style: none;
}

.sidebar-room-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-room-list li:last-child {
    border-bottom: none;
}

.sidebar-room-list a {
    color: var(--text);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-room-list a:hover {
    color: var(--primary);
}

.sidebar-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dark mode sidebar */
body.dark-mode .chat-room-sidebar .sidebar-widget {
    background: #1e293b;
}

body.dark-mode .sidebar-widget-title {
    color: #e2e8f0;
}

body.dark-mode .sidebar-room-list a {
    color: #cbd5e1;
}

body.dark-mode .sidebar-room-list li {
    border-color: #2d3748;
}

body.dark-mode .chat-breadcrumb .current {
    color: #e2e8f0;
}

/* ===== PAGE TEMPLATE ===== */
.page-content {
    padding: 40px 0;
}

.page-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    .connect-form {
        flex-direction: column;
        padding: 0 20px;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .all-rooms-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-rooms-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .channels-columns {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .chat-room-layout {
        display: block;
    }

    .chat-room-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-room-thumb {
        display: none;
    }

    .category-header {
        padding: 0;
        background: none;
    }

    .category-header-image {
        float: none;
        width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
        margin: 0 0 16px 0;
    }

    .category-header-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .category-header-info h1 {
        font-size: 22px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-col-channels {
        display: none;
    }

    .footer-col-corp {
        display: none;
    }

    .chat-embed-wrapper iframe {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .room-card-image {
        height: 120px;
    }

    .room-card-body {
        padding: 12px;
        min-height: 120px;
    }

    .chat-embed-wrapper iframe {
        height: 550px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s, opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

/* ===== NORMAS SECTION ===== */
.normas-section {
    padding: 50px 0;
    border-top: 1px solid var(--border);
}

.normas-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.normas-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.normas-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.normas-rules {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--border);
}

.norma-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.norma-item:last-child {
    border-bottom: none;
}

.norma-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.norma-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.norma-text strong {
    color: var(--text);
}

.normas-box {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.normas-box-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--accent);
}

.normas-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.normas-box p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

body.dark-mode .normas-section {
    border-color: #2d3748;
}

body.dark-mode .normas-rules {
    background: #1e293b;
    border-color: #2d3748;
}

body.dark-mode .norma-item {
    border-color: #2d3748;
}

body.dark-mode .norma-text {
    color: #e2e8f0;
}

body.dark-mode .norma-text strong {
    color: #e2e8f0;
}

body.dark-mode .normas-box {
    background: #1e293b;
    border-color: #2d3748;
    border-left-color: var(--accent);
}

body.dark-mode .normas-title {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .normas-content {
        grid-template-columns: 1fr;
    }
}

/* ===== RADIO PLAYER BOX (per room/category) ===== */
.radio-player-box {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.radio-player-label {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.radio-player-content {
    width: 100%;
    background: transparent;
}

.radio-player-content .cjrp-player {
    max-width: 100% !important;
    margin: 0;
    border-radius: 0;
}

.radio-player-content iframe {
    width: 100%;
    border: none;
    display: block;
}

.radio-player-content audio {
    width: 100%;
    display: block;
}

body.dark-mode .radio-player-box {
    background: transparent;
}

/* ===== GLOBAL RADIO BAR ===== */
.global-radio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}

.global-radio-bar .radio-bar-content {
    width: 100%;
}

.global-radio-bar .radio-bar-content iframe {
    width: 100%;
    border: none;
    display: block;
}

.global-radio-bar .radio-bar-content audio {
    width: 100%;
    display: block;
    padding: 10px 20px;
}

.has-radio-bar .dark-mode-toggle {
    bottom: 80px;
}

.has-radio-bar .scroll-top-btn {
    bottom: 140px;
}

/* ===== WORDPRESS DEFAULTS ===== */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
