/* account.css - Стили для личного кабинета */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #84b967;
    --primary-dark: #6da352;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.account-main {
    padding-top: 100px;
    background-color: #f9faf8;
    min-height: 100vh;
}

/* Герой-секция */
.account-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f0f7ed 0%, #e8f3e3 100%);
    text-align: center;
    margin-top: 80px;
}

.account-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.account-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Общие заголовки секций */
.section-header {
    border-bottom: 2px solid rgba(132, 185, 103, 0.2);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.account-section {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* ===== КАРТОЧКА ПРОФИЛЯ ===== */
.profile-card {
    border-radius: 15px;
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    color: var(--white);
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-dark);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.avatar-edit-btn:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-status {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.profile-level {
    text-align: center;
}

.level-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.level-progress {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.level-progress .progress-bar {
    background-color: var(--primary-color);
}

.level-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ===== КАРТОЧКА БЫСТРЫХ ДЕЙСТВИЙ ===== */
.quick-actions-card {
    border-radius: 15px;
}

.quick-actions-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.quick-actions-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: rgba(132, 185, 103, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* ===== ИСТОРИЯ ЗАКАЗОВ ===== */
.order-card {
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.order-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow) !important;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.order-date {
    font-size: 0.9rem;
}

.order-status {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
}

.order-products {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
}

.product-item {
    padding: 0.5rem;
}

.product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.product-info {
    padding-right: 1rem;
}

.product-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-price {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
    text-align: right;
}

.order-footer {
    border-top: 1px solid #eee;
}

/* ===== ДНЕВНИК ЭФФЕКТОВ ===== */
.diary-intro {
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.diary-intro .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.diary-intro .card-text {
    color: var(--text-light);
}

.diary-entry {
    border-radius: 12px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.diary-entry:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.entry-date {
    font-size: 0.9rem;
}

.entry-mood .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    margin-right: 0.25rem;
}

.entry-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.entry-content strong {
    color: var(--primary-color);
}

/* ===== ЛЮБИМЫЕ ТОВАРЫ ===== */
.favorites-count {
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f0f7ed;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.favorite-item {
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.favorite-item:hover {
    border-color: var(--primary-color);
}

.favorite-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.favorite-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.favorite-remove {
    padding: 0;
    font-size: 1.2rem;
}

.favorite-rating {
    font-size: 0.9rem;
}

.favorite-desc {
    font-size: 0.85rem;
    line-height: 1.4;
}

.favorite-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== КУРСЫ ===== */
.courses-count {
    font-size: 0.9rem;
    color: var(--text-light);
    background: #f0f7ed;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.course-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.course-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.course-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.course-progress .progress {
    height: 6px;
    border-radius: 3px;
}

.course-progress .progress-bar {
    background-color: var(--primary-color);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
#diaryEntryModal .modal-content {
    border-radius: 15px;
    border: none;
}

#diaryEntryModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

#diaryEntryModal .modal-title {
    font-weight: 600;
}

#diaryEntryModal .modal-body {
    padding: 1.5rem;
}

#diaryEntryModal .form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

#diaryEntryModal .form-control,
#diaryEntryModal .form-select {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

#diaryEntryModal .form-control:focus,
#diaryEntryModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(132, 185, 103, 0.25);
}

#diaryEntryModal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#diaryEntryModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .account-hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        background: #f9f9f9;
        border-radius: 8px;
    }
    
    .stat-number, .stat-label {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .account-hero {
        padding: 120px 0 50px;
        margin-top: 70px;
    }
    
    .account-hero-title {
        font-size: 2rem;
    }
    
    .account-hero-subtitle {
        font-size: 1rem;
    }
    
    .account-section {
        padding: 1.5rem 1rem;
    }
    
    .order-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .order-actions button {
        width: 100%;
    }
    
    .entry-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entry-actions, .entry-share {
        width: 100%;
    }
    
    .entry-actions button, .entry-share button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .account-hero-title {
        font-size: 1.8rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .favorite-item .d-flex {
        flex-direction: column;
    }
    
    .favorite-img {
        margin-bottom: 1rem;
        margin-right: 0;
        width: 100%;
        height: 120px;
    }
}

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

.order-card, .diary-entry, .favorite-item, .course-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Интерактивные элементы */
.order-repeat:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.order-details:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Плавная прокрутка к разделам */
html {
    scroll-behavior: smooth;
}