main {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

main .container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.forum-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.categorys {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-item {
    width: 100%;
}

.category-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    padding: 0 20px;
}

.subcategories-block {
    width: 100%;
    border-top: 3px solid #FD48B6;
    background: #2D3037;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.subcategories-block:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.subcategories-container {
    padding: 0;
}

.subcategories-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Основные стили для карточки подкатегории */
.subcategory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(253, 72, 182, 0.2);
    position: relative;
    padding: 15px 20px;
    min-height: 80px;
    gap: 20px;
}

.subcategory-card:last-child {
    border-bottom: none;
}

.subcategory-card:hover {
    background: rgba(253, 72, 182, 0.1);
}

.subcategory-main {
    flex: 0 0 250px;
    min-width: 200px;
}

.subcategory-title {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.subcategory-card:hover .subcategory-title {
    color: #FD48B6;
}

.subcategory-stats {
    display: flex;
    gap: 30px;
    text-align: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #FD48B6;
}

.stat-label {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.subcategory-last-post {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 280px;
    min-width: 250px;
    text-align: right;
}

.last-post-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FD48B6, #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.last-post-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.last-post-topic {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.last-post-meta {
    color: #888;
    font-size: 11px;
}

.last-post-meta span {
    color: #FD48B6;
}

.no-posts {
    color: #888;
    font-size: 12px;
    font-style: italic;
    text-align: left;
}

.no-subcategories {
    color: #888;
    text-align: center;
    padding: 30px 20px;
    font-style: italic;
    background: rgba(26, 28, 32, 0.2);
}

@media (max-width: 1200px) {
    .subcategory-main {
        flex: 0 0 200px;
    }
    
    .subcategory-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 50px;
    }
    
    .subcategory-last-post {
        flex: 0 0 240px;
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .subcategory-card {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .subcategory-main {
        flex: 1 1 100%;
    }
    
    .subcategory-stats {
        margin-left: 0;
        flex: 1;
        justify-content: flex-start;
    }
    
    .subcategory-last-post {
        flex: 1 1 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .categorys {
        gap: 20px;
    }

    .category-title {
        font-size: 22px;
        margin-bottom: 8px;
        padding: 0 15px;
    }

    .subcategory-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 12px;
    }
    
    .subcategory-main {
        width: 100%;
    }
    
    .subcategory-stats {
        width: 100%;
        justify-content: space-around;
        gap: 0;
        margin-left: 0;
    }
    
    .subcategory-last-post {
        width: 100%;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .last-post-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .last-post-topic {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }
}

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

.category-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.category-item:nth-child(1) { animation-delay: 0.05s; }
.category-item:nth-child(2) { animation-delay: 0.1s; }
.category-item:nth-child(3) { animation-delay: 0.15s; }
.category-item:nth-child(4) { animation-delay: 0.2s; }
.category-item:nth-child(5) { animation-delay: 0.25s; }
.category-item:nth-child(6) { animation-delay: 0.3s; }
.category-item:nth-child(7) { animation-delay: 0.35s; }
.category-item:nth-child(8) { animation-delay: 0.4s; }
.category-item:nth-child(9) { animation-delay: 0.45s; }
.category-item:nth-child(10) { animation-delay: 0.5s; }

/* Layout для форума с сайдбаром */
.forum-layout {
    display: flex;
    gap: 25px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

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

.forum-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.forum-sidebar::-webkit-scrollbar {
    width: 4px;
}

.forum-sidebar::-webkit-scrollbar-track {
    background: #2D3037;
    border-radius: 4px;
}

.forum-sidebar::-webkit-scrollbar-thumb {
    background: #FD48B6;
    border-radius: 4px;
}

.forum-sidebar::-webkit-scrollbar-thumb:hover {
    background: #ff69b4;
}

.sidebar-widget {
    background: #2D3037;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.widget-header {
    background: rgba(253, 72, 182, 0.1);
    padding: 8px 12px;
    border-bottom: 2px solid #FD48B6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.online-count {
    background: #FD48B6;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.widget-content {
    padding: 8px 10px;
}

.latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-post-item {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.latest-post-item:last-child {
    border-bottom: none;
}

.latest-post-item:hover {
    background: rgba(253, 72, 182, 0.05);
}

.post-author-avatar {
    flex-shrink: 0;
}

.post-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FD48B6, #ff8c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-topic-title {
    color: #e0e0e0;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
    line-height: 1.3;
    transition: color 0.2s;
}

.post-topic-title:hover {
    color: #FD48B6;
}

.post-meta {
    display: flex;
    gap: 6px;
    font-size: 9px;
    color: #888;
}

.post-author {
    color: #FD48B6;
}

.online-users-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.online-user-item {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.online-user-item:last-child {
    border-bottom: none;
}

.user-link {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    transition: color 0.2s;
}

.user-link:hover {
    color: #FD48B6;
}

.online-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-icon {
    font-size: 14px;
    width: 20px;
}

.stat-label {
    color: #888;
    flex: 1;
}

.stat-number {
    color: #FD48B6;
    font-weight: bold;
    font-size: 13px;
}

.stat-value a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.stat-value a:hover {
    color: #FD48B6;
}

.latest-user {
    background: rgba(253, 72, 182, 0.05);
    border-radius: 5px;
    padding: 4px 6px;
    margin-top: 2px;
}

.no-data {
    color: #888;
    text-align: center;
    padding: 12px;
    font-size: 11px;
    font-style: italic;
}

@media (max-width: 1200px) {
    .forum-sidebar {
        width: 240px;
    }
}

@media (max-width: 992px) {
    .forum-layout {
        flex-direction: column;
    }
    
    .forum-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .sidebar-widget {
        margin-bottom: 18px;
    }
}

@media (max-width: 768px) {
    .forum-layout {
        padding: 12px;
        gap: 18px;
    }
}

/* Стили для аукциона в форуме */
.auction-card {
    position: relative;
    overflow: hidden;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FD48B6, #ff8c42);
}

.auction-badge {
    background: linear-gradient(135deg, #FD48B6, #ff8c42);
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.subcategory-card:hover .auction-badge {
    background: linear-gradient(135deg, #ff69b4, #ffa05e);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(253, 72, 182, 0.3);
}

.auction-card:hover .auction-badge {
    color: #ffffff !important;
}
