Загрузка данных


/* cabinet.css - личный кабинет */
body.cabinet-page {
    background-color: var(--color-text-light);
}
/* Hero секция */
.page-header {
    text-align: center;
    padding: 20px 20px 10px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.page-header p {
    color: rgba(245, 245, 220, 0.7);
}

/* Контейнер дашборда */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Сетка 3 колонки */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

/* Карточки */
.dashboard-card {
    background: var(--color-33-primary-dark);
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(218, 165, 32, 0.3);
    padding: 24px;
    margin-bottom: 24px;
    transition: all var(--transition-duration) ease;
}

.dashboard-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-accent);
    padding-left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 1.6rem;
}

.card-hint {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    color: rgba(245, 245, 220, 0.6);
    font-size: 0.75rem;
    text-align: center;
}

/* Вопрос дня */
.question-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
}

.question-text {
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Merriweather', serif;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.question-meta {
    color: rgba(245, 245, 220, 0.7);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.refresh-btn {
    margin-top: 16px;
    background: none;
    border: 1px solid rgba(218, 165, 32, 0.5);
    border-radius: 30px;
    padding: 6px 16px;
    color: var(--color-accent);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(218, 165, 32, 0.2);
}

/* Списки */
.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.scrollable-list::-webkit-scrollbar {
    width: 5px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

/* Элементы избранного и закладок */
.fav-item,
.bookmark-item {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-left: 3px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.fav-item:hover,
.bookmark-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(3px);
}

.fav-link,
.bookmark-link {
    flex: 1;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-word;
}

.fav-link:hover,
.bookmark-link:hover {
    color: var(--color-accent);
}

.bookmark-snippet {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.remove-btn {
    background: none;
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-radius: 30px;
    padding: 4px 12px;
    color: #ffb347;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.remove-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    border-color: var(--color-accent);
}

/* Пустые состояния */
.empty-state {
    text-align: center;
    padding: 30px 16px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 0.85rem;
    color: rgba(245, 245, 220, 0.8);
}

/* Кнопка удаления данных */
.btn-delete-data {
    width: 100%;
    background: transparent;
    border: 2px solid rgba(218, 165, 32, 0.5);
    border-radius: 40px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #e2bc89;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-delete-data:hover {
    background: rgba(218, 165, 32, 0.15);
    border-color: var(--color-accent);
}

/* Центральная колонка */
.central-card {
    background: var(--color-33-primary-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(218, 165, 32, 0.3);
    padding: 40px 24px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.central-icon {
    font-size: 64px;
}

.central-card h3 {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    color: var(--color-accent);
}

.central-card p {
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.9rem;
}

.verse {
    margin-top: 20px;
    font-style: italic;
    color: rgba(245, 245, 220, 0.6);
    font-size: 0.85rem;
}

/* Правая колонка - профиль */
.profile-card {
    background: var(--color-33-primary-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(218, 165, 32, 0.3);
    padding: 24px;
}

/* Аватар */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid var(--color-accent);
    overflow: hidden;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.camera-btn:hover {
    transform: scale(1.1);
}

/* Форма профиля */
.profile-form .form-group {
    margin-bottom: 18px;
}

.profile-form label {
    display: block;
    font-family: var(--font-family-heading);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.profile-input {
    width: 100%;
    padding: 10px 16px;
    background: rgba(245, 245, 220, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-radius: 40px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.profile-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.3);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-update,
.btn-logout {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-update {
    background: var(--color-button);
    border: none;
    color: white;
}

.btn-update:hover {
    background: #a52a1a;
    transform: scale(1.02);
}

.btn-logout {
    background: transparent;
    border: 2px solid rgba(218, 165, 32, 0.5);
    color: var(--color-accent);
}

.btn-logout:hover {
    background: rgba(218, 165, 32, 0.15);
}

.profile-message {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #ffd966;
}

/* Приветствие */
.greeting-badge {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 60px;
    display: inline-block;
    padding: 6px 20px;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.greeting-badge strong {
    color: var(--color-accent);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .left-column,
    .center-column,
    .right-column {
        width: 100%;
    }
    
    .central-card {
        min-height: auto;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 24px 16px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cabinet-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .fav-item,
    .bookmark-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .remove-btn {
        align-self: flex-end;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-card,
.profile-card,
.central-card {
    animation: fadeIn 0.3s ease forwards;
}

/* Toast уведомление */
.cabinet-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-button);
    color: var(--color-text-light);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: bold;
    z-index: 9999;
    border: 1px solid var(--color-accent);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}