/*
Theme Name: YTMclub
Theme URI: https://www.ytmclub.com
Description: Kid-friendly community theme for Lina's YouTube Making Club — works with bbPress + BuddyPress
Version: 2.0.0
Author: YTMclub
Text Domain: ytmclub
Requires at least: 6.0
Requires PHP: 7.4
*/

/* =============================================
   YTMclub.css — All visual styles
   Updated to match final demo designs
   ============================================= */

:root {
    --ytm-purple: #6c5ce7;
    --ytm-pink: #e84393;
    --ytm-blue: #0984e3;
    --ytm-green: #00b894;
    --ytm-yellow: #fdcb6e;
    --ytm-orange: #e17055;
    --ytm-bg: #f0f2f5;
    --ytm-white: #fff;
    --ytm-gray-100: #f5f5f5;
    --ytm-gray-200: #e4e6e9;
    --ytm-gray-500: #999;
    --ytm-gray-800: #333;
    --ytm-radius: 16px;
    --ytm-radius-sm: 12px;
    --ytm-shadow: 0 1px 4px rgba(0,0,0,0.08);
    --ytm-shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
    --ytm-max-w: 1100px;
}

/* --- Layout --- */
.ytm-container { max-width: var(--ytm-max-w); margin: 0 auto; padding: 28px 24px; }
.ytm-center { text-align: center; }
.ytm-hidden { display: none !important; }

/* --- Header --- */
.ytm-header { background: var(--ytm-white); box-shadow: var(--ytm-shadow); position: sticky; top: 0; z-index: 1000; }
.ytm-header-inner { max-width: var(--ytm-max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.ytm-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.2rem; color: var(--ytm-purple); }
.ytm-logo-yt { background: red; color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.9rem; }
.ytm-nav { display: flex; align-items: center; gap: 6px; }
.ytm-nav a { padding: 8px 16px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; color: var(--ytm-gray-800); transition: all 0.2s; }
.ytm-nav a:hover { background: var(--ytm-purple); color: #fff; }
.ytm-nav-btn { background: var(--ytm-purple) !important; color: #fff !important; }
.ytm-nav-logout { background: transparent !important; color: var(--ytm-gray-500) !important; font-size: 0.8rem !important; }
.ytm-nav-user { display: flex; align-items: center; gap: 6px; background: #f0edff; padding: 4px 14px 4px 4px; border-radius: 25px; }
.ytm-nav-user .ytm-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ytm-purple); }
.ytm-nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ytm-purple); }
@media (max-width: 768px) {
    .ytm-nav-toggle { display: block; }
    .ytm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px; flex-direction: column; box-shadow: var(--ytm-shadow); }
    .ytm-nav.open { display: flex; }
    .ytm-nav a { text-align: center; width: 100%; }
}

/* --- Footer --- */
.ytm-footer { background: #1a1a2e; color: #fff; text-align: center; padding: 24px; }
.ytm-footer-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 8px; }
.ytm-footer-links a { color: var(--ytm-yellow); font-weight: 700; }
.ytm-footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- Hero --- */
.ytm-hero { background: linear-gradient(135deg, #e8e0ff 0%, #fce4ec 50%, #e3f2fd 100%); padding: 60px 24px; text-align: center; position: relative; overflow: hidden; }
.ytm-hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.c-pink { color: var(--ytm-pink); }
.c-yt { background: red; color: #fff; padding: 2px 12px; border-radius: 8px; display: inline-block; }
.c-blue { color: var(--ytm-blue); }
.ytm-hero-sub { background: var(--ytm-yellow); display: inline-block; padding: 8px 24px; border-radius: 25px; font-weight: 700; font-size: 1.1rem; margin-bottom: 28px; }
.ytm-hero-badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; font-weight: 700; }
@media (max-width: 600px) { .ytm-hero h1 { font-size: 1.8rem; } }

/* --- Cards Grid --- */
.ytm-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.ytm-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0; }
@media (max-width: 768px) { .ytm-cards-3, .ytm-cards-4 { grid-template-columns: 1fr; } }
.ytm-card { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 24px 20px; border: 1px solid var(--ytm-gray-200); transition: all 0.25s; }
.ytm-card:hover { border-color: var(--ytm-purple); transform: translateY(-4px); box-shadow: var(--ytm-shadow-hover); }
.ytm-card-hd { color: #fff; display: inline-block; padding: 5px 16px; border-radius: 20px; font-weight: 800; font-size: 0.95rem; margin-bottom: 14px; }
.bg-blue { background: var(--ytm-blue); } .bg-purple { background: var(--ytm-purple); } .bg-green { background: var(--ytm-green); }
.ytm-card-list { list-style: none; }
.ytm-card-list li { padding: 4px 0; font-weight: 600; font-size: 0.95rem; }
.ytm-card-accent { font-weight: 700; color: var(--ytm-pink); margin-bottom: 8px; }
.ytm-card-highlight { text-align: center; margin-top: 14px; padding: 8px; background: #f0fff0; border-radius: 10px; font-weight: 800; color: var(--ytm-green); }

/* --- Rules / Why / Section --- */
.ytm-section-title { text-align: center; font-size: 1.6rem; font-weight: 900; color: var(--ytm-purple); margin-bottom: 24px; }
.ytm-section-title-sm { font-size: 1.1rem; font-weight: 800; color: var(--ytm-gray-800); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }
.ytm-rules-bar { background: var(--ytm-white); border: 3px solid var(--ytm-blue); border-radius: var(--ytm-radius); padding: 24px; }
.ytm-rules-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.ytm-rule { flex: 1; min-width: 80px; }
.ytm-why-card { text-align: center; padding: 24px 14px; background: var(--ytm-white); border-radius: var(--ytm-radius); border: 1px solid var(--ytm-gray-200); }
.ytm-why-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 10px; }
.bg-pink-light { background: #ffe8e8; } .bg-green-light { background: #e8f5e8; }
.bg-yellow-light { background: #fff3e0; } .bg-blue-light { background: #e3f2fd; }
.ytm-why-card h3 { font-size: 0.85rem; font-weight: 800; color: var(--ytm-purple); margin-bottom: 4px; }
.ytm-why-card p { font-size: 0.8rem; color: var(--ytm-gray-500); }

/* --- CTA --- */
.ytm-cta { background: linear-gradient(135deg, #6c5ce7, #a855f7); text-align: center; padding: 50px 24px; color: #fff; }
.ytm-cta h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; }
.ytm-cta-btn { display: inline-block; background: var(--ytm-yellow); color: var(--ytm-gray-800); font-size: 1.3rem; font-weight: 900; padding: 14px 40px; border-radius: 50px; transition: transform 0.2s; }
.ytm-cta-btn:hover { transform: scale(1.05); color: var(--ytm-gray-800); }

/* --- Breadcrumb --- */
.ytm-breadcrumb { font-size: 0.85rem; color: var(--ytm-gray-500); margin-bottom: 16px; }
.ytm-breadcrumb a { color: var(--ytm-purple); font-weight: 600; }

/* --- Page Header --- */
.ytm-page-hd { margin-bottom: 24px; }
.ytm-page-hd h1 { font-size: 1.8rem; font-weight: 900; color: var(--ytm-gray-800); }
.ytm-page-sub { color: var(--ytm-gray-500); font-size: 0.95rem; margin-top: 4px; }

/* --- Forum List --- */
.ytm-forum-list { display: flex; flex-direction: column; gap: 10px; }
.ytm-forum-row { display: flex; align-items: center; gap: 18px; background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 20px 24px; border: 1px solid var(--ytm-gray-200); transition: all 0.25s; color: inherit; }
.ytm-forum-row:hover { border-color: var(--ytm-purple); transform: translateX(6px); box-shadow: var(--ytm-shadow-hover); color: inherit; }
.ytm-forum-icon { font-size: 2.4rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; flex-shrink: 0; }
.ytm-forum-info { flex: 1; min-width: 0; }
.ytm-forum-title { font-weight: 800; font-size: 1.1rem; color: var(--ytm-gray-800); }
.ytm-forum-desc { font-size: 0.85rem; color: var(--ytm-gray-500); margin-top: 2px; }
.ytm-forum-latest { font-size: 0.8rem; color: var(--ytm-purple); margin-top: 6px; }
.ytm-forum-stats { display: flex; gap: 20px; flex-shrink: 0; text-align: center; }
.ytm-stat-num { font-size: 1.3rem; font-weight: 900; color: var(--ytm-purple); display: block; }
.ytm-stat-label { font-size: 0.7rem; color: var(--ytm-gray-500); font-weight: 600; text-transform: uppercase; }

/* --- Topic List --- */
.ytm-topic-list { display: flex; flex-direction: column; gap: 6px; }
.ytm-topic-row { display: flex; align-items: center; gap: 14px; background: var(--ytm-white); border-radius: var(--ytm-radius-sm); padding: 14px 18px; border: 1px solid var(--ytm-gray-200); transition: all 0.2s; color: inherit; }
.ytm-topic-row:hover { border-color: var(--ytm-purple); color: inherit; }
.ytm-topic-avatar .ytm-avatar { border-radius: 50%; border: 2px solid #e0dcff; }
.ytm-topic-icon { font-size: 1.3rem; flex-shrink: 0; }
.ytm-topic-info { flex: 1; min-width: 0; }
.ytm-topic-title { font-weight: 700; font-size: 0.95rem; color: var(--ytm-gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ytm-topic-meta { font-size: 0.8rem; color: var(--ytm-gray-500); }
.ytm-topic-counts { flex-shrink: 0; font-size: 0.8rem; color: var(--ytm-gray-500); display: flex; gap: 12px; }
.ytm-topic-replies { flex-shrink: 0; font-size: 0.85rem; color: var(--ytm-gray-500); }

/* --- Topic View --- */
.ytm-topic-card { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 28px; border: 1px solid var(--ytm-gray-200); margin-bottom: 24px; }
.ytm-topic-heading { font-size: 1.5rem; font-weight: 900; color: var(--ytm-gray-800); margin: 18px 0 14px; }
.ytm-post-header { display: flex; align-items: center; gap: 14px; }
.ytm-post-avatar .ytm-avatar { border-radius: 50%; border: 3px solid var(--ytm-purple); }
.ytm-post-meta { flex: 1; }
.ytm-post-author { font-weight: 800; color: var(--ytm-purple); }
.ytm-post-time { font-size: 0.8rem; color: var(--ytm-gray-500); }
.ytm-post-content { line-height: 1.9; font-size: 0.95rem; margin-top: 8px; }
.ytm-post-content p { margin-bottom: 10px; }
.ytm-post-media { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ytm-post-img { max-width: 280px; border-radius: 12px; border: 1px solid var(--ytm-gray-200); }
.ytm-reply-num { font-size: 0.75rem; color: #ccc; font-weight: 700; }
.ytm-replies-heading { font-size: 1.15rem; font-weight: 800; color: var(--ytm-purple); margin-bottom: 14px; }
.ytm-reply-card { background: var(--ytm-white); border-radius: var(--ytm-radius-sm); padding: 18px 20px; margin-bottom: 8px; border-left: 4px solid var(--ytm-purple); position: relative; }
.ytm-reply-card:nth-child(even) { background: #faf9ff; }

/* --- Members Grid (social card style) --- */
.ytm-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.ytm-member-card { background: var(--ytm-white); border-radius: var(--ytm-radius); overflow: hidden; border: 1px solid var(--ytm-gray-200); transition: all 0.25s; color: inherit; display: block; }
.ytm-member-card:hover { border-color: var(--ytm-purple); transform: translateY(-4px); box-shadow: var(--ytm-shadow-hover); color: inherit; }
.ytm-member-photo { width: 100%; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ytm-member-photo img { width: 75%; height: 75%; object-fit: contain; }
.ytm-member-body { padding: 14px 16px 18px; }
.ytm-member-name { font-weight: 900; font-size: 1.05rem; color: var(--ytm-gray-800); }
.ytm-member-grade { font-size: 0.8rem; color: var(--ytm-gray-500); margin-top: 2px; }
.ytm-member-stats { font-size: 0.78rem; color: #bbb; margin-top: 6px; }
.ytm-member-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.ytm-role-tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 12px; background: #f0edff; color: var(--ytm-purple); font-weight: 700; }

/* --- Profile Page (photo on left) --- */
.ytm-profile-card { background: var(--ytm-white); border-radius: var(--ytm-radius); border: 1px solid var(--ytm-gray-200); margin-bottom: 24px; overflow: hidden; }
.ytm-profile-top { display: flex; align-items: stretch; }
.ytm-profile-photo { width: 220px; min-height: 240px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ytm-profile-photo img { width: 70%; height: auto; object-fit: contain; }
.ytm-profile-info { flex: 1; padding: 28px; display: flex; flex-direction: column; }
.ytm-profile-name { font-size: 1.6rem; font-weight: 900; color: var(--ytm-gray-800); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ytm-profile-bio { color: #666; margin: 10px 0; font-size: 0.95rem; line-height: 1.6; flex: 1; }
.ytm-profile-stats { display: flex; gap: 24px; margin-top: 8px; }
.ytm-profile-roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 28px 20px; border-top: 1px solid #f0f0f0; }
@media (max-width: 640px) {
    .ytm-profile-top { flex-direction: column; }
    .ytm-profile-photo { width: 100%; min-height: 200px; }
    .ytm-profile-info { align-items: center; text-align: center; }
}

/* --- Forms --- */
.ytm-form-card { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 24px; border: 1px solid var(--ytm-gray-200); margin-top: 12px; }
.ytm-form-card h3 { font-size: 1rem; font-weight: 800; color: var(--ytm-purple); margin-bottom: 14px; }
.ytm-input, .ytm-select { width: 100%; padding: 12px 16px; border: 2px solid var(--ytm-gray-200); border-radius: var(--ytm-radius-sm); font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s; margin-bottom: 10px; background: #fff; }
.ytm-input:focus, .ytm-select:focus, .ytm-textarea:focus { border-color: var(--ytm-purple); outline: none; }
.ytm-textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--ytm-gray-200); border-radius: var(--ytm-radius-sm); font-size: 0.95rem; font-family: inherit; resize: vertical; margin-bottom: 10px; }
.ytm-form-actions { display: flex; gap: 8px; margin-top: 8px; }
.ytm-form-group { margin-bottom: 16px; }
.ytm-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: var(--ytm-gray-800); }

/* --- Buttons --- */
.ytm-btn { display: inline-block; padding: 10px 24px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; border: 2px solid var(--ytm-gray-200); background: var(--ytm-white); color: var(--ytm-gray-800); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.ytm-btn:hover { border-color: var(--ytm-purple); color: var(--ytm-purple); }
.ytm-btn-primary { background: var(--ytm-purple); color: #fff; border-color: var(--ytm-purple); }
.ytm-btn-primary:hover { background: var(--ytm-pink); border-color: var(--ytm-pink); color: #fff; }
.ytm-btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.ytm-btn-danger { color: #e74c3c; border-color: #e74c3c; }
.ytm-btn-danger:hover { background: #e74c3c; color: #fff; }

/* --- Badge --- */
.ytm-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; background: #f0edff; color: var(--ytm-purple); }

/* --- Notices --- */
.ytm-notice { padding: 12px 16px; border-radius: var(--ytm-radius-sm); font-size: 0.85rem; margin: 12px 0; background: #fff8e1; color: #856404; border: 1px solid #ffe082; }
.ytm-login-prompt { background: #f5f3ff; border: 2px dashed #d0c9ff; border-radius: var(--ytm-radius-sm); padding: 18px; text-align: center; margin: 12px 0; font-size: 0.9rem; color: #666; }
.ytm-login-prompt a { font-weight: 800; }
.ytm-empty { text-align: center; padding: 40px; color: var(--ytm-gray-500); font-size: 1.1rem; }

/* --- Toast --- */
.ytm-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--ytm-purple); color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 20px rgba(108,92,231,0.3); z-index: 99999; animation: ytm-fadein 0.3s ease, ytm-fadeout 0.3s ease 2.5s forwards; }
@keyframes ytm-fadein { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes ytm-fadeout { from { opacity: 1; } to { opacity: 0; } }

/* --- Pagination --- */
.ytm-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.ytm-page-link, .ytm-page-current { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; }
.ytm-page-link { background: var(--ytm-white); color: var(--ytm-purple); border: 1px solid var(--ytm-gray-200); }
.ytm-page-link:hover { border-color: var(--ytm-purple); }
.ytm-page-current { background: var(--ytm-purple); color: #fff; }

/* --- Edit Profile: Avatar Selector (two separate cards) --- */
.ytm-edit-section { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 28px; border: 1px solid var(--ytm-gray-200); margin-bottom: 20px; }
.ytm-avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 500px) { .ytm-avatar-grid { grid-template-columns: repeat(4, 1fr); } }
.ytm-avatar-opt { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ytm-gray-200); cursor: pointer; overflow: hidden; transition: all 0.2s; background: var(--ytm-gray-100); padding: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.ytm-avatar-opt:hover { border-color: var(--ytm-purple); transform: scale(1.08); }
.ytm-avatar-selected { border-color: var(--ytm-pink); box-shadow: 0 0 0 3px rgba(232,67,147,0.25); }
.ytm-avatar-opt img { width: 100%; height: 100%; object-fit: cover; }
.ytm-avatar-check { position: absolute; bottom: 2px; right: 2px; background: var(--ytm-pink); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; display: none; align-items: center; justify-content: center; font-weight: 900; }
.ytm-avatar-selected .ytm-avatar-check { display: flex; }
.ytm-avatar-name { text-align: center; font-size: 0.72rem; color: var(--ytm-gray-500); margin-top: 4px; font-weight: 600; }

/* --- Upload Photo (Facebook album style) --- */
.ytm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ytm-photo-item { aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 1px solid var(--ytm-gray-200); }
.ytm-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.ytm-photo-add { aspect-ratio: 4/5; border-radius: 10px; border: 2px dashed #d0d0d0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; position: relative; font-size: 0.85rem; color: var(--ytm-gray-500); font-weight: 700; }
.ytm-photo-add:hover { border-color: var(--ytm-purple); background: #faf8ff; }
.ytm-photo-add-icon { font-size: 2rem; margin-bottom: 4px; }
.ytm-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* --- Checkbox Grid --- */
.ytm-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 500px) { .ytm-checkbox-grid { grid-template-columns: 1fr; } }
.ytm-checkbox-item { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--ytm-gray-200); transition: all 0.2s; }
.ytm-checkbox-item:hover { border-color: var(--ytm-purple); }
.ytm-checkbox-item.checked { border-color: var(--ytm-purple); background: #f8f6ff; }
.ytm-checkbox-item input[type="checkbox"] { accent-color: var(--ytm-purple); width: 18px; height: 18px; }

/* --- Reply Form --- */
.ytm-reply-form-box { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 24px; border: 1px solid var(--ytm-gray-200); margin-top: 24px; }
.ytm-reply-form-box h3 { font-size: 1rem; font-weight: 800; color: var(--ytm-purple); margin-bottom: 12px; }

/* --- Message --- */
.ytm-msg { margin-top: 8px; font-size: 0.85rem; }
.ytm-msg.success { color: var(--ytm-green); }
.ytm-msg.error { color: #e74c3c; }

/* --- General page content --- */
.ytm-page-content h1 { font-size: 1.6rem; font-weight: 900; color: var(--ytm-purple); margin-bottom: 16px; }
.ytm-entry { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 24px; border: 1px solid var(--ytm-gray-200); line-height: 1.8; }

/* =============================================
   bbPress Overrides — match YTMclub design
   ============================================= */

/* Forum list */
#bbpress-forums .bbp-body .bbp-forum-info,
#bbpress-forums .bbp-body .bbp-forum-content { background: var(--ytm-white); border-radius: var(--ytm-radius); padding: 20px 24px; border: 1px solid var(--ytm-gray-200); margin-bottom: 10px; transition: all 0.25s; }
#bbpress-forums .bbp-body .bbp-forum-info:hover { border-color: var(--ytm-purple); transform: translateX(6px); box-shadow: var(--ytm-shadow-hover); }
#bbpress-forums .bbp-forum-title { font-weight: 800; font-size: 1.1rem; color: var(--ytm-gray-800); }
#bbpress-forums .bbp-forum-title a { color: var(--ytm-gray-800); }
#bbpress-forums .bbp-forum-title a:hover { color: var(--ytm-purple); }

/* Remove default bbPress table styling */
#bbpress-forums { border: none !important; }
#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer { display: none; }
div.bbp-template-notice { border-radius: var(--ytm-radius-sm); border-left: 4px solid var(--ytm-purple); background: #f8f6ff; }

/* Topic list */
#bbpress-forums li.bbp-body .bbp-topic-title { font-weight: 700; font-size: 0.95rem; }
#bbpress-forums li.bbp-body .bbp-topic-title a { color: var(--ytm-gray-800); }
#bbpress-forums li.bbp-body .bbp-topic-title a:hover { color: var(--ytm-purple); }
#bbpress-forums li.bbp-body ul.topic { background: var(--ytm-white); border-radius: var(--ytm-radius-sm); padding: 14px 18px; border: 1px solid var(--ytm-gray-200); margin-bottom: 6px; transition: all 0.2s; }
#bbpress-forums li.bbp-body ul.topic:hover { border-color: var(--ytm-purple); }

/* Reply cards */
div.bbp-reply-content { background: var(--ytm-white); border-radius: var(--ytm-radius-sm); padding: 18px 20px; margin-bottom: 8px; border-left: 4px solid var(--ytm-purple); }
div.bbp-reply-content:nth-child(even) { background: #faf9ff; }
.bbp-reply-author .bbp-author-name { font-weight: 800; color: var(--ytm-purple); }

/* Forms */
#bbpress-forums #bbp-your-profile fieldset,
#bbpress-forums .bbp-form fieldset { border: none; padding: 0; }
#bbpress-forums .bbp-form input[type="text"],
#bbpress-forums .bbp-form textarea,
#bbpress-forums .bbp-form select { width: 100%; padding: 12px 16px; border: 2px solid var(--ytm-gray-200); border-radius: var(--ytm-radius-sm); font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s; }
#bbpress-forums .bbp-form input[type="text"]:focus,
#bbpress-forums .bbp-form textarea:focus { border-color: var(--ytm-purple); outline: none; }

/* Submit buttons */
#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper input[type="submit"] { display: inline-block; padding: 10px 24px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; background: var(--ytm-purple); color: #fff; border: 2px solid var(--ytm-purple); cursor: pointer; transition: all 0.2s; font-family: inherit; }
#bbpress-forums .bbp-submit-wrapper button:hover,
#bbpress-forums .bbp-submit-wrapper input[type="submit"]:hover { background: var(--ytm-pink); border-color: var(--ytm-pink); }

/* Pagination */
.bbp-pagination-links a,
.bbp-pagination-links span.current { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; }
.bbp-pagination-links a { background: var(--ytm-white); color: var(--ytm-purple); border: 1px solid var(--ytm-gray-200); }
.bbp-pagination-links a:hover { border-color: var(--ytm-purple); }
.bbp-pagination-links span.current { background: var(--ytm-purple); color: #fff; }

/* Breadcrumbs */
.bbp-breadcrumb { font-size: 0.85rem; color: var(--ytm-gray-500); margin-bottom: 16px; }
.bbp-breadcrumb a { color: var(--ytm-purple); font-weight: 600; }

/* =============================================
   BuddyPress Overrides — match YTMclub design
   ============================================= */

/* Member cards */
#buddypress #members-list li { background: var(--ytm-white); border-radius: var(--ytm-radius); overflow: hidden; border: 1px solid var(--ytm-gray-200); transition: all 0.25s; margin-bottom: 18px; }
#buddypress #members-list li:hover { border-color: var(--ytm-purple); transform: translateY(-4px); box-shadow: var(--ytm-shadow-hover); }
#buddypress #members-list .item-avatar img { border-radius: 50%; border: 3px solid var(--ytm-purple); }
#buddypress .item-title a { font-weight: 900; font-size: 1.05rem; color: var(--ytm-gray-800); }
#buddypress .item-title a:hover { color: var(--ytm-purple); }

/* Profile page */
#buddypress #item-header-content { padding: 28px; }
#buddypress #item-header-avatar img { border-radius: 50%; border: 4px solid var(--ytm-purple); }
#buddypress .profile-fields th { font-weight: 700; color: var(--ytm-gray-800); }
#buddypress .profile-fields td { color: var(--ytm-gray-500); }

/* Activity stream */
#buddypress .activity-list li { background: var(--ytm-white); border-radius: var(--ytm-radius-sm); padding: 14px 18px; border: 1px solid var(--ytm-gray-200); margin-bottom: 8px; }
#buddypress .activity-header a { color: var(--ytm-purple); font-weight: 700; }

/* BP buttons */
#buddypress .generic-button a,
#buddypress button,
#buddypress input[type="submit"] { display: inline-block; padding: 8px 20px; border-radius: 25px; font-weight: 700; font-size: 0.85rem; background: var(--ytm-purple); color: #fff; border: 2px solid var(--ytm-purple); cursor: pointer; transition: all 0.2s; }
#buddypress .generic-button a:hover,
#buddypress button:hover { background: var(--ytm-pink); border-color: var(--ytm-pink); }

/* BP tabs/navigation */
#buddypress .item-list-tabs ul li a { padding: 8px 16px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; color: var(--ytm-gray-800); }
#buddypress .item-list-tabs ul li.selected a,
#buddypress .item-list-tabs ul li.current a { background: var(--ytm-purple); color: #fff; border-radius: 25px; }

/* =============================================
   Events Calendar Overrides
   ============================================= */

.tribe-events .tribe-events-c-ical__link,
.tribe-events .tribe-events-calendar-month__header-column { font-family: 'Nunito', sans-serif; }
.tribe-events .tribe-events-c-events-bar__search-button { background: var(--ytm-purple); border-radius: 25px; }
.tribe-common .tribe-common-c-btn-border { border-color: var(--ytm-purple); color: var(--ytm-purple); border-radius: 25px; }
.tribe-common .tribe-common-c-btn-border:hover { background: var(--ytm-purple); color: #fff; }

/* =============================================
   Global font override for all plugins
   ============================================= */
body, #bbpress-forums, #buddypress, .tribe-common { font-family: 'Nunito', sans-serif !important; }
