﻿/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e6e6e6;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand a {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #e6e6e6;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-stats {
    display: flex;
    gap: 15px;
}

.stat {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Основной контент */
.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 1.1em;
    opacity: 0.8;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
}

/* Добавьте в assets/css/style.css */
.btn-info {
    background: linear-gradient(45deg, #4299e1, #38b2ac);
}

.btn-info:hover {
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

/* Стили для страницы без доступных сайтов */
.no-sites-container {
    text-align: center;
    padding: 50px 20px;
}

.no-sites-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-mini {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-mini-number {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-mini-label {
    font-size: 0.8em;
    opacity: 0.7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-list {
    display: grid;
    gap: 15px;
}

.site-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.site-item:hover {
    transform: translateY(-2px);
}

.site-url {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.site-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Уведомления */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.alert-success {
    margin-top: 10px;
    margin-bottom: -10px;
    background: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

.alert-error {
    margin-top: 10px;
    margin-bottom: -10px;
    background: rgba(245, 101, 101, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: #f56565;
}

/* Подвал */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 80px;
}

.footer-stat strong {
    display: block;
    font-size: 1.5em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .container {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные стили для уведомлений */
.alert-info {
    background: rgba(66, 153, 225, 0.2);
    border: 1px solid rgba(66, 153, 225, 0.3);
    color: #4299e1;
}

/* Дополнительные классы для кнопок */
.btn-info {
    background: linear-gradient(45deg, #4299e1, #38b2ac);
}

.btn-info:hover {
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

/* Стили для страницы 404 */
.error-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.error-content {
    text-align: left;
}

.error-number {
    font-size: 6em;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1;
}

.error-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-stats {
    display: flex;
    gap: 20px;
}

.error-stats .stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
}

/* Анимация космонавта */
.astro-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 50px rgba(102, 126, 234, 0.3);
}

.planet::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 40px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.planet::after {
    content: '';
    position: absolute;
    bottom: 50px;
    right: 30px;
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.astronaut {
    font-size: 4em;
    position: absolute;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star:nth-child(1) {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    width: 2px;
    height: 2px;
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 80%;
    left: 40%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 30%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Адаптивность для 404 */
@media (max-width: 768px) {
    .error-page {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .error-content {
        text-align: center;
    }
    
    .error-number {
        font-size: 4em;
    }
    
    .error-content h1 {
        font-size: 2em;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .error-stats {
        justify-content: center;
    }
    
    .astro-illustration {
        height: 300px;
    }
    
    .planet {
        width: 150px;
        height: 150px;
    }
    
   .desktop-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .desktop-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .desktop-grid > * {
        width: 100%;
    }
    
    /* Специфичные стили для правого блока на мобильных */
    .desktop-grid > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
    
}