/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Bebas Neue', 'Segoe UI', Tahoma, sans-serif;
    background: #030614;
    color: #e6ebff;
    min-height: 100%;
    line-height: 1.5;
}

body {
    background: linear-gradient(180deg, #030614 0%, #040a1f 50%, #030614 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.news-modal-body img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-modal-body h2 {
    color: #1b4dff;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(27, 77, 255, 0.5);
}

.news-modal-date {
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-modal-date i {
    color: #1b4dff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design pro modal */
@media (max-width: 768px) {
    .news-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .news-modal-body h2 {
        font-size: 1.5rem;
    }
}

/* Hlavička */
.header {
    background: linear-gradient(135deg, #000000, #000000);
    padding: 20px 0;
    border-bottom: 2px solid #1b4dff;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(27, 77, 255, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(27, 77, 255, 0.5));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(27, 77, 255, 0.8));
    transform: scale(1.05);
}

/* Navigace */
.navigation {
    position: relative;
    overflow: hidden;
    justify-self: center;
    width: 100%;
}

.navigation::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 14px;
    padding: 10px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(3, 9, 30, 0.92), rgba(6, 18, 55, 0.86));
    border: 1px solid rgba(27, 77, 255, 0.2);
    box-shadow: inset 0 0 12px rgba(27, 77, 255, 0.08), 0 18px 35px rgba(4, 12, 38, 0.6);
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    color: #e6ebff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(27, 77, 255, 0.15), rgba(10, 42, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(27, 77, 255, 0), rgba(27, 77, 255, 0.75), rgba(27, 77, 255, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link i {
    font-size: 18px;
    color: #7f8eff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link span,
.nav-link {
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover i {
    color: #c7d2ff;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(27, 77, 255, 0.35), rgba(10, 42, 216, 0.3));
    box-shadow: 0 0 25px rgba(27, 77, 255, 0.35);
}

.nav-link.active::after {
    transform: scaleX(1);
    height: 3px;
}

.nav-link.active i {
    color: #ffffff;
}

/* Hlavní obsah */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero sekce - Nový design */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #1b4dff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(27, 77, 255, 0.1), rgba(10, 42, 216, 0.05));
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 4.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(27, 77, 255, 0.8);
    animation: heroGlow 3s ease-in-out infinite alternate;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 2em;
    color: #1b4dff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(27, 77, 255, 0.5);
}

.hero-description {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero.primary {
    background: linear-gradient(135deg, #1b4dff, #0a2ad8);
    color: #000000;
    border: 2px solid #1b4dff;
}

.btn-hero.secondary {
    background: transparent;
    color: #1b4dff;
    border: 2px solid #1b4dff;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.4);
}

.btn-hero.primary:hover {
    background: linear-gradient(135deg, #0a2ad8, #1b4dff);
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.6);
}

.btn-hero.secondary:hover {
    background: linear-gradient(135deg, #1b4dff, #0a2ad8);
    color: #000000;
}

@keyframes heroGlow {
    from {
        text-shadow: 0 0 30px rgba(27, 77, 255, 0.8);
    }
    to {
        text-shadow: 0 0 50px rgba(27, 77, 255, 1), 0 0 70px rgba(27, 77, 255, 0.6);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Server Status Widget */
.server-status {
    background: #000000;
    padding: 60px 0;
    border-bottom: 1px solid #1b4dff;
}

.server-status .container {
    display: flex;
    justify-content: center;
}

.status-panel {
    position: relative;
    width: min(100%, 520px);
    padding: 28px 32px;
    border: 2px solid #1b4dff;
    background: linear-gradient(135deg, #000000, #000000);
    box-shadow: 0 22px 40px rgba(4, 12, 38, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    font-family: 'Inter', sans-serif;
}

.status-panel::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, #000000, #000000);
    opacity: 0.75;
    pointer-events: none;
}

.status-panel-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.status-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    box-shadow: 0 0 0 0 rgba(27, 77, 255, 0.4);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.status-indicator::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
}

.status-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title {
    font-weight: 600;
    letter-spacing: 0.6px;
    font-size: 1.1rem;
    color: #f7f9ff;
    text-transform: uppercase;
}

.status-state {
    font-size: 0.95rem;
    color: rgba(230, 235, 255, 0.7);
    letter-spacing: 0.3px;
}

.status-updated {
    font-size: 0.85rem;
    color: rgba(230, 235, 255, 0.55);
    letter-spacing: 0.4px;
}

.status-panel-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.status-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-family: 'Bebas Neue', 'Segoe UI', Tahoma, sans-serif;
    font-size: clamp(3rem, 6vw, 4rem);
    color: #ffffff;
    letter-spacing: 1.5px;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(230, 235, 255, 0.6);
    letter-spacing: 0.35px;
}

.status-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #000000, #000000);
    color: #e6ebff;
    border: 2px solid #1b4dff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.4px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.status-action i {
    font-size: 0.85rem;
}

.status-action:hover {
    background: rgba(27, 77, 255, 0.2);
    border-color: rgba(27, 77, 255, 0.45);
    transform: translateY(-2px);
}

.status-panel[data-state="online"] {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(145deg, rgba(10, 42, 216, 0.85), rgba(7, 30, 95, 0.92));
}

.status-panel[data-state="online"] .status-indicator {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    animation: statusIndicatorPulse 2.8s infinite;
}

.status-panel[data-state="online"] .status-indicator::after {
    border-color: rgba(16, 185, 129, 0.4);
}

.status-panel[data-state="online"] .status-state {
    color: rgba(255, 255, 255, 0.9);
}

.status-panel[data-state="online"] .status-action {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
}

.status-panel[data-state="offline"] {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(145deg, rgba(68, 14, 27, 0.88), rgba(25, 6, 12, 0.92));
    box-shadow: 0 26px 44px rgba(239, 68, 68, 0.22);
}

.status-panel[data-state="offline"] .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    animation: statusIndicatorPulse 2.8s infinite;
}

.status-panel[data-state="offline"] .status-indicator::after {
    border-color: rgba(239, 68, 68, 0.35);
}

.status-panel[data-state="offline"] .status-state {
    color: rgba(255, 200, 200, 0.85);
}

.status-panel[data-state="offline"] .status-action {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.32);
}

@keyframes statusIndicatorPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 640px) {
    .status-panel {
        padding: 24px;
        border-radius: 18px;
    }

    .status-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .status-updated {
        align-self: flex-start;
    }

    .status-panel-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .status-action {
        padding: 10px 18px;
    }
}

/* Main Content Layout */
.main-grid {
    background: linear-gradient(135deg, #000000, #0a0a0a);
    padding: 60px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Section Titles */
.section-title {
    font-size: 2.2em;
    color: #1b4dff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 15px rgba(27, 77, 255, 0.5);
}

.section-title i {
    font-size: 0.8em;
}

/* News Section */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 2px solid #333333;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.news-card.featured {
    border-color: #1b4dff;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4dff, #0a2ad8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    border-color: #1b4dff;
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.3);
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.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-content {
    padding: 25px;
}

.news-title {
    font-size: 1.4em;
    color: #1b4dff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    font-size: 0.9em;
}

/* Features Showcase */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 30px 20px;
    text-align: center;
    border: 2px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4dff, #0a2ad8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    border-color: #1b4dff;
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1b4dff, #0a2ad8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #000000;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(27, 77, 255, 0.6);
}

.feature-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #1b4dff;
}

.feature-description {
    color: #cccccc;
    font-size: 0.9em;
}

/* Sidebar Widgets */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 2px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4dff, #0a2ad8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-widget:hover::before {
    transform: scaleX(1);
}

.sidebar-widget:hover {
    border-color: #1b4dff;
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.2);
}

.widget-header {
    padding: 25px;
    border-bottom: 1px solid #333333;
}

.widget-title {
    font-size: 1.3em;
    color: #1b4dff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.widget-subtitle {
    color: #cccccc;
    font-size: 0.9em;
    margin: 0;
}

.widget-content {
    padding: 25px;
}

/* Server IP Widget */
.server-ip-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ip-label {
    color: #cccccc;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-container {
    display: flex;
    align-items: center;
    background: #000000;
    border: 2px solid #1b4dff;
    padding: 15px;
    gap: 15px;
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    color: #1b4dff;
    letter-spacing: 1px;
    flex-grow: 1;
}

.ip-copy-btn {
    background: linear-gradient(135deg, #1b4dff, #0a2ad8);
    color: #000000;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ip-copy-btn:hover {
    background: linear-gradient(135deg, #0a2ad8, #1b4dff);
    box-shadow: 0 0 15px rgba(27, 77, 255, 0.5);
    transform: scale(1.05);
}

/* Social Widget */
.social-widget {
    border-color: #1b4dff !important;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn i {
    font-size: 2em;
    width: 40px;
    text-align: center;
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
}

.social-desc {
    font-size: 0.9em;
    color: #cccccc;
}

.social-btn.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff;
}

.social-btn.discord:hover {
    background: linear-gradient(135deg, #4752C4, #5865F2);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.social-btn.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
}

.social-btn.youtube:hover {
    background: linear-gradient(135deg, #CC0000, #FF0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000, #ff0050);
    color: #ffffff;
}

.social-btn.tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #000000);
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.4);
    transform: translateY(-2px);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #cccccc;
    text-decoration: none;
    background: rgba(51, 51, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 77, 255, 0.1), transparent);
    transition: left 0.5s;
}

.quick-link:hover::before {
    left: 100%;
}

.quick-link:hover {
    background: rgba(27, 77, 255, 0.1);
    color: #1b4dff;
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.2em;
    color: #1b4dff;
}

/* Pravidla stránka */
.rules-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('rules-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
}

.rules-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #1b4dff;
    text-shadow: 0 0 20px rgba(27, 77, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.rules-subtitle {
    font-size: 1.2em;
    color: #cccccc;
}

.rules-logo-wrapper {
    margin: 0 0 25px;
    display: flex;
    justify-content: center;
}

.rules-logo {
    height: 90px;
    filter: drop-shadow(0 0 18px rgba(27, 77, 255, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.rules-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 24px rgba(79, 104, 255, 0.55));
}

.rules-content {
    padding: 80px 0;
    background: linear-gradient(179deg, #000000, #0b00ff0f)
}

/* FLOATING LAYOUT */
.rules-sidebar-float {
    float: right;
    width: 300px;
    margin-left: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 2px solid #1b4dff;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.rules-grid {
    max-width: none;
    margin: 0;
    overflow: hidden;
}

.rule-category {
    margin-bottom: 50px;
}


.category-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #1b4dff;
    padding-bottom: 15px;
}

.category-icon {
    display: none;
}

.category-title {
    color: #1b4dff;
    font-size: 2.6em;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(27, 77, 255, 0.35);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.category-header:hover .category-title {
    color: #4f68ff;
    text-shadow: 0 0 28px rgba(79, 104, 255, 0.55);
    transform: translateY(-4px);
}

.rule-list {
    margin-bottom: 0;
}

.rule-item {
    margin-bottom: 28px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(8, 22, 70, 0.85), rgba(5, 15, 48, 0.95));
    border: 1px solid rgba(27, 77, 255, 0.28);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(5, 15, 48, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rule-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(27, 77, 255, 0.35);
    border-color: rgba(27, 77, 255, 0.45);
}

.rule-title {
    color: #1b4dff;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 0 16px rgba(27, 77, 255, 0.35);
    letter-spacing: 1.4px;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.rule-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: linear-gradient(180deg, #1b4dff, #6a80ff);
    border-radius: 4px;
}

.rule-item:hover .rule-title {
    color: #6f83ff;
    text-shadow: 0 0 22px rgba(111, 131, 255, 0.45);
    transform: translateX(6px);
}

.rule-number {
    background: linear-gradient(135deg, #1b4dff, #0a2ad8);
    color: #000000;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

.rule-text {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.rule-text:last-child {
    margin-bottom: 0;
}

.rule-sublist {
    list-style: none;
    margin: 15px 0;
    padding-left: 20px;
}

.rule-sublist li {
    color: #cccccc;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.rule-sublist li::before {
    content: '▶';
    color: #1b4dff;
    position: absolute;
    left: 0;
    top: 0;
}

.rule-text strong {
    position: relative;
    display: inline-block;
    padding: 10px 18px 10px 42px;
    margin: 12px 0;
    color: #5f7bff;
    background: linear-gradient(135deg, rgba(95, 123, 255, 0.18), rgba(95, 123, 255, 0.08));
    border: 1px solid rgba(95, 123, 255, 0.4);
    border-radius: 12px;
    letter-spacing: 1px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.rule-text strong::before {
    content: 'I';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1b1ff;
    font-weight: 700;
    font-size: 0.85em;
}

.rule-text strong:hover {
    background: linear-gradient(135deg, rgba(95, 123, 255, 0.3), rgba(95, 123, 255, 0.16));
    border-color: rgba(95, 123, 255, 0.6);
    box-shadow: 0 0 18px rgba(95, 123, 255, 0.3);
    transform: translateY(-2px);
}

.rule-text strong.command-example {
    color: #90a6ff;
    background: linear-gradient(135deg, rgba(72, 99, 238, 0.2), rgba(72, 99, 238, 0.1));
    border-color: rgba(72, 99, 238, 0.45);
}

.rule-text strong.command-example::before {
    color: #90a6ff;
}

.rule-text strong.command-example:hover {
    background: linear-gradient(135deg, rgba(72, 99, 238, 0.32), rgba(72, 99, 238, 0.18));
    border-color: rgba(72, 99, 238, 0.65);
    box-shadow: 0 0 18px rgba(72, 99, 238, 0.35);
}

.rule-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1b4dff, #0a2ad8);
    margin: 10px 0 20px;
}

/* JEDNODUCHÉ TLAČÍTKO */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #1b4dff;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#scrollToTop:hover {
    background: #0a2ad8;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.sidebar-content {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border: 2px solid #333333;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b4dff, #0a2ad8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sidebar-content:hover::before {
    transform: scaleX(1);
}

.sidebar-content:hover {
    border-color: #1b4dff;
    box-shadow: 0 10px 30px rgba(27, 77, 255, 0.3);
}

.sidebar-title {
    color: #1b4dff;
    font-size: 1.3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(27, 77, 255, 0.3);
}

.rules-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rules-nav .nav-item {
    margin-bottom: 8px;
}

.rules-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.rules-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 77, 255, 0.1), transparent);
    transition: left 0.5s;
}

.rules-nav .nav-link:hover::before {
    left: 100%;
}

.rules-nav .nav-link:hover {
    color: #1b4dff;
    background: rgba(27, 77, 255, 0.1);
    border-color: #1b4dff;
    box-shadow: 0 0 15px rgba(27, 77, 255, 0.2);
    transform: translateX(5px);
}

.rules-nav .nav-link.active {
    color: #1b4dff;
    background: linear-gradient(135deg, rgba(27, 77, 255, 0.2), rgba(10, 42, 216, 0.1));
    border-color: #1b4dff;
    box-shadow: 0 0 20px rgba(27, 77, 255, 0.3);
}

.rules-nav .nav-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.rules-footer {
    text-align: center;
}

.info-box {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 30px;
    border: 2px solid #1b4dff;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-box i {
    font-size: 2em;
    color: #1b4dff;
    flex-shrink: 0;
}

.info-box p {
    color: #cccccc;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000000;
    padding: 30px 0;
    border-top: 2px solid #1b4dff;
    text-align: center;
}

.footer-content p {
    color: #cccccc;
    font-size: 0.9em;
}

/* Responzivní design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        position: static;
        order: -1;
    }

    .status-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3em;
    }
    
    .hero-subtitle {
        font-size: 1.5em;
    }
    
    .hero-description {
        font-size: 1em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero {
        width: 250px;
        justify-content: center;
    }
    
    .navigation .nav-container {
        padding: 0 18px;
    }
    .navigation .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 16px;
        box-shadow: inset 0 0 10px rgba(27, 77, 255, 0.1), 0 12px 26px rgba(4, 12, 38, 0.6);
    }
    .navigation .nav-link {
        justify-content: center;
        text-align: center;
        padding: 14px 18px;
    }
    .navigation .nav-link::after {
        left: 20%;
        right: 20%;
        bottom: 6px;
    }

    .status-card {
        padding: 24px;
        text-align: center;
    }

    .status-card-header {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .status-card-meta {
        align-items: center;
        text-align: center;
    }

    .status-card-state {
        font-size: 1.15em;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.8em;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .social-buttons {
        gap: 12px;
    }
    
    .social-btn {
        padding: 12px 15px;
    }
    
    .social-btn i {
        font-size: 1.5em;
        width: 30px;
    }
    
    .rules-sidebar-float {
        float: none;
        width: 100%;
        margin: 0 0 30px 0;
        position: static;
    }
    
    .rules-grid {
        overflow: visible;
    }
    
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .rules-title {
        font-size: 2.2em;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    
    .feature-card,
    .info-card,
    .rule-category {
        padding: 25px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-container,
    .nav-container {
        padding: 0 15px;
    }
}