/* ========== СТИЛИ ГЛАВНОЙ СТРАНИЦЫ ========== */
.index-page .content {
    padding: 30px 20px;
}

/* Приветственный баннер */
.welcome-banner {
    background: linear-gradient(145deg, rgba(44,30,21,0.95), rgba(26,17,12,0.95));
    border: 2px solid #a0522d;
    border-radius: 30px;
    padding: 40px 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 30px rgba(212,175,55,0.1);
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.welcome-banner h1 {
    font-size: 3rem;
    color: #ffd966;
    text-shadow: 2px 2px 0 #2b1e0e;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.welcome-banner p {
    color: #e6d5b8;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}
.welcome-banner .button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.welcome-banner .button {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 40px;
}
.welcome-banner .button.register {
    background: linear-gradient(145deg, #27ae60, #229954);
    border-color: #2ecc71;
}
.welcome-banner .button.register:hover {
    background: linear-gradient(145deg, #229954, #1e8449);
    box-shadow: 0 0 20px #2ecc71;
}

/* Карточки разделов */
.dashboard-card {
    background: linear-gradient(145deg, rgba(44,30,21,0.98), rgba(26,17,12,0.98));
    border: 2px solid #a0522d;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 30px rgba(212,175,55,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.dashboard-card:hover {
    border-color: #b8860b;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), inset 0 0 40px rgba(212,175,55,0.15);
}
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd966;
    margin-bottom: 20px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-title::before {
    content: '✦';
    color: #ffd700;
    font-size: 2rem;
    line-height: 1;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.news-card {
    background: rgba(0,0,0,0.3);
    border-radius: 18px;
    padding: 20px;
    border-left: 4px solid;
    transition: transform 0.2s;
}
.news-card:hover {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.4);
}
.news-card .meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.news-card .category {
    font-weight: 600;
}
.news-card .date {
    color: #b8a58e;
}
.news-card h4 {
    color: #ffd966;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.news-card .read-more {
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.news-card .read-more:hover {
    color: #ffd700;
}

/* Сетка популярных статей */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.popular-card {
    background: rgba(0,0,0,0.3);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}
.popular-card:hover {
    transform: translateY(-4px);
    background: rgba(0,0,0,0.4);
}
.popular-card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.popular-card h4 {
    color: #ffd966;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.popular-card .stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #b8a58e;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.popular-card .read-more {
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
}

/* Сетка игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.game-card {
    background: linear-gradient(145deg, #8b4513, #5d2906);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255,215,0,0.3);
}
.game-card .game-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.game-card h4 {
    color: #ffd966;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.game-card p {
    color: #e6d5b8;
    font-size: 0.9rem;
}

/* Сплит-блок для авторизованных */
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.dashboard-split .dashboard-card {
    margin-bottom: 0;
}

/* Мини-виджет Гласа Шеары */
.god-mini {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
}
.god-mini .question-label {
    color: #ffd966;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.god-mini .question {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}
.god-mini .meta {
    display: flex;
    justify-content: space-between;
    color: #b8a58e;
    font-size: 0.9rem;
}

/* Мини-блок ежедневного бонуса */
.bonus-mini {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}
.streak-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    background: #3f2e22;
    border: 2px solid #8b5a2b;
    transition: all 0.2s;
}
.streak-circle.active {
    background: #b8860b;
    border-color: #ffd700;
    box-shadow: 0 0 15px gold;
}
.streak-circle.past {
    background: #27ae60;
    border-color: #2ecc71;
}
.streak-circle .day {
    font-size: 1.4rem;
    line-height: 1;
}
.streak-circle .tokens {
    font-size: 0.8rem;
    opacity: 0.9;
}
.bonus-info {
    flex: 1;
}
.bonus-info .balance {
    color: #ffd966;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.bonus-info .balance span {
    font-weight: 700;
}
.bonus-info .status {
    color: #b8a58e;
}
.bonus-info .claim-form {
    margin-top: 10px;
}
.bonus-info .claim-form .bonus-button.small {
    padding: 6px 16px;
    font-size: 0.9rem;
}

/* Лента статей (мини) */
.feed-mini {
    display: grid;
    gap: 15px;
}
.feed-item-mini {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: background 0.2s;
}
.feed-item-mini:hover {
    background: rgba(0,0,0,0.4);
}
.feed-item-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #b8860b;
    object-fit: cover;
}
.feed-item-mini .info {
    flex: 1;
}
.feed-item-mini .info a {
    color: #ffd966;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
}
.feed-item-mini .info a:hover {
    text-decoration: underline;
}
.feed-item-mini .info .meta {
    color: #b8a58e;
    font-size: 0.85rem;
}

/* Блок призыва для неавторизованных */
.call-to-action {
    text-align: center;
    padding: 50px 20px;
}
.call-to-action .icon {
    font-size: 5rem;
    margin-bottom: 20px;
}
.call-to-action h2 {
    color: #ffd966;
    font-size: 2rem;
    margin-bottom: 20px;
}
.call-to-action p {
    color: #e6d5b8;
    max-width: 600px;
    margin: 0 auto 30px;
}
.call-to-action .button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.call-to-action .button.register {
    background: linear-gradient(145deg, #27ae60, #229954);
    border-color: #2ecc71;
}
.call-to-action .button.register:hover {
    background: linear-gradient(145deg, #229954, #1e8449);
    box-shadow: 0 0 20px #2ecc71;
}

/* Кнопка "все" */
.view-all {
    text-align: right;
    margin-top: 20px;
}
.view-all .button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Адаптация */
@media (max-width: 768px) {
    .welcome-banner h1 {
        font-size: 2rem;
    }
    .welcome-banner p {
        font-size: 1rem;
    }
    .welcome-banner .button-group {
        flex-direction: column;
        gap: 10px;
    }
    .dashboard-split {
        grid-template-columns: 1fr;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .popular-grid {
        grid-template-columns: 1fr;
    }
    .bonus-mini {
        flex-direction: column;
        text-align: center;
    }
    .feed-item-mini {
        flex-direction: column;
        text-align: center;
    }
}