/**
 * Стили личного кабинета Dashboard
 * Файл: assets/css/dashboard.css
 */

/* ===============================
   ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ
   =============================== */

.dashboard-page {
    background: transparent;
    min-height: calc(100vh - 200px);
    padding: 30px 0 20px;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   ШАПКА ЛИЧНОГО КАБИНЕТА
   =============================== */

.dashboard-header {
    background: transparent;
    padding: 20px;

    border-radius: 10px;
}

.user-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #dbcab4;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-greeting h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.user-meta {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

/* ===============================
   БЕЙДЖИ ПОДПИСКИ
   =============================== */

.subscription-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-badge.free {
    background: #E8D5C4;
    color: #6B5637;
}

.subscription-badge.premium {
    background: linear-gradient(135deg, #8B6F47, #D4A574);
    color: white;
}

.subscription-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
}

/* ===============================
   ОСНОВНОЙ КОНТЕНТ (СЕТКА)
   =============================== */

.dashboard-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* ===============================
   САЙДБАР НАВИГАЦИИ
   =============================== */

.dashboard-sidebar {
    background: white;
    padding: 0;
    box-shadow: 0 5px 20px rgba(139, 111, 71, 0.1);
    height: fit-content;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #F5E6D3;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #383838;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 17px;
    position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #F5E6D3;
    color: #8B6F47;
    padding-left: 35px;
}

.sidebar-menu svg {
    flex-shrink: 0;
}

/* Стили для будущих разделов */
.sidebar-menu a.coming-soon {
    opacity: 0.6;
    position: relative;
}

.sidebar-menu a.coming-soon::after {
    content: "Скоро";
    position: absolute;
    right: 15px;
    font-size: 10px;
    background: #E0E0E0;
    color: #888;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.sidebar-menu a.coming-soon:hover {
    opacity: 0.8;
    cursor: default;
    padding-left: 25px;
}

/* ===============================
   ОСНОВНОЙ КОНТЕНТ
   =============================== */

.dashboard-main {
    display: grid;
    gap: 10px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(139, 111, 71, 0.1);
    border-radius: 10px;
    border-left: 2px solid #dbcab4;
}

.card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 20px;
    color: #3A3A3A;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #F5E6D3;
}

.welcome-card {
    text-align: left;
    border-left-color: #dbcab4;
}

.welcome-card p {
    color: #383838;
    font-size: 15px;
    line-height: 1.5;
    max-width: 600px;
    margin: 5 auto;
}

/* ===============================
   АСТРО КАРТА (для будущего использования)
   =============================== */

.astro-card {
    background: linear-gradient(135deg, #8B6F47, #D4A574);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-left: none;
}

.astro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.astro-animal {
    font-size: 80px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.astro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.astro-details {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ===============================
   СЕТКИ ДЛЯ КОНТЕНТА
   =============================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #F5E6D3;
}

.info-label {
    color: #6B6B6B;
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: #3A3A3A;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #F5E6D3;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #E8D5C4;
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: #8B6F47;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B6B6B;
    margin-top: 5px;
}

/* ===============================
   БЫСТРЫЕ ДЕЙСТВИЯ
   =============================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: #F5E6D3;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #3A3A3A;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #E8D5C4;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(139, 111, 71, 0.1);
    transition: left 0.3s ease;
}

.action-card:hover::before {
    left: 0;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 111, 71, 0.2);
    text-decoration: none;
    color: #3A3A3A;
}

.action-icon {
    font-size: 40px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.action-title {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 2;
}



/* ===============================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   =============================== */

@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-sidebar {
        order: 2;
    }
    
    .dashboard-main {
        order: 1;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .user-welcome {
        flex-direction: row;
        text-align: left;
    }
    
    .user-info-section {
        flex-direction: row;
        text-align: left;
    }
    
    .user-greeting h1 {
        font-size: 24px;
    }
    
    .dashboard-page {
        padding: 5px 0;
    }
    
    .dashboard-container {
        padding: 0 1px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .sidebar-menu a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .user-greeting h1 {
        font-size: 20px;
    }
    
    .subscription-badge {
        font-size: 10px;
        padding: 6px 15px;
    }
}