/**
 * Sidebar Components - Phase 1.5
 * Reusable sidebar component styles with layered design
 */

/* Base Sidebar Block - Layered Card */
.ds-sidebar-block {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 2px 4px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.ds-sidebar-block:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Sidebar Block Header */
.ds-sidebar-block__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-3);
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.ds-sidebar-block__icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ds-sidebar-block__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ds-sidebar-block__description {
    margin: 0 0 var(--spacing-3) 0;
    font-size: var(--text-sm);
    color: #cbd5e1;
    line-height: 1.6;
}

.ds-sidebar-block__content {
    color: #f8fafc;
}

/* Mission Sidebar Block */
.ds-sidebar-block--mission {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    color: white;
    border: none;
}

.ds-sidebar-block--mission .ds-sidebar-block__header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.ds-sidebar-block--mission .ds-sidebar-block__title,
.ds-sidebar-block--mission .ds-sidebar-block__description {
    color: white;
}

.ds-sidebar-block--mission .ds-sidebar-block__title {
    font-size: 1.25rem;
    font-weight: 800;
}

.ds-sidebar-block--mission .ds-sidebar-block__description {
    opacity: 0.95;
}

.ds-sidebar-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.ds-sidebar-block--mission .ds-sidebar-block__list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--text-sm);
    opacity: 0.9;
}

.ds-sidebar-block--mission .ds-sidebar-block__list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

/* Links Sidebar Block */
.ds-sidebar-block--links {
    background: var(--surface-primary);
}

.ds-sidebar-block--links .ds-sidebar-block__header {
    border-bottom-color: rgba(13, 148, 136, 0.3);
}

.ds-sidebar-block--links .ds-sidebar-block__title {
    color: var(--color-accent-primary);
}

.ds-sidebar-block--links .ds-sidebar-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.ds-sidebar-block--links .ds-sidebar-block__list li {
    margin: 0;
}

.ds-sidebar-block--links .ds-sidebar-block__list a {
    display: flex;
    align-items: center;
    padding: var(--spacing-2) var(--spacing-3);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all 0.2s;
    background: rgba(15, 23, 42, 0.4);
}

.ds-sidebar-block--links .ds-sidebar-block__list a:hover {
    background: rgba(13, 148, 136, 0.2);
    color: var(--color-accent-primary);
    transform: translateX(4px);
}

.ds-sidebar-block--links .ds-sidebar-block__list a::before {
    content: '→';
    margin-right: var(--spacing-2);
    opacity: 0.7;
}

/* Stat Sidebar Block */
.ds-sidebar-block--stat {
    background: var(--surface-primary);
    text-align: center;
}

.ds-sidebar-block__stat-value {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-1);
}

.ds-sidebar-block__stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
}

/* Highlight Sidebar Block */
.ds-sidebar-block--highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ds-sidebar-block--highlight .ds-sidebar-block__header {
    border-bottom-color: rgba(245, 158, 11, 0.3);
}

.ds-sidebar-block--highlight .ds-sidebar-block__title {
    color: #fbbf24;
}

.ds-sidebar-block--highlight .ds-sidebar-block__description,
.ds-sidebar-block--highlight .ds-sidebar-block__content {
    color: #fcd34d;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .ds-sidebar-block--highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .ds-sidebar-block--highlight .ds-sidebar-block__title {
    color: #fbbf24;
}

[data-theme="dark"] .ds-sidebar-block--highlight .ds-sidebar-block__description,
[data-theme="dark"] .ds-sidebar-block--highlight .ds-sidebar-block__content {
    color: #fcd34d;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .ds-sidebar-block {
        padding: var(--spacing-4);
    }
    
    .ds-sidebar-block__header {
        margin-bottom: var(--spacing-2);
    }
}
