/*
 * VS Planner — tool-specific styles
 * Inherits all CSS variables from main.css — do not redefine them here.
 */

/* ── Per-day accent palette ────────────────────────────────────────────────── */
:root {
    --vs-d1-color: #5aa1ff;
    --vs-d2-color: #f5b14a;
    --vs-d3-color: #4dd6c5;
    --vs-d4-color: #ff7a7a;
    --vs-d5-color: #f08c3c;
    --vs-d6-color: #e85aa8;
    --vs-d7-color: #b08bff;
}

/* ── Section heading (Weekly VS Progress) ─────────────────────────────────── */
.vs-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

/* ── Day grid selector ────────────────────────────────────────────────────── */
.vs-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
    .vs-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .vs-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vs-day {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    position: relative;
    min-height: 130px;
}

.vs-day:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.vs-day.is-active {
    border-color: var(--day-color, var(--accent));
    box-shadow: 0 0 0 1px var(--day-color, var(--accent)) inset;
}

.vs-day-state {
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 0.15rem;
    color: var(--text-muted);
}

.vs-day-state.is-done   { color: #4caf50; }
.vs-day-state.is-today  { color: var(--day-color, var(--accent)); }

.vs-day-weekday {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.vs-day-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--day-color, var(--accent));
}

.vs-day-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--day-color, var(--text-primary));
    margin-top: 0.1rem;
}

.vs-day-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 0.35rem;
}

/* ── Day detail panel ─────────────────────────────────────────────────────── */
.vs-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vs-detail-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.vs-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.vs-detail-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.vs-detail-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.vs-detail-body {
    padding: 1rem 1.25rem 1.25rem;
}

.vs-group {
    margin-top: 1rem;
}
.vs-group:first-child { margin-top: 0.25rem; }

.vs-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.vs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vs-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.vs-item-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.vs-item--todo  .vs-item-icon { background: rgba(76, 175, 80, 0.15); color: #5fcf64; border: 1px solid rgba(76, 175, 80, 0.35); }
.vs-item--avoid .vs-item-icon { background: rgba(232, 92, 92, 0.15); color: #ff8484; border: 1px solid rgba(232, 92, 92, 0.35); }
.vs-item--tip   .vs-item-icon { background: rgba(90, 161, 255, 0.15); color: #8ab9ff; border: 1px solid rgba(90, 161, 255, 0.35); }

.vs-item--avoid { background: rgba(232, 92, 92, 0.06); border-color: rgba(232, 92, 92, 0.25); }
.vs-item--tip   { background: rgba(90, 161, 255, 0.06); border-color: rgba(90, 161, 255, 0.25); }

.vs-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}
.vs-link:hover { color: var(--accent-hover); }
