/* Общие стили для всех страниц Sharkproject */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    min-height: 100vh;
    position: relative;
}

/* Minecraft пиксельные блоки в фоне */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(102, 126, 234, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(118, 75, 162, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(102, 126, 234, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(118, 75, 162, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    pointer-events: none;
    z-index: 0;
}

/* Плавающие Minecraft блоки */
.mc-block {
    position: fixed;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    opacity: 0.1;
    animation: float-block 20s infinite ease-in-out;
    z-index: 0;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

@keyframes float-block {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -100px) rotate(90deg); }
    50% { transform: translate(200px, 50px) rotate(180deg); }
    75% { transform: translate(100px, 100px) rotate(270deg); }
}

/* Стеклянный эффект */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Градиентный текст */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Эффект наведения на карточки */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

/* Плавающая анимация */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Навигационные ссылки */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

/* Плавное появление страницы */
body {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Дополнительные стили для новостей */
.news-content a {
    color: #667eea;
    text-decoration: underline;
}

.news-content a:hover {
    color: #764ba2;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.news-content ul,
.news-content ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    margin-bottom: 0.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Стили для форм */
input:focus,
textarea:focus,
select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

input.border-green-500 {
    border-color: #10b981 !important;
}

input.border-red-500 {
    border-color: #ef4444 !important;
}

/* Тени для повышенной глубины */
.shadow-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}
