/* Стили для вкладок */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #22223fbd;
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 150, 255, 0.2);
}

.tab-button {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #b0b0d0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-button.active {
    background: rgba(192, 178, 237, 0.2);
    color: #beaefa;
    box-shadow: 0 4px 15px rgba(220, 195, 244, 0.2);
}

.tab-button i {
    font-size: 1.1rem;
}

/* Контент вкладок */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

/* Сетка для контактной информации */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: background 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.info-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #d4c6ff;
    min-width: 30px;
}

/* Стили для проектов */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #4169e1;
    opacity: 0;
    transform: translateY(20px);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgb(65 105 225 / 25%), rgb(66 74 105 / 25%));;
    border-radius: 10px;
    color: #b19df7;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0px solid rgba(234, 213, 253, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    background: linear-gradient(135deg, rgba(78, 65, 225, 0.428), rgb(66 74 105 / 25%));
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.project-link i {
    font-size: 1.1rem;
}

.download-btn {
    margin-top: 10px;
    display: inline-flex;
}

/* Стили для Minecraft раздела */
.server-status {
    margin-top: 20px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    flex-wrap: wrap;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.status-dot.offline {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-dot.checking {
    background: #FF9800;
    box-shadow: 0 0 10px #FF9800;
    animation: pulse 1.5s infinite;
}

.status-dot.error {
    background: #FF9800;
    box-shadow: 0 0 10px #FF9800;
}

.status-text {
    font-weight: 500;
}

.last-updated {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

.server-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row i {
    color: #d4c6ff;
    width: 20px;
    text-align: center;
}

/* Кнопки Minecraft */
.connect-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.minecraft-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.minecraft-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.connect-copy {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.connect-copy:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

/* Карта мира */
.world-map {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid #4CAF50;
}

.map-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px dashed rgba(76, 175, 80, 0.3);
}

/* Сервер оффлайн */
.server-offline {
    background: rgba(244, 67, 54, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 25px;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.offline-message i {
    font-size: 3rem;
    color: #f44336;
    margin-bottom: 20px;
}

.offline-message h3 {
    color: #f44336;
    margin-bottom: 15px;
}

/* Информация о сервере */
.server-features {
    list-style: none;
    margin: 20px 0;
}

.server-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    color: #d1d1e9;
}

.server-features li i {
    color: #4CAF50;
}

.server-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: #b0b0d0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-note i {
    color: #FF9800;
}

/* Кнопка обновления */
.refresh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(21, 101, 192, 0.2));
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.refresh-button:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(21, 101, 192, 0.3));
    transform: translateY(-2px);
}

.refresh-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-button:disabled:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(21, 101, 192, 0.2));
}

/* Иконка копирования */
.copy-icon {
    background: transparent;
    border: none;
    color: #8a2be2;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.copy-icon:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: scale(1.1);
}

#serverAddress {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 5px;
    border-radius: 4px;
}

#serverAddress:hover {
    background: rgba(138, 43, 226, 0.1);
}

/* Адаптивность для главной страницы */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        max-width: 100%;
        padding: 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-list {
        grid-template-columns: 1fr;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .server-info {
        padding: 15px;
    }
    
    .status-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .last-updated {
        margin-left: 0;
        font-size: 0.7rem;
    }
    
    .connect-options {
        gap: 10px;
    }
    
    .minecraft-button {
        padding: 12px;
        font-size: 1rem;
    }
}
