/*************************************************************
SASHA RAIL TV - ULTRA PREMIUM STYLE
Футуристичный, неоновый, кинематографичный стиль для форума
**************************************************************/

/* ===== RESET & BASE (Космический фон) ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 30%, #0a0f1c, #05080f);
    line-height: 1.6;
    color: #e2e8f0;
    min-height: 100vh;
}

/* Красивый скроллбар */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4299e1, #805ad5);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e53e3e;
}

/* ===== MAIN CONTAINER (Стекло) ===== */
#pun {
    width: 1300px;
    margin: 30px auto;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(66, 153, 225, 0.2);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}

/* ===== HEADER (Кибер-спорт режим) ===== */
#pun-title {
    background: linear-gradient(115deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 30px 30px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #4299e1;
    overflow: hidden;
}

#pun-title:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66,153,225,0.15) 0%, rgba(0,0,0,0) 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#pun-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e53e3e, #4299e1, #38b2ac, #d69e2e, #e53e3e);
    background-size: 200% auto;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===== NAVIGATION (Неоновое меню) ===== */
#pun-navlinks .container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 0;
    border-bottom: 1px solid rgba(66, 153, 225, 0.3);
}

#pun-navlinks ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

#pun-navlinks li {
    flex: 1;
    text-align: center;
    position: relative;
}

#pun-navlinks li a {
    color: #cbd5e0;
    padding: 16px 20px;
    display: block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    z-index: 1;
}

#pun-navlinks li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #4299e1;
    border-radius: 3px;
    transition: 0.3s ease;
    box-shadow: 0 0 10px #4299e1;
}

#pun-navlinks li a:hover:before {
    width: 80%;
}

#pun-navlinks li a:hover {
    color: white;
    text-shadow: 0 0 8px #4299e1;
    transform: translateY(-2px);
}

/* ===== CATEGORIES (Хедер категорий) ===== */
.punbb .category h2 {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 18px 25px;
    margin: 0 0 20px 0;
    border-radius: 18px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    border-left: 6px solid #4299e1;
    border-right: 1px solid rgba(66,153,225,0.3);
    box-shadow: 0 8px 20px -10px black;
    backdrop-filter: blur(4px);
}

/* ===== FORUMS (Карточки тем) ===== */
.punbb .forum {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid #4299e1;
    margin: 16px 0;
    padding: 25px;
    border-radius: 20px;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.punbb .forum:hover {
    transform: translateY(-4px) scale(1.01);
    background: rgba(51, 65, 85, 0.8);
    border-left-color: #e53e3e;
    box-shadow: 0 15px 30px -12px rgba(229, 62, 62, 0.3);
}

/* ===== TABLES (Умные таблицы) ===== */
.punbb .main table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.punbb .main th {
    background: #0f172a;
    color: #94a3b8;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #334155;
}

.punbb .main td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

.punbb .main tr:hover td {
    background: rgba(66, 153, 225, 0.1);
}

/* ===== POSTS (Дизайн сообщений) ===== */
.punbb .post {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(66, 153, 225, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    margin: 30px 0;
}

.punbb .post h3 {
    background: rgba(0,0,0,0.4);
    padding: 20px 28px;
    border-bottom: 1px solid #2d3748;
    color: #f1f5f9;
    font-weight: 700;
}

.punbb .post .post-author {
    width: 260px;
    float: left;
    padding: 28px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid #334155;
}

.pa-author {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== QUOTES & CODE (Стиль под терминал) ===== */
.punbb .quote-box {
    background: #1e293b;
    border-left: 6px solid #f59e0b;
    padding: 20px;
    border-radius: 16px;
    font-style: italic;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.punbb .code-box {
    background: #090c15;
    border-left: 6px solid #8b5cf6;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 16px;
    color: #a5f3c3;
    box-shadow: 0 0 0 1px #334155;
}

/* ===== КНОПКИ (Boom эффект) ===== */
.punbb input[type="submit"],
.pagelink a,
.postlink a {
    background: linear-gradient(95deg, #1e293b, #0f172a);
    border: 1px solid #4299e1;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
    box-shadow: 0 0 5px rgba(66,153,225,0.3);
}

.punbb input[type="submit"]:hover {
    background: #4299e1;
    border-color: white;
    transform: scale(1.02);
    box-shadow: 0 0 20px #4299e1;
    cursor: pointer;
}

/* ===== ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ (Люкс версия) ===== */
.user-profile-table {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(66, 153, 225, 0.4);
    margin: 30px auto;
    max-width: 1000px;
}

.profile-header {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 35px;
    border-bottom: 1px solid #4299e1;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #4299e1;
    box-shadow: 0 0 30px rgba(66,153,225,0.5);
    transition: 0.4s;
}

.profile-avatar:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.2);
}

.profile-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-role {
    background: linear-gradient(95deg, #d69e2e, #b7791f);
    box-shadow: 0 0 12px #d69e2e;
    border-radius: 40px;
}

.stat-label {
    color: #94a3b8;
    font-weight: 600;
}

.stat-value {
    color: #facc15;
    font-weight: 800;
}

/* ===== FOOTER (Звездный) ===== */
#pun-stats .container,
#pun-about .container {
    background: #020617;
    border-top: 2px solid #4299e1;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

#pun-about p a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px dashed;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1360px) {
    #pun { width: 96%; margin: 20px auto; }
}

@media (max-width: 800px) {
    .punbb .post .post-author {
        width: 100%;
        float: none;
        border-right: none;
        border-bottom: 1px solid #2d3748;
        text-align: center;
    }
    .punbb .post-body {
        margin-left: 0;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    #pun-navlinks ul {
        flex-direction: column;
    }
}