/* ========== MINEZONE FORUM - CYBER DESIGN ========== */

:root {
    --neon-cyan: #00fff7;
    --neon-purple: #b829dd;
    --neon-pink: #ff2d95;
    --neon-blue: #0090ff;
    --neon-green: #39ff14;
    --neon-gold: #ffd700;
    --dark-bg: #050510;
    --card-bg: rgba(10, 15, 30, 0.85);
}

/* ========== CATEGORY CARD ========== */
.category-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--cat-color, var(--neon-cyan));
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateX(8px);
    border-color: var(--cat-color, var(--neon-cyan));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 25px color-mix(in srgb, var(--cat-color, var(--neon-cyan)) 30%, transparent);
}

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

.category-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color, var(--neon-cyan)) 15%, transparent), transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--neon-cyan)) 30%, transparent);
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.category-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.category-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.category-last {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.last-label { color: rgba(255, 255, 255, 0.4); }
.last-topic { color: var(--neon-cyan); }
.last-user { color: var(--neon-green); }

.category-stats {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 247, 0.3);
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-arrow {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    opacity: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(8px);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mini-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mini-stat:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 247, 0.1);
}

.mini-stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 247, 0.5);
}

.mini-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== LATEST TOPICS ========== */
.latest-topic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.latest-topic:hover {
    background: rgba(0, 255, 247, 0.08);
    border-color: rgba(0, 255, 247, 0.2);
    transform: translateX(5px);
}

.topic-cat-icon { font-size: 1.25rem; }

.topic-preview { flex: 1; min-width: 0; }

.topic-title-sm {
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topic-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.topic-author { color: var(--neon-green); }
.topic-time { color: rgba(255, 255, 255, 0.4); }

/* ========== TOPIC ROW ========== */
.topic-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topic-row:hover {
    background: rgba(0, 255, 247, 0.08);
    border-color: rgba(0, 255, 247, 0.2);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.topic-row.pinned {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), transparent);
    border: 1px solid rgba(255, 152, 0, 0.25);
}

.topic-row.closed { opacity: 0.6; }

.topic-icon { font-size: 1.5rem; width: 40px; text-align: center; flex-shrink: 0; }

.topic-main { flex: 1; min-width: 0; }

.topic-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-title .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pinned { background: rgba(255, 152, 0, 0.2); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.4); }
.badge-closed { background: rgba(255, 68, 68, 0.2); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.4); }
.badge-important { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.4); }

.topic-author-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.topic-author-name { color: var(--neon-green); }
.topic-date { color: rgba(255, 255, 255, 0.4); }

.topic-stats-row { display: flex; gap: 1.5rem; flex-shrink: 0; text-align: center; }
.topic-stat { min-width: 50px; }
.topic-stat-value { display: block; font-weight: 600; color: #fff; font-family: 'Orbitron', sans-serif; }
.topic-stat-label { font-size: 0.65rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; }

/* ========== POST CARD ========== */
.post-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.post-card:hover { border-color: rgba(0, 255, 247, 0.15); }

.post-card.first-post {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), transparent);
    border-color: rgba(0, 255, 136, 0.15);
}

.post-author { width: 140px; flex-shrink: 0; text-align: center; }

.post-avatar {
    width: 75px;
    height: 75px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}

.post-username { font-family: 'Orbitron', sans-serif; font-weight: 600; font-size: 0.95rem; color: #fff; margin-bottom: 0.25rem; }

.post-rank {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rank-player { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; border: 1px solid rgba(158, 158, 158, 0.3); }
.rank-vip { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
.rank-premium { background: rgba(184, 41, 221, 0.15); color: #b829dd; border: 1px solid rgba(184, 41, 221, 0.3); }
.rank-deluxe { background: rgba(255, 68, 68, 0.15); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.3); }
.rank-admin { background: rgba(255, 45, 149, 0.15); color: #ff2d95; border: 1px solid rgba(255, 45, 149, 0.3); animation: adminGlow 2s ease-in-out infinite; }

@keyframes adminGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 45, 149, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 45, 149, 0.5); }
}

.post-meta-info { font-size: 0.7rem; color: rgba(255, 255, 255, 0.4); }
.post-content { flex: 1; min-width: 0; }

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-date { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }
.post-number { color: var(--neon-cyan); font-size: 0.85rem; font-family: 'Orbitron', sans-serif; }
.post-body { color: rgba(255, 255, 255, 0.85); line-height: 1.8; }
.post-body p { margin-bottom: 1rem; }

.post-body blockquote {
    border-left: 3px solid var(--neon-purple);
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(184, 41, 221, 0.08);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.7);
}

.post-body code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    color: var(--neon-green);
    font-size: 0.9em;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(0, 255, 247, 0.1);
}

.post-body pre code { background: none; padding: 0; }

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-actions { display: flex; gap: 0.5rem; }

.post-action-btn {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-action-btn:hover {
    background: rgba(0, 255, 247, 0.1);
    border-color: var(--neon-cyan);
    color: #fff;
}

.post-action-btn.liked { background: rgba(255, 68, 68, 0.15); border-color: #f44336; color: #f44336; }
.like-count { color: #f44336; font-weight: 600; }

/* ========== REPLY FORM ========== */
.reply-form {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.reply-form h3 { font-family: 'Orbitron', sans-serif; color: #fff; font-weight: 600; margin-bottom: 1rem; }

.reply-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.reply-textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 255, 247, 0.1); }

.reply-toolbar { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.toolbar-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.toolbar-btn:hover { background: rgba(0, 255, 247, 0.1); border-color: var(--neon-cyan); color: #fff; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }

.page-link {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}

.page-link:hover { background: rgba(0, 255, 247, 0.1); border-color: var(--neon-cyan); color: #fff; }
.page-link.active { background: linear-gradient(135deg, rgba(0, 255, 247, 0.2), rgba(184, 41, 221, 0.2)); border-color: var(--neon-cyan); color: #fff; box-shadow: 0 0 15px rgba(0, 255, 247, 0.2); }

/* ========== BREADCRUMBS ========== */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--neon-cyan); text-decoration: none; transition: all 0.3s ease; }
.breadcrumbs a:hover { color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }
.breadcrumbs span { color: rgba(255, 255, 255, 0.4); }

/* ========== CREATE FORM ========== */
.create-form { background: var(--card-bg); border: 1px solid rgba(0, 255, 247, 0.1); border-radius: 16px; padding: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; font-weight: 500; }

.form-group select,
.input-field {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.input-field:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 255, 247, 0.15); }
.input-field::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-group select option { background: #0a0f1e; color: #fff; }

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 247, 0.4), 0 0 20px rgba(0, 255, 247, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: 16px;
}

/* ========== FORUM HEADER ========== */
.forum-header {
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.08), rgba(184, 41, 221, 0.05));
    border: 1px solid rgba(0, 255, 247, 0.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .category-card { flex-wrap: wrap; }
    .category-stats { width: 100%; justify-content: center; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .category-arrow { display: none; }
    .post-card { flex-direction: column; }
    .post-author { width: 100%; display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .post-avatar { width: 50px; height: 50px; margin: 0; font-size: 1.5rem; }
    .topic-stats-row { flex-direction: column; gap: 0.5rem; }
}
