/* ==========================================================================
   silver town WoW PvP Guild - CSS Variables & Reset
   ========================================================================== */

:root {
    /* WoW Midnight Expansion Color Palette */
    --bg-darker: #05060f;
    --bg-dark: #0b0e1e;
    --bg-card: rgba(15, 17, 36, 0.85);
    --border-glow: rgba(168, 85, 247, 0.25);
    --border-light: rgba(168, 85, 247, 0.15);
    
    /* Midnight Signature Neon Glows */
    --accent-blue: #c084fc;
    --accent-blue-glow: rgba(192, 132, 252, 0.4);
    --accent-purple: #9333ea;
    --accent-purple-glow: rgba(147, 51, 234, 0.5);
    --accent-gold: #f59e0b;
    --accent-sunwell: #ec4899;
    
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-silver: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #fbbf24 100%);
    
    /* WoW Class Colors Preserved */
    --warrior: #C69B6D;
    --paladin: #F48CBA;
    --hunter: #ABD473;
    --rogue: #FFF468;
    --priest: #FFFFFF;
    --deathknight: #C41E3A;
    --shaman: #0070DE;
    --mage: #3FC7EB;
    --warlock: #8787ED;
    --monk: #00FF98;
    --druid: #FF7C0A;
    --demonhunter: #A330C9;
    --evoker: #33937F;
    
    /* Layout */
    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --font-outfit: 'Outfit', 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-white);
    font-family: var(--font-outfit);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ==========================================================================
   Background Neon Glow Effects
   ========================================================================== */

.bg-glow {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -10%;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -10%;
    right: 5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-glow-3 {
    top: 40%;
    left: 45%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #0051ff 0%, transparent 70%);
}

/* ==========================================================================
   Glassmorphism CSS Helpers
   ========================================================================== */

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

/* ==========================================================================
   App Container & Header Navigation
   ========================================================================== */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto;
}

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    margin-top: 20px;
    padding: 0 30px;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.guild-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-blue-glow));
    transition: transform var(--transition-speed);
}

.header-logo:hover .guild-logo {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--text-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link, .nav-external-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.nav-link i, .nav-external-link i {
    font-size: 0.82rem;
    opacity: 0.8;
}

.nav-link:hover, .nav-external-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-blue);
}

.nav-link.active {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue-glow);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Profile in Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 20px;
}

.user-class-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.user-name-header {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   Buttons Setup
   ========================================================================== */

.btn {
    font-family: var(--font-outfit);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0084ff 100%);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #ff5e6c;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* ==========================================================================
   Main Content Container
   ========================================================================== */

.content-container {
    flex: 1;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
}

.view-section {
    width: 100%;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* ==========================================================================
   Home View Styling
   ========================================================================== */

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 35px;
    padding: 35px 40px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 30%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-banner {
    width: 100%;
    max-width: 270px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.35));
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Home Highlights Section */
.home-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 0.45fr 0.95fr;
    gap: 16px;
}

@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* Chat Section Styling */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    border-color: rgba(0, 240, 255, 0.25);
}

.chat-messages-container {
    flex: 1;
    min-height: 180px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
    margin-bottom: 12px;
}

.chat-message-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.chat-message-user {
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-message-time {
    font-size: 0.68rem;
    color: #94a3b8;
}

.chat-message-text {
    color: #e2e8f0;
    word-break: break-all;
}

/* Maintenance Banner Styling */
.maint-box {
    border-color: rgba(255, 170, 0, 0.25);
    background: linear-gradient(145deg, rgba(20, 16, 10, 0.7) 0%, rgba(35, 25, 10, 0.5) 100%);
}

.maint-box:hover {
    border-color: rgba(255, 170, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.15);
}

.maint-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.maint-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* Live Streamer Compact Horizontal Row */
.live-streamer-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.live-streamer-compact-row:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateX(3px);
}

.live-compact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.live-compact-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.live-compact-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-compact-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-compact-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maint-region {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffaa00;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.maint-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: #00f0ff;
    margin-top: 1px;
    line-height: 1.3;
}

.grid-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.grid-col-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.highlight-box {
    padding: 30px;
    min-height: 350px;
}

/* Recent Board Mini-List */
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.mini-item:hover {
    background: rgba(0, 210, 255, 0.04);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateX(5px);
}

.mini-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-badge {
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-event {
    background: rgba(144, 0, 255, 0.15);
    border: 1px solid rgba(144, 0, 255, 0.3);
    color: #c78dff;
}

.badge-general {
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-blue);
}

.badge-addon {
    background: rgba(255, 124, 10, 0.15);
    border: 1px solid rgba(255, 124, 10, 0.3);
    color: #ff9a40;
}

.mini-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

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

/* PvP Leaderboard Mini Widget */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.rank-num {
    font-size: 1.1rem;
    font-weight: 800;
    width: 30px;
    text-align: center;
}

.rank-gold { color: #ffd700; }
.rank-silver { color: #c0c0c0; }
.rank-bronze { color: #cd7f32; }

.rank-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 10px;
}

.rank-char-icon {
    font-size: 1.2rem;
}

.rank-name {
    font-weight: 600;
}

.rank-class {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.rank-rating {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

/* ==========================================================================
   General Board View Styling
   ========================================================================== */

.page-header-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

.board-container {
    padding: 30px;
}

.board-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-family: var(--font-outfit);
    transition: all var(--transition-speed);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

/* Board Table */
.board-table-wrapper {
    overflow-x: auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.board-table th {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.board-table tbody tr {
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.board-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.col-id { width: 8%; text-align: center; color: var(--text-muted); }
.col-title { width: 50%; font-weight: 500; }
.col-author { width: 17%; }
.col-date { width: 15%; color: var(--text-muted); }
.col-views { width: 10%; color: var(--text-muted); text-align: center; }

/* ==========================================================================
   Rich Text Web Editor Styling
   ========================================================================== */

#rich-editor-content:empty:before {
    content: attr(placeholder);
    color: #64748b;
    font-style: italic;
}

#rich-editor-content blockquote {
    border-left: 4px solid #00f0ff;
    padding-left: 12px;
    margin: 8px 0;
    color: #cbd5e1;
    background: rgba(0, 240, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
}

.btn-tb:hover {
    background: rgba(0, 240, 255, 0.25) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    color: #00f0ff !important;
}

/* Empty state */
.empty-state {
    padding: 60px 0;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    color: var(--accent-blue);
}

/* ==========================================================================
   Article Detail View
   ========================================================================== */

.article-detail {
    padding: 40px;
}

.btn-back-row {
    margin-bottom: 20px;
}

.article-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.article-meta-info {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item strong {
    color: var(--text-white);
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 50px;
    white-space: pre-wrap;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.comment-textarea {
    width: 100%;
    height: 100px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-family: var(--font-outfit);
    resize: none;
    transition: all var(--transition-speed);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.comment-author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

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

.comment-text {
    font-size: 0.95rem;
    color: #d1d5db;
    white-space: pre-wrap;
}

/* ==========================================================================
   Article Editor Form View
   ========================================================================== */

.editor-container {
    padding: 40px;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.editor-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-family: var(--font-outfit);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.editor-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

.editor-textarea {
    height: 350px;
    resize: vertical;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ==========================================================================
   Event Board View (Grid & Card Style)
   ========================================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(144, 0, 255, 0.4);
    box-shadow: 0 10px 25px rgba(144, 0, 255, 0.15);
}

.event-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--accent-purple);
    color: #e5ccff;
    backdrop-filter: blur(5px);
}

.event-hero-banner {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #15002a 0%, #031c36 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.event-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-item i {
    color: var(--accent-blue);
    width: 16px;
    text-align: center;
}

.event-desc {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 25px;
    flex: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

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

.event-participants strong {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* ==========================================================================
   Addon Board View (Grid Card Layout)
   ========================================================================== */

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.addon-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    transition: all var(--transition-speed);
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.15);
}

.addon-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.addon-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.addon-meta {
    display: flex;
    flex-direction: column;
}

.addon-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.addon-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.addon-description {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 20px;
    flex: 1;
}

.addon-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.addon-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-muted);
}

.addon-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
}

.addon-downloads {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Streamer Board View (Recommended Broadcasts)
   ========================================================================== */

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.streamer-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.streamer-card:hover {
    transform: translateY(-5px);
    border-color: #ff007f; /* Streamer theme accent */
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.15);
}

.streamer-banner {
    position: relative;
    height: 130px;
    background: linear-gradient(45deg, #180828 0%, #ff007f 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.streamer-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-live {
    background: #ff0000;
    color: white;
    animation: blink 1.5s infinite alternate;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.status-offline {
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

@keyframes blink {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.streamer-platform-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.platform-twitch { color: #9146FF; }
.platform-chzzk { color: #00ffa3; }
.platform-youtube { color: #FF0000; }

.streamer-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    overflow: hidden;
    background: var(--bg-darker);
    margin-bottom: -32px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.streamer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-body {
    padding: 45px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.streamer-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.streamer-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.streamer-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.streamer-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.streamer-intro {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

/* ==========================================================================
   Modals & Auth Forms Layout
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity var(--transition-speed) ease-in-out;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: var(--accent-blue);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue-glow);
}

.input-wrapper select option {
    background: var(--bg-darker);
    color: white;
}

/* Auth View Switch link */
.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Class-specific option styling */
.c-warrior { color: var(--warrior); }
.c-paladin { color: var(--paladin); }
.c-hunter { color: var(--hunter); }
.c-rogue { color: var(--rogue); }
.c-priest { color: var(--priest); }
.c-dk { color: var(--deathknight); }
.c-shaman { color: var(--shaman); }
.c-mage { color: var(--mage); }
.c-warlock { color: var(--warlock); }
.c-monk { color: var(--monk); }
.c-druid { color: var(--druid); }
.c-dh { color: var(--demonhunter); }
.c-evoker { color: var(--evoker); }

/* Class text formatting inside views */
.txt-warrior { color: var(--warrior); font-weight: 600; }
.txt-paladin { color: var(--paladin); font-weight: 600; }
.txt-hunter { color: var(--hunter); font-weight: 600; }
.txt-rogue { color: var(--rogue); font-weight: 600; }
.txt-priest { color: var(--priest); font-weight: 600; }
.txt-dk { color: var(--deathknight); font-weight: 600; }
.txt-shaman { color: var(--shaman); font-weight: 600; }
.txt-mage { color: var(--mage); font-weight: 600; }
.txt-warlock { color: var(--warlock); font-weight: 600; }
.txt-monk { color: var(--monk); font-weight: 600; }
.txt-druid { color: var(--druid); font-weight: 600; }
.txt-dh { color: var(--demonhunter); font-weight: 600; }
.txt-evoker { color: var(--evoker); font-weight: 600; }

/* ==========================================================================
   Footer Layout
   ========================================================================== */

#main-footer {
    margin-top: auto;
    margin-bottom: 20px;
    padding: 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-content .copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content .motto {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--accent-blue);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1200px) {
    .app-container {
        padding: 0 20px;
    }
    .hero-section {
        padding: 30px;
        gap: 20px;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-text p {
        margin: 0 auto 30px auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-banner-wrapper {
        display: none; /* Hide floating logo on small desktops to prioritize text */
    }
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #main-header {
        padding: 10px 12px;
        gap: 10px;
    }
    .header-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .brand-logo-img {
        width: 32px;
        height: 32px;
    }
    .brand-text h1 {
        font-size: 1.1rem;
    }
    .header-auth {
        gap: 6px;
        width: auto;
    }
    .btn-auth {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .user-profile-chip {
        padding: 4px 10px;
        font-size: 0.78rem;
    }
    .user-avatar-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    /* Mobile Touch Horizontal Scroll Nav Bar */
    .main-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        white-space: nowrap;
        width: max-content;
    }
    .nav-link {
        padding: 6px 13px;
        font-size: 0.8rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-link.active {
        background: linear-gradient(90deg, #00f0ff, #7000ff);
        border-color: transparent;
        color: #ffffff;
        font-weight: 700;
    }

    /* Mobile Hero Section */
    .hero-section {
        padding: 20px 14px !important;
        border-radius: 12px !important;
    }
    .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    .hero-text p {
        font-size: 0.85rem !important;
        margin-bottom: 16px !important;
    }
    .hero-stats {
        gap: 8px !important;
        justify-content: space-between !important;
    }
    .stat-item {
        padding: 8px 10px !important;
    }
    .stat-num {
        font-size: 1.35rem !important;
    }
    .stat-label {
        font-size: 0.68rem !important;
    }

    /* Mobile Home Grid & Cards */
    .home-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .highlight-box {
        padding: 14px !important;
    }
    .mini-item {
        padding: 8px 10px;
    }
    .mini-title-wrapper {
        max-width: 75%;
    }
    .mini-title {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mini-badge {
        font-size: 0.65rem !important;
        padding: 1px 5px !important;
    }
    .mini-date {
        font-size: 0.68rem;
    }

    /* Mobile Live Streamer Compact Row */
    .live-streamer-compact-row {
        padding: 8px 10px !important;
    }
    .live-compact-name {
        font-size: 0.82rem !important;
    }
    .live-compact-sub {
        font-size: 0.7rem !important;
    }

    .events-grid, .addons-grid, .streamers-grid {
        grid-template-columns: 1fr !important;
    }
    .board-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .search-wrapper {
        max-width: none;
    }
    .board-table th:nth-child(1),
    .board-table td:nth-child(1),
    .board-table th:nth-child(4),
    .board-table td:nth-child(4),
    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        display: none;
    }
    .article-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Full Site Input & Modal Smooth Performance Optimization (Zero-Lag Typing)
   ========================================================================== */

.modal-overlay,
.modal-content,
.auth-form,
.editor-container,
.glass-panel,
.input-wrapper,
.form-group,
.search-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.modal-overlay {
    background: rgba(8, 10, 15, 0.9) !important;
}

.modal-content {
    background: #0d1117 !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
}

input,
textarea,
select,
.editor-input,
.search-input,
.comment-textarea {
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #161c28 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
    will-change: auto !important;
    contain: content !important;
}

input:focus,
textarea:focus,
select:focus,
.editor-input:focus,
.search-input:focus,
.comment-textarea:focus {
    border-color: #00d2ff !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #1a2234 !important;
}

/* Fix browser autofill lag background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #161c28 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

