@import "global.css";

/* ========== ОСНОВНЫЕ КОНТЕЙНЕРЫ ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== HEADER ========== */
#main-header {
    background: url("../images/header-background.jpg") no-repeat fixed center;
    background-size: cover;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

#main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 150px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.header-left {
    flex: 1;
}

.server-ip {
    color: #F0C75E;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ЗАГОЛОВОК - УМЕНЬШЕН ВДВОЕ (было 12rem, стало 6rem) */
.main-title {
    color: #fff;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(240, 199, 94, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.header-description {
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.header-buttons {
    display: flex;
    gap: 20px;
}

.copy-ip-btn {
    background: #F0C75E;
    border: 2px solid #F0C75E;
    color: #1a1a1a;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-ip-btn:hover {
    background: transparent;
    color: #F0C75E;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(240, 199, 94, 0.3);
}

.more-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.more-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.copy-message {
    color: #4CAF50;
    margin-top: 15px;
    display: none;
}

.copy-message.active {
    display: block;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-logo {
    max-width: 300px;
    animation: float 4s ease-in-out infinite;
}

/* ========== FEATURES ========== */
.features-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #242424;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #F0C75E;
    box-shadow: 0 10px 30px rgba(240, 199, 94, 0.1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F0C75E, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover::after {
    transform: translateX(100%);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    border-color: #F0C75E;
    background: #333;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(87%) sepia(21%) saturate(1475%) hue-rotate(334deg) brightness(101%) contrast(101%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(120%) contrast(100%);
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #F0C75E;
}

.feature-card p {
    color: #bbb;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* ========== DISCORD ========== */
.discord-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    text-align: center;
}

.discord-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.discord-section .section-title span {
    color: #F0C75E;
}

.discord-btn {
    display: inline-block;
    text-decoration: none;
}

.discord-btn button {
    background: #5865F2;
    border: 2px solid #5865F2;
    color: #fff;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.discord-btn button:hover {
    background: transparent;
    color: #5865F2;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.discord-widget {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 350px;
    width: 100%;
    border: 2px solid #333;
    transition: all 0.3s ease;
}

.discord-widget:hover {
    border-color: #F0C75E;
    transform: translateY(-5px);
}

/* ========== ABOUT ========== */
.about-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-info .section-title {
    margin-bottom: 30px;
    text-align: left;
}

.about-info .section-title span {
    color: #F0C75E;
}

.about-description {
    color: #bbb;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.about-feature-item i {
    color: #F0C75E;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: #242424;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: #F0C75E;
    transform: translateY(-5px);
}

.stat-number {
    color: #F0C75E;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== STATS ========== */
.stats-section {
    padding: 80px 0;
    background: #222;
}

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

.stats-section .section-title span {
    color: #F0C75E;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stats-card {
    background: #242424;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: #F0C75E;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 199, 94, 0.1);
}

.stats-card i {
    font-size: 3rem;
    color: #F0C75E;
    margin-bottom: 20px;
}

.stats-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.stats-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#uptime-percent {
    color: #fff;
}

/* ========== FOOTER ========== */
.main-footer {
    padding: 40px 0;
    background: #111;
    text-align: center;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

.copyright .server-name {
    color: #F0C75E;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1600px) {
    .main-title { font-size: 5.5rem; }
}

@media screen and (max-width: 1400px) {
    .main-title { font-size: 5rem; }
}

@media screen and (max-width: 1200px) {
    .header-content { padding: 0 50px; }
    .main-title { font-size: 4.5rem; }
}

@media screen and (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .main-title {
        font-size: 4rem;
        white-space: normal;
    }
    
    .header-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    .floating-logo { max-width: 200px; }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-info .section-title { text-align: center; }
    .about-feature-item { justify-content: center; }
}

@media screen and (max-width: 768px) {
    .main-title { font-size: 3.5rem; }
    
    .header-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    
    .section-title { font-size: 2rem; }
    .discord-section .section-title { font-size: 1.8rem; }
    
    .discord-btn button {
        padding: 12px 40px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .main-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .header-description { font-size: 1rem; }
    
    .copy-ip-btn,
    .more-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .about-info .section-title { font-size: 1.8rem; }
    
    .stats-card i { font-size: 2.5rem; }
    .stats-value { font-size: 2rem; }
}