
.hytale-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.hytale-logo .logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hytale-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.hytale-logo .logo-ru {
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}
.footer .hytale-logo .logo-text {
    font-size: 18px;
}
.footer .hytale-logo .logo-icon {
    font-size: 22px;
}

/* ==========================================================================
   HEADER FIXES
   ========================================================================== */
.header-wrapper {
    background: rgba(30, 29, 50, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0 30px !important;
}
.header-wrapper .table-cell {
    vertical-align: middle !important;
}
.main-menu .menu > li > a {
    color: #c2d4f8 !important;
    font-weight: 500;
    transition: color 0.3s;
}
.main-menu .menu > li > a:hover,
.main-menu .menu > li.active > a {
    color: #3dd0d8 !important;
}
.header-btn {
    background: linear-gradient(135deg, #7c69e3 0%, #3dd0d8 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 25px !important;
}

/* ==========================================================================
   HERO SECTION - FIXED
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(30, 29, 50, 0.8) 0%,
        rgba(30, 29, 50, 0.9) 50%,
        rgba(30, 29, 50, 0.95) 100%
    );
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    padding: 160px 0 100px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #c2d4f8;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.hero-stats .stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.hero-stats .stat-label {
    display: block;
    font-size: 14px;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* Gradient button */
.btn.gradient {
    background: linear-gradient(135deg, #7c69e3 0%, #3dd0d8 100%) !important;
    border: none !important;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn.gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 105, 227, 0.4);
}

/* Border button */
.btn.border-btn {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn.border-btn:hover {
    border-color: #3dd0d8 !important;
    color: #3dd0d8 !important;
}

/* ==========================================================================
   RESPONSIVE - HERO
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 44px;
    }
    .hero-stats {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .header-wrapper {
        padding: 0 20px !important;
    }
    .hero-content {
        padding: 140px 20px 80px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-stats {
        gap: 30px;
    }
    .hero-stats .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hytale-logo .logo-text {
        font-size: 18px;
    }
    .hytale-logo .logo-icon {
        font-size: 22px;
    }
    .hero-content {
        padding: 120px 15px 60px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .hero-stats .stat-value {
        font-size: 24px;
    }
    .hero-stats .stat-label {
        font-size: 12px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    .hero-buttons .ml20 {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.section-block {
    background: #1e1d32;
}

.section-title-wrapper {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #8892b0;
    font-size: 16px;
}

/* ==========================================================================
   GUIDE CARDS - FIXED
   ========================================================================== */
.guide-card {
    display: block;
    background: #292845;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none !important;
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(61, 208, 216, 0.2);
}

.guide-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a3960 0%, #292845 100%);
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Скрываем alt текст при ошибке загрузки */
.guide-image img[alt]:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3960 0%, #292845 100%);
    content: '';
}

.guide-card:hover .guide-image img {
    transform: scale(1.1);
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 29, 50, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.guide-card:hover .guide-overlay {
    opacity: 1;
}

.guide-btn {
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.guide-content {
    padding: 20px;
}

.guide-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-excerpt {
    font-size: 14px;
    color: #8892b0;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-time {
    font-size: 13px;
    color: #3dd0d8;
}

.guide-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(61, 208, 216, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================================
   NEWS / BLOG SECTION
   ========================================================================== */
.blog-section .item-wrap {
    display: block;
    background: #292845;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-section .item-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 208, 216, 0.2);
}

.blog-section .image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-section .item-wrap:hover .image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-section .item-info {
    padding: 25px;
}

.blog-section .item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.blog-section .item-text {
    color: #c2d4f8;
    font-size: 14px;
    opacity: 0.8;
}

.blog-section .author-comment {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SERVERS SECTION
   ========================================================================== */
.servers-section {
    background: #1e1d32;
}

.server-card {
    background: #292845;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.server-card:hover {
    border-color: #3dd0d8;
    transform: translateY(-5px);
}

.server-card.maintenance {
    opacity: 0.6;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.server-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.server-status.online {
    color: #4ade80;
}

.server-status.offline {
    color: #f87171;
}

.server-mode {
    background: rgba(61, 208, 216, 0.2);
    color: #3dd0d8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.server-info {
    padding: 20px;
    flex: 1;
}

.server-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.server-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.server-description {
    color: #8892b0;
    font-size: 14px;
    line-height: 1.5;
}

.server-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-ip {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    flex: 1;
    margin-right: 15px;
}

.server-ip code {
    flex: 1;
    color: #3dd0d8;
    font-size: 13px;
    font-family: 'Roboto Mono', monospace;
    background: none;
}

.copy-ip-btn {
    background: transparent;
    border: none;
    color: #8892b0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.copy-ip-btn:hover {
    color: #3dd0d8;
}

.server-players {
    color: #c2d4f8;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================================================
   LFG SECTION (Поиск тиммейтов)
   ========================================================================== */
.lfg-section {
    background: linear-gradient(180deg, #1e1d32 0%, #292845 100%);
}

.lfg-card {
    display: flex;
    align-items: flex-start;
    background: rgba(41, 40, 69, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.lfg-card:hover {
    border-color: rgba(61, 208, 216, 0.3);
    background: rgba(41, 40, 69, 1);
}

.lfg-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #3dd0d8;
}

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

.lfg-content {
    flex: 1;
}

.lfg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lfg-author {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.lfg-time {
    font-size: 12px;
    color: #c2d4f8;
    opacity: 0.7;
}

.lfg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lfg-tags .tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.lfg-tags .tag.mode {
    background: rgba(61, 208, 216, 0.2);
    color: #3dd0d8;
}

.lfg-tags .tag.looking {
    background: rgba(124, 105, 227, 0.2);
    color: #a78bfa;
}

.lfg-tags .tag.hours {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.lfg-description {
    color: #c2d4f8;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.lfg-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

/* LFG Sidebar */
.lfg-sidebar .sidebar-widget {
    background: #292845;
    border-radius: 15px;
    padding: 25px;
}

.lfg-sidebar .widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.lfg-sidebar .widget-title i {
    margin-right: 10px;
}

.lfg-sidebar p {
    color: #c2d4f8;
    font-size: 14px;
    margin-bottom: 20px;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(61, 208, 216, 0.1);
    color: #3dd0d8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-btn:hover {
    background: #3dd0d8;
    color: #fff;
    text-decoration: none;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   VOICE ROOMS SECTION
   ========================================================================== */
.voice-section {
    background: #1e1d32;
}

.voice-room-item {
    display: flex;
    align-items: center;
    background: rgba(41, 40, 69, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.voice-room-item:hover {
    background: rgba(41, 40, 69, 0.9);
}

.room-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3dd0d8 0%, #7c69e3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.room-icon i {
    color: #fff;
    font-size: 18px;
}

.room-info {
    flex: 1;
}

.room-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 3px;
}

.room-users {
    font-size: 12px;
    color: #c2d4f8;
    opacity: 0.7;
}

.room-users i {
    margin-right: 5px;
}

.room-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-left: 15px;
}

.room-progress .progress-fill {
    height: 100%;
    background: #3dd0d8;
    border-radius: 2px;
}

.discord-widget-wrapper {
    background: #292845;
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
}

.discord-widget-wrapper iframe {
    border-radius: 10px;
}

/* ==========================================================================
   GUIDES SECTION
   ========================================================================== */
.guides-section {
    background: linear-gradient(180deg, #292845 0%, #1e1d32 100%);
}

.guide-card {
    display: block;
    background: #292845;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 208, 216, 0.15);
    text-decoration: none;
}

.guide-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-image img {
    transform: scale(1.1);
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 208, 216, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover .guide-overlay {
    opacity: 1;
}

.read-more {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.read-more i {
    margin-left: 8px;
}

.guide-info {
    padding: 20px;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.guide-category {
    color: #3dd0d8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.guide-difficulty {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.guide-difficulty.начинающий {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.guide-difficulty.средний {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.guide-difficulty.продвинутый {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.guide-difficulty.все.уровни {
    background: rgba(124, 105, 227, 0.2);
    color: #a78bfa;
}

.guide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.guide-views {
    font-size: 13px;
    color: #c2d4f8;
    opacity: 0.7;
}

.guide-views i {
    margin-right: 5px;
}

/* ==========================================================================
   RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .stats-bar {
        margin-top: 0;
        border-radius: 0;
    }
    
    .lfg-card {
        flex-direction: column;
    }
    
    .lfg-avatar {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .lfg-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .lfg-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-content {
        padding: 140px 0 80px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .server-card {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.mb30 {
    margin-bottom: 30px;
}

.mt40 {
    margin-top: 40px;
}

.mt70 {
    margin-top: 70px;
}

.ptb10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.plr20 {
    padding-left: 20px;
    padding-right: 20px;
}

.ptb15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.plr30 {
    padding-left: 30px;
    padding-right: 30px;
}

.mr10 {
    margin-right: 10px;
}

.mr15 {
    margin-right: 15px;
}

.ml10 {
    margin-left: 10px;
}

/* News Cards */
.news-card {
    background: #292845;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: #3dd0d8;
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 180px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(61, 208, 216, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.news-category.patch { background: #7c69e3; }
.news-category.release { background: #4ade80; }
.news-category.lore { background: #f59e0b; }

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #8892b0;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #3dd0d8;
}

.news-excerpt {
    color: #8892b0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Discord icon fix (Font Awesome 4 doesn't have Discord) */
.fa-discord:before {
    content: "\f075"; /* Using comment icon as fallback */
}