/* ===== VARIABLES ===== */
:root {
    /* Dark theme */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-accent: #00aaff;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-accent: #f8f9fa;
    --accent-blue: #00aaff;
    --accent-lime: #bfff00;
    --accent-green: #4caf50;
    --border: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.3);
    --error-color: #dc3545;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-lime);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ===== HEADER ===== */
header {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.logo i {
    margin-right: 0.5rem;
    color: var(--accent-lime);
}


.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    overflow: hidden; /* добавлено */
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.8s;
}

.nav-link i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
    min-width: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-lime);
    transition: width 0.8s;
}

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

.nav-link i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
    min-width: 1rem; /* чтобы иконки были ровные */
}

.nav-link .nav-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.8s ease, opacity 0.8s ease; /* Быстрое сворачивание */
    color: inherit;
}



/* Показываем текст при наведении */

.nav-link:hover .nav-text {
    max-width: 200px;
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}


.search-form {
    display: flex;
    position: relative;
    margin-right: 1rem;
}

.search-form input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 200px;
    color: var(--text-primary);
    transition: width 0.3s;
}

.search-form input:focus {
    width: 250px;
    outline: none;
    border-color: var(--accent-blue);
}

.search-form button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="light"] .dark-icon {
    display: none;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-lime);
}

.section-title-admins {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    text-align: center; /* Центрируем текст */
    padding-bottom: 0.5rem;
    position: relative; /* Важно для абсолютного позиционирования псевдоэлемента */
}

.section-title-admins::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: none;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: var(--accent-lime);
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
    grid-column: 1 / -1;
    text-align: center;
}

.error-message i {
    font-size: 2rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

/* Стили для результатов поиска */
.search-results .rule-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.search-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.search-rule {
    font-size: 1rem;
}

.highlight-search {
    background-color: var(--accent-blue);
    color: var(--text-accent);
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    text-align: center;
}

.search-no-results i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .nav-actions {
        margin-left: 1rem;
    }
    
    .search-form input {
        width: 150px;
    }
    
    .search-form input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-actions {
        margin: 1rem 0 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .search-form {
        width: calc(100% - 50px);
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form input:focus {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== RULES PAGE STYLES ===== */
.page-header {
    background-color: var(--bg-secondary);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.rules-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.rules-nav {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.rules-nav ul {
    list-style: none;
    padding: 0;
}

.rules-nav li {
    margin-bottom: 0.5rem;
}

.rules-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.rules-nav-link:hover, .rules-nav-link.active {
    background-color: var(--accent-blue);
    color: var(--text-accent);
}

.rules-content {
    flex-grow: 1;
}

.rules-category-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rule-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px var(--shadow);
}

.rule-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: rgba(0, 170, 255, 0.1);
    border-left: 4px solid var(--accent-blue);
}

.rule-description {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-results .rule-item {
    border-left: 4px solid var(--accent-lime);
}

.search-category {
    background-color: var(--accent-blue);
    color: var(--text-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    margin-left: 1.5rem;
}

.highlight-search {
    background-color: rgba(191, 255, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
}

.search-no-results i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

@media (max-width: 992px) {
    .rules-container {
        flex-direction: column;
    }
    
    .rules-nav {
        width: 100%;
        position: static;
    }
    
    .rules-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .rules-nav li {
        margin-bottom: 0;
    }
    
    .rules-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .rule-header {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .rule-description {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== HOME PAGE STYLES ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1607513746994-51f730a44832?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: white;
    padding: 8rem 1rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--accent-lime);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-lime);
    color: var(--bg-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--accent-lime);
}

.btn-secondary:hover {
    background-color: var(--accent-lime);
    color: var(--bg-secondary-dark);
    transform: translateY(-3px);
}

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

.feature-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.bg-accent {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.bg-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1), rgba(191, 255, 0, 0.1));
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.server-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-lime);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.news-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

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

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .server-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== CONTACTS PAGE STYLES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.contact-center .contact-card {
    max-width: 500px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

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

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-lime);
    font-weight: 600;
}

.contact-form-container {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.social-connect {
    text-align: center;
    padding: 2rem 0;
}

.social-connect h2 {
    margin-bottom: 2rem;
    color: var(--accent-blue);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.social-link i {
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы модов */
.mods-container {
    padding: 2rem 0;
}

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

.mod-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.mod-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.mod-content {
    padding: 1.25rem;
}

.mod-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.mod-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mod-link {
    display: inline-block;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mod-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1rem;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-color);
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff3333;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    grid-column: 1 / -1;
}

.error-message i {
    margin-right: 0.5rem;
}

.no-mods {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 768px) {
    .mods-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .mods-grid {
        grid-template-columns: 1fr;
    }
} 

/* Стили для серверов */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.server-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.server-header {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.server-status {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-text {
    color: var(--text-secondary);
}

.server-content {
    padding: 20px 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.server-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.server-owner {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.server-owner i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.server-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.server-details {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.server-detail {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.server-detail:last-child {
    margin-bottom: 0;
}

.server-detail i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: var(--accent-blue);
}

.server-ip {
    display: inline-flex;
    align-items: center;
    font-family: monospace;
    font-weight: 600;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-left: 6px;
}

.server-ip:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.copy-icon {
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.server-ip:hover .copy-icon {
    opacity: 1;
}

.server-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.btn-play {
    background: linear-gradient(45deg, #00aaff, #0077ff);
    padding: 12px 35px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
}

.btn-play:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 170, 255, 0.2);
}

.btn-play i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.server-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    opacity: 0.05;
    z-index: 1;
}

.copy-success {
    position: absolute;
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
}

.copy-success:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #4caf50;
}

.copy-success.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 400px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    border-left: 4px solid #4caf50;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    color: #4caf50;
    font-size: 28px;
    margin-right: 20px;
}

.notification-content p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.notification-small {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    margin-top: 6px !important;
    font-weight: 400 !important;
}

@media (max-width: 992px) {
    .servers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 576px) {
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .server-content {
        padding: 15px 20px 25px;
    }
    
    .server-name {
        font-size: 1.5rem;
    }
}

/* ===== UPDATES PAGE STYLES ===== */
.updates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.update-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow);
}

.update-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-image.no-image {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-lime));
    color: white;
    font-size: 3rem;
    opacity: 0.8;
}

.update-content {
    padding: 1.5rem;
}

.update-date {
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.update-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.update-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.update-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.update-read-more:hover {
    color: var(--accent-lime);
}

/* Update Modal Styles */
.update-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.update-modal.show {
    display: block;
}

.update-modal-content {
    background-color: var(--bg-secondary);
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px var(--shadow);
}

.update-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--error-color);
}

.update-modal-body {
    padding: 1.5rem;
}

.update-modal-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.update-modal-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.update-modal-date {
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.update-modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.update-modal-details {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.update-modal-details h1,
.update-modal-details h2,
.update-modal-details h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.update-modal-details p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.update-modal-details ul,
.update-modal-details ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.update-modal-details li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.update-modal-details code {
    background-color: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-lime);
}

.update-modal-details pre {
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.update-modal-details pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.update-modal-screenshots {
    margin-top: 2rem;
}

.update-modal-screenshots h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .update-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ПРАВИЛА - МНОГОСЕРВЕРНОСТЬ ===== */
.server-selector {
    margin: 2rem 0;
    text-align: center;
}

.server-selector h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.server-dropdown-container {
    position: relative;
    display: inline-block;
    max-width: 400px;
    width: 100%;
    margin: 0 auto 2rem;
}

.server-dropdown {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.server-dropdown:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.server-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.server-dropdown option {
    padding: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.server-dropdown option[value="global"] {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: var(--white);
    font-weight: 600;
}

.server-dropdown-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.server-dropdown-container:hover .server-dropdown-icon {
    color: var(--primary);
}

/* Анимация иконки при фокусе */
.server-dropdown:focus + .server-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
}

.rules-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 2rem 0;
}

.rules-empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rules-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.rules-empty-state p {
    color: var(--text-secondary);
}

.rules-server-title {
    text-align: center;
    margin: 2rem 0 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.rules-server-title h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.rules-server-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .server-dropdown-container {
        max-width: 100%;
        margin: 0 1rem 2rem;
    }
    
    .server-dropdown {
        padding: 0.875rem 3rem 0.875rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .server-selector {
        margin: 1rem 0;
    }
    
    .server-selector h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
} 