/* === BASE STYLES === */
:root {
    /* Colors - Soft Ocean Theme */
    --primary-color: #4F9A94;
    --primary-dark: #3A7B7A;
    --secondary-color: #6BB8E8;
    --accent-color: #96C5F7;
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --danger-color: #F5222D;
    
    /* Soft Dark Theme */
    --bg-primary: #0B1426;
    --bg-secondary: #162032;
    --bg-tertiary: #253649;
    --bg-card: #1A2332;
    --bg-hover: #2A3B4D;
    
    /* Text Colors */
    --text-primary: #F0F4F8;
    --text-secondary: #B8C5D1;
    --text-muted: #7A8B99;
    --text-dark: #2E3A46;
    
    /* Borders */
    --border-color: #3A4A5C;
    --border-light: #4F6B7A;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(79, 154, 148, 0.15);
    --shadow-md: 0 4px 8px rgba(79, 154, 148, 0.2);
    --shadow-lg: 0 8px 16px rgba(79, 154, 148, 0.25);
    
    /* Fonts */
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* === NAVIGATION === */
.navbar {
    background: linear-gradient(135deg, rgba(22, 32, 50, 0.95), rgba(37, 54, 73, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.75rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(22, 32, 50, 0.98), rgba(37, 54, 73, 0.98));
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(139, 69, 19, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(139, 69, 19, 0.2);
}

.nav-link i {
    margin-right: 0.5rem;
}

.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--secondary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28218, 165, 32, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === BUTTONS === */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-secondary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    height: 100%;
}

.slide-content {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--secondary-color);
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

/* === MAIN CONTENT === */
.main-content {
    padding: 3rem 0;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.sidebar-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Server Status */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.server-item:hover {
    background: var(--bg-hover);
}

.server-name {
    font-weight: 500;
    color: var(--text-primary);
}

.server-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.server-status.available {
    background: var(--success-color);
    color: white;
}

.server-status.full {
    background: var(--danger-color);
    color: white;
}

.server-status.recommended {
    background: var(--warning-color);
    color: var(--text-dark);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.quick-link:hover {
    background: var(--bg-hover);
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Download Block */
.download-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
}

.download-block .sidebar-title {
    color: white;
}

/* === NEWS SECTION === */
.news-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.news-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.news-date {
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* === ABOUT SECTION === */
.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* === RATING SECTION === */
.rating-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 0.25rem;
}

.rating-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.rating-tab.active {
    background: var(--primary-color);
    color: white;
}

.rating-list {
    max-height: 300px;
    overflow-y: auto;
}

.rating-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.rating-item:hover {
    background: var(--bg-hover);
}

.rating-rank {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
}

.rating-info {
    flex: 1;
    margin-left: 0.75rem;
}

.rating-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.rating-level {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Video Preview */
.video-preview {
    text-align: center;
}

.video-thumbnail {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.video-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.video-info p {
    font-size: 0.8rem;
    margin: 0;
}

/* Shop Promo */
.shop-promo {
    background: linear-gradient(135deg, var(--accent-color), #ff8c5a);
    border: none;
    color: white;
    text-align: center;
}

.shop-promo .sidebar-title {
    color: white;
    justify-content: center;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.promo-content h5 {
    margin-bottom: 0.75rem;
}

.promo-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-section h5,
.footer-section h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.footer-copyright,
.footer-version {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-date {
        min-width: auto;
        text-align: left;
    }
    
    .rating-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1.5rem 0;
    }
    
    .sidebar-block,
    .news-section,
    .about-section {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* === LOADING ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* === UTILITY CLASSES === */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
