/* Root Variables */
:root {
    --primary: #1e90ff;
    --primary-hover: #1c7cd6;
    --secondary: #333333;
    --accent: #ff4545;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.nav-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    height: 24px;
    margin: 0 15px;
    align-self: center;
}

.nav-special {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin: 0 8px;  /* přidáme margin pro mezeru mezi tlačítky */
}

.nav-special i {
    font-size: 1.1rem;
}

.nav-special::after {
    display: none !important;
}

.store-btn {
    background: var(--primary);
    color: white !important;
}

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

.support-btn {
    background: var(--secondary);
    color: white !important;
}

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

/* Base Styles */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-logo {
    height: 45px;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/background.png') no-repeat center/cover;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    margin-bottom: 1rem;
}

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

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: white;
    margin-top: -15px;
}

.btn-secondary:hover {
    background: #444;
    transform: translateY(-2px);
}

.btn-discord {
    background: #7289da;
    color: white;
    border: none;
}

.btn-discord:hover {
    background: #5c6fb1;
    color: white;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Wiki Cards */
.wiki-preview {
    padding: 80px 0;
    background: var(--darker-bg);
}

.wiki-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.wiki-card:hover {
    transform: translateY(-5px);
}

.wiki-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.wiki-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.wiki-card p {
    color: var(--text-secondary);
}

/* News Section */
.news-card {
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.news {
    background: var(--darker-bg);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-card-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

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

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

.footer-links a:hover {
    color: var(--primary);
}

/* Server Status */
.server-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-value.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .navbar-collapse {
        background: var(--darker-bg);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .feature-card,
    .wiki-card,
    .news-card {
        margin-bottom: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

/* Server Status Banner */
/* Server Status Banner */
.server-status-banner {
    margin-bottom: 4rem;  /* Zvětšeno z 3rem */
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    padding: 1.5rem;  /* Přidáno pro vnitřní prostor */
}

.server-name {
    font-size: 2rem;  /* Zvětšeno z 1.4rem */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;  /* Zvětšeno z 0.75rem */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;  /* Zvětšeno z 0.75rem */
}

.server-name i {
    color: var(--primary);
    font-size: 1.5em;  /* Zvětšeno ikony */
}

.server-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;  /* Zvětšeno z 0.5rem */
}

.online-count {
    font-size: 1.6rem;  /* Zvětšeno z 1.2rem */
    color: var(--text-primary);
}

.status-bar {
    width: 300px;  /* Zvětšeno z 200px */
    height: 6px;  /* Zvětšeno z 4px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;  /* Upraveno podle výšky */
}

.online-count .label {
    margin-left: 0.75rem;  /* Zvětšeno z 0.5rem */
    color: var(--text-secondary);
    font-size: 1.1rem;  /* Zvětšeno z 0.9rem */
}

.online-count .current {
    color: var(--primary);
    font-weight: 600;
}

.online-count .separator {
    margin: 0 0.25rem;
    color: var(--text-secondary);
}

.online-count .max {
    color: var(--text-secondary);
}

.online-count .label {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-bar {
    width: 360px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cta-buttons {
    margin-top: 1rem; /* Základní velikost mezery */
    /* Nebo pro větší kontrolu: */
    position: relative;
    top: 1rem; /* Posune prvek dolů */
}

/* Oprava tlačítek */


.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-discord {
    background: var(--discord);
    color: white;
    border: none;
    transition: var(--transition);
}

.btn-discord:hover {
    background: #5c6fb1;
    color: white;
    transform: translateY(-2px);
}

.btn-login {
    background: var(--primary);
    color: white;
    border: none;
    transition: var(--transition);
}

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

/* Přidat do main.css */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #c82333;
    color: white;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

/* Editor Controls */
.editor-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Editační prvky */
[contenteditable="true"] {
    border: 1px dashed rgba(30, 144, 255, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    min-height: 1.5em;
    transition: all 0.2s ease;
}

[contenteditable="true"]:hover {
    border-color: var(--primary);
    background: rgba(30, 144, 255, 0.05);
}

[contenteditable="true"]:empty::before {
    content: attr(placeholder);
    color: #666;
    pointer-events: none;
}

.editable-item {
    position: relative;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.editable-item:hover {
    border-color: var(--primary);
    background: rgba(30, 144, 255, 0.03);
}

/* Form Controls */
input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    margin-top: 8px;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.25);
}

/* Loading State */
.loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}
