/* =========================================
   Brew Your Brain — Main Stylesheet
   Version: 1.0.0
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    background: #0d0a14;
    color: #f0eaf8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #d4a8ff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: #e2d4f8;
}

h1 { font-size: clamp(28px, 6vw, 54px); font-weight: 900; }
h2 { font-size: clamp(20px, 3.5vw, 32px); font-weight: 700; }
h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 700; }
p  { font-size: 16px; color: #c4aee8; line-height: 1.7; }

/* --- Google Fonts Loader (loaded via functions.php) --- */

/* =========================================
   LAYOUT WRAPPERS
   ========================================= */
.byb-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.byb-container--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER / HERO
   ========================================= */
.site-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1060 50%, #1a0a2e 100%);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(155, 80, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(80, 180, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.site-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 6vw, 54px);
    font-weight: 900;
    background: linear-gradient(90deg, #d4a8ff, #7b3fe4, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    display: block;
}

.site-tagline {
    font-size: clamp(13px, 2.5vw, 17px);
    color: #c4aee8;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* --- Navigation --- */
.site-nav {
    background: rgba(13, 10, 20, 0.95);
    border-bottom: 1px solid rgba(155, 80, 255, 0.2);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.site-nav .nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-nav .nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #d4a8ff, #9b60ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-nav ul li a {
    font-size: 13px;
    color: #c4aee8;
    letter-spacing: 0.3px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.site-nav ul li a:hover,
.site-nav ul li a.current-menu-item {
    color: #d4a8ff;
    border-bottom-color: #9b60ff;
}

/* =========================================
   STATS BAR
   ========================================= */
.byb-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.byb-stat {
    text-align: center;
}

.byb-stat .stat-number {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    color: #d4a8ff;
    display: block;
}

.byb-stat .stat-label {
    font-size: 11px;
    color: #9b82cc;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

/* =========================================
   DIVIDER
   ========================================= */
.byb-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #7b3fe4, transparent);
    max-width: 300px;
    margin: 0 auto;
}

/* =========================================
   SECTIONS
   ========================================= */
.byb-section {
    padding: 56px 20px;
}

.byb-section--alt {
    background: rgba(255, 255, 255, 0.02);
}

.byb-section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3.5vw, 30px);
    color: #e2d4f8;
    margin-bottom: 8px;
}

.byb-section-sub {
    text-align: center;
    font-size: 14px;
    color: #7a6a9a;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

/* =========================================
   CATEGORY GRID
   ========================================= */
.byb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.byb-category-card {
    background: linear-gradient(145deg, #1e1030, #160a28);
    border: 1px solid rgba(155, 80, 255, 0.2);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.byb-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, rgba(155, 80, 255, 0.2), transparent 70%);
    transition: opacity 0.3s;
}

.byb-category-card:hover {
    border-color: rgba(155, 80, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(123, 63, 228, 0.2);
}

.byb-category-card:hover::before {
    opacity: 1;
}

.byb-category-card .card-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.byb-category-card .card-label {
    font-size: 13px;
    color: #c4aff0;
    line-height: 1.4;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* =========================================
   LIVE NOTIFICATIONS
   ========================================= */
.byb-activity {
    background: linear-gradient(135deg, #1e1030, #0d0a14);
    border: 1px solid rgba(155, 80, 255, 0.25);
    border-radius: 20px;
    max-width: 420px;
    margin: 0 auto;
    padding: 8px 0;
    overflow: hidden;
}

.byb-activity-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(155, 80, 255, 0.1);
    transition: background 0.2s;
}

.byb-activity-row:last-child {
    border-bottom: none;
}

.byb-activity-row:hover {
    background: rgba(155, 80, 255, 0.05);
}

.byb-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9b60ff;
    flex-shrink: 0;
}

.byb-activity-msg {
    font-size: 13px;
    color: #b89fe0;
    line-height: 1.4;
    flex: 1;
}

.byb-activity-msg strong {
    color: #c4aff0;
    font-weight: 500;
}

.byb-activity-time {
    font-size: 11px;
    color: #5a4a7a;
    white-space: nowrap;
}

/* =========================================
   CTA BUTTON
   ========================================= */
.byb-cta {
    text-align: center;
    padding: 40px 20px;
}

.byb-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7b3fe4, #9b60ff);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.byb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(123, 63, 228, 0.45);
    color: #fff;
}

.byb-btn--outline {
    background: transparent;
    border: 1.5px solid rgba(155, 80, 255, 0.5);
    color: #d4a8ff;
}

.byb-btn--outline:hover {
    border-color: #9b60ff;
    background: rgba(155, 80, 255, 0.1);
    color: #fff;
}

/* =========================================
   CONTENT AREA (Posts / Pages)
   ========================================= */
.byb-content-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 20px;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 4vw, 36px);
    color: #e2d4f8;
    margin-bottom: 16px;
}

.entry-meta {
    font-size: 12px;
    color: #6a5a8a;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.entry-content {
    color: #c4aee8;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    margin: 32px 0 12px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
    color: #c4aee8;
}

.entry-content a {
    color: #d4a8ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #0a0714;
    border-top: 1px solid rgba(155, 80, 255, 0.15);
    padding: 32px 20px;
    text-align: center;
}

.site-footer p {
    font-size: 13px;
    color: #4a3a6a;
    letter-spacing: 0.3px;
}

.site-footer a {
    color: #7a5aa0;
}

.site-footer a:hover {
    color: #d4a8ff;
}

/* =========================================
   WORDPRESS CORE CLASSES
   ========================================= */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #7a6a9a; margin-top: 6px; text-align: center; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
    .byb-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .byb-stats {
        gap: 24px;
    }

    .site-nav ul {
        gap: 14px;
    }
}
