/* Файл: fix-styles.css */
/* Все дополнительные стили */

/* 1. Структура контента и сайдбара */
.content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1800px;
  width: 95%;
  margin: 30px auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* 2. Стили сайдбара */
.premium-sidebar {
  transform: none !important;
  width: 350px;
  background: rgba(255, 248, 225, 0.9);
  border-radius: 25px;
  padding: 25px;
  border: 4px dashed #8B4513;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
  position: sticky;
  top: 20px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 10;
}

.sidebar-title {
  color: #5C3317;
  font-size: 32px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
  border-bottom: 3px dotted #FFA500;
  padding-bottom: 10px;
  font-family: 'RubikBubbles-Regular', cursive;
}

.premium-features {
  list-style-type: none;
  padding: 0;
}

.premium-features li {
  background: rgba(255, 215, 0, 0.2);
  margin-bottom: 15px;
  padding: 0;
  border-radius: 15px;
  font-size: 18px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.premium-features li a {
  display: block;
  color: #5a3921;
  text-decoration: none;
  padding: 12px 12px 12px 45px;
  transition: all 0.3s ease;
  font-family: 'RubikBubbles-Regular', cursive;
}

.premium-features li a:hover {
  background: rgba(255, 215, 0, 0.4);
  color: #8b5a2b;
  transform: translateX(5px);
}

.premium-features li a::before {
  content: "🐾";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.subscription-section {
  background: rgba(139, 69, 19, 0.1);
  padding: 20px;
  border-radius: 20px;
  margin-top: 30px;
  text-align: center;
}

.pricing {
  font-size: 28px;
  color: #5C3317;
  margin: 15px 0;
  font-family: 'RubikBubbles-Regular', cursive;
}

.subscribe-button {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to bottom, #FFD700, #FFA500);
  color: #5C3317;
  font-family: 'RubikBubbles-Regular', cursive;
  font-size: 26px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.subscribe-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.subscribe-button::after {
  content: "🍯";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}

/* 3. Адаптация для мобильных */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .premium-sidebar {
    width: 100%;
    position: static;
    margin-top: 40px;
    margin-left: 0;
  }
}

/* 4. Блок бесплатных игр */
#free-games {
  padding: 30px 40px;
  background: linear-gradient(135deg, #f9f3e9 0%, #f0e6d2 100%);
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 8px 25px rgba(139, 90, 43, 0.15);
  border: 2px solid #e8d9b6;
  width: 100%;
  box-sizing: border-box;
}

#free-games h2 {
  text-align: center;
  color: #8b5a2b;
  margin-bottom: 30px;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
}

#free-games h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, #8b5a2b, #d2a679, #8b5a2b);
  border-radius: 3px;
}

.language-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(139, 90, 43, 0.12);
  border: 1px solid #e8d9b6;
  width: 100%;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0e6d2;
}

.panel-header h3 {
  color: #5a3921;
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}

.lang-flag {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
  flex-shrink: 0;
}

.themes-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 20px;
}

.theme-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 20px rgba(139, 90, 43, 0.22);
}

.theme-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 2px solid #f0e6d2;
}

.theme-info {
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.theme-info h4 {
  color: #5a3921;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.theme-link {
  text-decoration: none;
  color: #5a3921;
  display: block;
}

.theme-link:hover .theme-card {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для блока игр */
@media (max-width: 1600px) {
  .themes-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1400px) {
  .themes-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1200px) {
  .themes-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 992px) {
  .theme-info h4 {
    white-space: normal;
  }
}
@media (max-width: 768px) {
  .panel-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .lang-flag {
    margin: 0 auto;
  }
  .theme-card img {
    height: 120px;
  }
}
@media (max-width: 576px) {
  .themes-container {
    grid-template-columns: 1fr;
  }
  #free-games {
    padding: 20px 15px;
  }
}

/* Увеличиваем шрифт */
.about-section p,
.about-features p,
.about-cta p {
    font-size: 1.5em;
    line-height: 1.4;
}
.feature-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.about-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid #8B4513;
}
@media (max-width: 768px) {
    .about-section p,
    .about-features p,
    .about-cta p {
        font-size: 1.5em;
    }
    .feature-card h3 {
        font-size: 1.5em;
    }
    .about-img {
        width: 150px;
        height: 150px;
    }
}

/* Стили для кнопок авторизации */
.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-login {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}
.btn-login:hover {
    background: #FFD700;
    color: #8B4513;
}
.btn-register {
    background: #FFD700;
    border: 2px solid #FFD700;
    color: #8B4513;
}
.btn-register:hover {
    background: #E6C200;
}

/* Новости в сайдбаре */
.sidebar-news {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px dashed #8B4513;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}
.sidebar-news h3 {
    color: #8B4513;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    font-family: 'RubikBubbles-Regular', cursive;
    text-align: center;
    justify-content: center;
    border-bottom: 2px dotted #FFA500;
    padding-bottom: 10px;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}
.news-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.news-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}
.news-date {
    background: #8B4513;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    align-self: flex-start;
}
.news-text {
    color: #5C3317;
    font-size: 0.95em;
    line-height: 1.3;
}
.all-news-link {
    display: block;
    text-align: center;
    color: #2E8B57;
    font-weight: bold;
    text-decoration: none;
    padding: 8px;
    border: 1px solid #2E8B57;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.all-news-link:hover {
    background: #2E8B57;
    color: white;
}
@media (max-width: 900px) {
    .news-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .news-date {
        align-self: center;
        flex-shrink: 0;
    }
}

/* ===== СТИЛИ ДЛЯ ПРЕМИУМ МОДАЛЬНОГО ОКНА ===== */
.premium-themes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}
.premium-modal-content {
    background: linear-gradient(135deg, #fff9f0 0%, #f5e6d3 100%);
    margin: 3% auto;
    padding: 30px;
    border-radius: 25px;
    border: 4px solid #FFD700;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    max-width: 1200px;
    width: 95%;
    position: relative;
    animation: premiumModalSlideIn 0.3s ease-out;
}
@keyframes premiumModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.premium-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px dashed #8B4513;
}
.premium-modal-header h2 {
    font-family: 'RubikBubbles-Regular', cursive;
    color: #5C3317;
    font-size: 2.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.close-premium-modal {
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.close-premium-modal:hover {
    background: #5C3317;
    transform: scale(1.1) rotate(90deg);
}
.premium-themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.premium-theme-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.premium-theme-item:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: #FFD700;
}
.premium-theme-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #f9f3e9;
    border-bottom: 3px solid #f0e6d2;
    padding: 5px;
    box-sizing: border-box;
}
.premium-theme-info {
    padding: 15px 10px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f9f3e9);
    flex: 1;
    min-height: 90px;
}
.premium-theme-info h3 {
    color: #5a3921;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-family: 'RubikBubbles-Regular', cursive;
}
.theme-audio-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(46, 139, 87, 0.95);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.premium-theme-item:hover .theme-audio-indicator {
    opacity: 1;
}
.premium-features-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    border: 2px dashed #8B4513;
}
.premium-features-info .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5a3921;
}
@media (max-width: 1024px) {
    .premium-themes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .premium-themes-grid { grid-template-columns: 1fr; }
}

/* SEO-блок */
.seo-games-showcase {
    max-width: 1200px;
    margin: 50px auto 30px;
    padding: 20px 0 10px 0;
    border-top: 2px solid #8B4513;
    border-bottom: 2px solid #8B4513;
}
.seo-main-title {
    font-family: 'RubikBubbles-Regular', cursive;
    color: #5C3317;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 15px 0;
}
.seo-intro {
    color: #5C3317;
    font-size: 1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}
.seo-content-text {
    color: #5C3317;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}
.seo-lang-icon-inline {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 5px;
}
.seo-theme-highlight {
    font-weight: 700;
    color: #5C3317;
    border-bottom: 1px dotted #8B4513;
}
.seo-words-list {
    color: #5C3317;
}
.seo-divider {
    display: inline-block;
    margin: 0 10px;
    color: #8B4513;
}
.seo-links {
    text-align: center;
    margin: 25px 0 20px;
}
.seo-links a {
    color: #8B4513;
    text-decoration: none;
    border-bottom: 1px dotted #8B4513;
    margin: 0 5px;
}
.seo-footer-text {
    text-align: center;
    color: #5C3317;
    font-size: 0.95rem;
    padding: 15px 0 5px 0;
    border-top: 1px solid #8B4513;
}
@media (max-width: 768px) {
    .seo-main-title { font-size: 1.5rem; }
    .seo-theme-highlight { white-space: normal; }
}

/* Стили для приветствия пользователя */
.user-greeting {
    margin-right: 15px;
    color: #5C3317;
    font-weight: bold;
}
.btn-logout {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-logout:hover {
    transform: translateY(-2px);
}

/* ========== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ========== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.auth-content {
    background: linear-gradient(135deg, #FFF5E6 0%, #F5E6D3 100%);
    border-radius: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.4);
    border: 4px solid #FFD700;
    position: relative;
}

.auth-content::before {
    content: "🐻";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 40px;
    background: #FFF5E6;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-content h2 {
    margin-top: 0;
    text-align: center;
    color: #5C3317;
    font-family: 'RubikBubbles-Regular', cursive;
    font-size: 32px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px dotted #FFD700;
    padding-bottom: 15px;
}

.auth-content .form-group {
    margin-bottom: 20px;
}

.auth-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #8B4513;
    font-family: 'RubikBubbles-Regular', cursive;
    font-size: 16px;
}

.auth-content .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFD700;
    border-radius: 30px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
    transition: all 0.3s ease;
}

.auth-content .form-group input:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    font-family: 'RubikBubbles-Regular', cursive;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 139, 87, 0.4);
}

.auth-cancel-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-family: 'RubikBubbles-Regular', cursive;
    transition: all 0.3s ease;
}

.auth-cancel-btn:hover {
    background: linear-gradient(135deg, #734210, #8B4513);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #FFD700;
}

.btn-switch-to-register {
    background: none;
    border: none;
    color: #2E8B57;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    font-family: 'RubikBubbles-Regular', cursive;
    font-weight: bold;
}

.btn-switch-to-register:hover {
    color: #8B4513;
}

.btn-send-sms {
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    font-family: 'RubikBubbles-Regular', cursive;
    transition: all 0.3s ease;
}

.btn-send-sms:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.3);
}

.btn-send-sms:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-notice {
    background: rgba(255, 215, 0, 0.2);
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #5C3317;
    border-left: 4px solid #FFD700;
    font-family: 'RubikBubbles-Regular', cursive;
}

#smsTimer {
    font-size: 12px;
    color: #8B4513;
    margin-top: 5px;
    text-align: center;
    font-family: 'RubikBubbles-Regular', cursive;
}

/* Стили для кнопки показа пароля */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 48px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8B4513;
    font-size: 18px;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 5px;
}

.toggle-password:hover {
    color: #2E8B57;
}

.toggle-password:focus {
    outline: none;
}

/* Для полей с паролем добавляем отступ справа */
.auth-content .form-group input[type="password"] {
    padding-right: 45px;
}

/* ===== БЛОК БЛОГА В САЙДБАРЕ ===== */
.sidebar-blog-teaser {
    background: linear-gradient(135deg, #f9f3e9, #f0e6d2);
    border-radius: 20px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
    border: 2px dashed #2E8B57;
    transition: all 0.3s ease;
}

.sidebar-blog-teaser:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.15);
    border-color: #FFD700;
}

.sidebar-blog-teaser h3 {
    color: #5C3317;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-family: 'RubikBubbles-Regular', cursive;
}

.sidebar-blog-teaser p {
    color: #5a3921;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-teaser-button {
    display: inline-block;
    background: #2E8B57;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.blog-teaser-button:hover {
    background: #3CB371;
    transform: scale(1.05);
}