/**
 * Layer 138: Personalized Dashboard Styles
 */

/* Access Button */
.dashboard-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Overlay */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dashboard-container {
    background: #f8fafc;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dash-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-header h2 {
    margin: 0;
    color: #1e293b;
}

.dash-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
}

.dash-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100%;
    overflow: hidden;
}

/* Sidebar */
.dash-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 30px;
}

.profile-card {
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #64748b;
    font-weight: 700;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.interest-tags .tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Content Area */
.dash-content {
    padding: 40px;
    overflow-y: auto;
    background: #f1f5f9;
}

.dash-section {
    margin-bottom: 40px;
}

.dash-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Continue Reading Card */
.continue-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.continue-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.continue-card h4 {
    margin: 5px 0 15px;
    font-size: 1.2rem;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-bar .fill {
    height: 100%;
    background: white;
    border-radius: 2px;
}

.btn-read {
    background: white;
    color: #2563eb;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

/* Lists */
.saved-list {
    list-style: none;
    padding: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.saved-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-list li:last-child {
    border-bottom: none;
}

.saved-list a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
}

.rec-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rec-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    cursor: pointer;
}

.rec-card:hover {
    transform: translateY(-3px);
}

.rec-card h5 {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.rec-card p {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    /* Hide sidebar on mobile for simplicity */
    .rec-feed {
        grid-template-columns: 1fr;
    }
}