/* ===== БАЗОВЫЕ СТИЛИ И СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Anime Ace', cursive;
    color: #5D4954;
    background-color: #F9F4F5;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ОБЩИЕ АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    to { transform: scale(1); }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    to { transform: translateY(0); }
}

/* ===== ОБЩИЕ КОМПОНЕНТЫ ===== */
/* Карточки/секции */
.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.card h2 {
    color: #ff6b9c;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
}

/* Кнопки и ссылки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #FF85A2;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #FF6B9C;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== ГЛАВНАЯ СТРАНИЦА (INDEX) ===== */
.home-page {
    height: 100vh;
    background: linear-gradient(135deg, #ffcfe4, #ffb6c1, #ff9ebb);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.home-page .container {
    text-align: center;
    z-index: 1;
    position: relative;
}

.main-title {
    font-size: 4rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-out;
}

.center-area {
    cursor: pointer;
    padding: 20px;
}

.welcome-table {
    background: linear-gradient(135deg, #FFD1DC, #E6E6FA);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.welcome-table.visible {
    opacity: 1;
    transform: translateY(0);
    animation: scaleIn 0.5s ease-out;
}

.welcome-table p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* ===== СТРАНИЦА БЛОГА ===== */
.blog-page {
    background: linear-gradient(135deg, #f8e1e9 0%, #e1d7f5 100%);
}

.blog-header {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f4a7c4 0%, #e1d7f5 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #5D4954;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-out;
    margin: 0;
}

/* Баннер */
.banner {
    height: 250px;
    overflow: hidden;
    position: relative;
    animation: slideIn 1s ease-out;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

/* Контейнер блога */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 20px;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

/* Сайдбар */
.sidebar {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInLeft 0.8s ease-out;
}

.avatar-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #f4a7c4;
    object-fit: cover;
    animation: pulse 3s infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Секции "Нравится/Не нравится" */
.likes-section, .dislikes-section {
    background: rgba(248, 225, 233, 0.3);
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.6s ease-out;
}

.likes-section h2, .dislikes-section h2 {
    color: #ff6b9c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.like-item, .dislike-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.like-item:hover, .dislike-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
}

.heart-icon, .broken-heart {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.like-item:hover .heart-icon {
    transform: scale(1.2);
}

.dislike-item:hover .broken-heart {
    transform: rotate(10deg);
}

/* Достижения */
.achievements-section {
    background: rgba(225, 215, 245, 0.3);
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.6s ease-out;
}

.achievements-section h2 {
    color: #9d7fe5;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.4rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.achievement-item {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.achievement-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
}

.achievement-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b9c;
    margin-bottom: 0.3rem;
}

.achievement-label {
    font-size: 0.8rem;
    color: #5D4954;
}

/* Навигация */
.sidebar-nav {
    background: rgba(225, 215, 245, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    animation: slideInLeft 1s ease-out;
}

.sidebar-nav h2 {
    color: #9d7fe5;
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
    animation: fadeIn 1.2s ease-out;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #5D4954;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-nav a:hover {
    background: #f4a7c4;
    color: white;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(244, 167, 196, 0.3);
}

/* Основной контент */
.main-content {
    flex: 2;
    min-width: 300px;
    animation: slideInRight 0.8s ease-out;
}

/* Веселые факты */
.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.fun-fact-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(248, 225, 233, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: slideIn 0.8s ease-out;
}

.fun-fact-item:hover {
    transform: translateY(-5px);
    background: rgba(248, 225, 233, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fun-fact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.fun-fact-item p {
    color: #5D4954;
    font-weight: 500;
}

/* Таблица аниме */
.anime-table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.anime-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(248, 225, 233, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: slideInRight 0.8s ease-out;
}

.anime-row:hover {
    transform: translateY(-5px);
    background: rgba(248, 225, 233, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.anime-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anime-info h3 {
    color: #ff6b9c;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.anime-description {
    color: #5D4954;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.anime-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.anime-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.anime-image img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.anime-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Соцсети */
.social-links {
    animation: fadeIn 1.2s ease-out;
}

.social-links h2 {
    color: #ff6b9c;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.social-link {
    display: block;
    padding: 15px 25px;
    background: white;
    color: #5D4954;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1.4s ease-out;
}

.social-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.twitter:hover {
    background: #FFD1DC;
}

.instagram:hover {
    background: #E6E6FA;
}

.discord:hover {
    background: #C8E9E8;
}

/* Футер */
.cute-footer {
    background: linear-gradient(135deg, #f4a7c4 0%, #e1d7f5 100%);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 3px solid #ff85a2;
    animation: fadeIn 1.5s ease-out;
}

.cute-footer p {
    margin-bottom: 0.5rem;
    color: #5D4954;
    font-weight: 600;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.footer-icons span {
    font-size: 1.8rem;
    animation: float 3s infinite ease-in-out;
}

.footer-icons span:nth-child(1) { animation-delay: 0s; }
.footer-icons span:nth-child(2) { animation-delay: 1s; }
.footer-icons span:nth-child(3) { animation-delay: 2s; }
.footer-icons span:nth-child(4) { animation-delay: 3s; }

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFD1DC, #E6E6FA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contact-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: scaleIn 0.8s ease-out;
}

.contact-container h1 {
    text-align: center;
    color: #FF6B9C;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #FFD1DC;
    border-radius: 10px;
    font-family: 'Anime Ace', cursive;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B9C;
    box-shadow: 0 0 0 3px rgba(255, 107, 156, 0.2);
}

.thank-you-message {
    text-align: center;
    padding: 20px;
    background: #C8E9E8;
    border-radius: 10px;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.thank-you-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .blog-container {
        flex-direction: column;
    }
    
    .banner {
        height: 200px;
    }
    
    .sidebar {
        min-width: 100%;
    }
    
    .fun-facts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .fun-fact-item {
        padding: 1rem;
    }
    
    .fun-fact-icon {
        font-size: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .achievement-item {
        padding: 0.5rem;
    }
    
    .achievement-number {
        font-size: 1.2rem;
    }
    
    .achievement-label {
        font-size: 0.7rem;
    }
    
    .anime-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .anime-image {
        order: -1;
    }
    
    .anime-image img {
        max-width: 100%;
        height: 180px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .contact-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .welcome-table {
        padding: 1.5rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .fun-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-row {
        padding: 1rem;
    }
    
    .anime-info h3 {
        font-size: 1.3rem;
    }
    
    .anime-description {
        font-size: 0.9rem;
    }
    
    .contact-container {
        padding: 1.5rem;
    }
    
    .cute-footer {
        padding: 1.5rem;
    }
    
    .footer-icons span {
        font-size: 1.5rem;
    }
}