/* Meridian Roadmap — Dark Theme */
.mrd-roadmap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.mrd-header {
    text-align: center;
    margin-bottom: 32px;
}
.mrd-header h2 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2rem;
    color: var(--gold, #c2a96a);
    margin: 0 0 8px;
}
.mrd-header p {
    color: var(--text-dim, #9a9a9a);
    font-size: .95rem;
    margin: 0;
}

/* Layout: left sidebar (160px) + board (2 cols) + right sidebar (260px) */
.mrd-layout {
    display: grid;
    grid-template-columns: 160px 1fr 260px;
    gap: 20px;
    align-items: start;
}

/* ===== LEFT SIDEBAR ===== */
.mrd-sidebar-left { position: sticky; top: 80px; }

.mrd-widget {
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.mrd-widget-title {
    font-weight: 700;
    font-size: .85rem;
    color: var(--gold, #c2a96a);
    margin-bottom: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.mrd-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-dim, #9a9a9a);
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 2px;
}
.mrd-cat-item:hover {
    background: rgba(255,255,255,.04);
    color: var(--text, #eaeaea);
}
.mrd-cat-item.active {
    background: rgba(194,169,106,.12);
    color: var(--gold, #c2a96a);
    font-weight: 600;
}
.mrd-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== BOARD (2 columns) ===== */
.mrd-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.mrd-column {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, #2a2a2a);
    background: var(--card, #1a1a1a);
}

.mrd-col-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.mrd-col-count {
    background: rgba(255,255,255,.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .75rem;
}

.mrd-col-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

/* Cards */
.mrd-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    padding: 14px;
    transition: all .2s;
}
.mrd-card:hover {
    border-color: rgba(194,169,106,.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.mrd-card-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: .3px;
}

.mrd-card-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text, #eaeaea);
    line-height: 1.4;
    margin-bottom: 4px;
}

.mrd-card-desc {
    color: var(--text-dim, #9a9a9a);
    font-size: .8rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.mrd-card-footer {
    display: flex;
    justify-content: flex-end;
}

/* Vote Button */
.mrd-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim, #9a9a9a);
    cursor: pointer;
    font-size: .8rem;
    transition: all .2s;
}
.mrd-vote-btn:hover {
    border-color: var(--gold, #c2a96a);
    color: var(--gold, #c2a96a);
}
.mrd-vote-btn.voted {
    background: rgba(194,169,106,.12);
    border-color: var(--gold, #c2a96a);
    color: var(--gold, #c2a96a);
    font-weight: 600;
}
.mrd-vote-icon { font-size: .7rem; }
.mrd-vote-count { font-weight: 600; }

.mrd-empty {
    text-align: center;
    color: var(--text-dim, #9a9a9a);
    font-size: .85rem;
    padding: 30px 0;
    opacity: .6;
}
.mrd-empty-small {
    color: var(--text-dim, #9a9a9a);
    font-size: .8rem;
    margin: 4px 0;
    opacity: .6;
}

/* ===== RIGHT SIDEBAR ===== */
.mrd-sidebar-right { position: sticky; top: 80px; }

/* Completed items */
.mrd-done-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.mrd-done-item:last-of-type { border-bottom: none; }
.mrd-done-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(76,175,80,.15);
    color: #4CAF50;
    font-size: .7rem;
    margin-top: 2px;
}
.mrd-done-title {
    font-size: .85rem;
    color: var(--text, #eaeaea);
    font-weight: 600;
    line-height: 1.3;
}
.mrd-done-desc {
    font-size: .78rem;
    color: var(--text-dim, #9a9a9a);
    line-height: 1.5;
    margin-top: 4px;
}
.mrd-done-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: .7rem;
}
.mrd-done-cat {
    font-weight: 600;
}
.mrd-done-date {
    color: var(--text-dim, #9a9a9a);
    opacity: .7;
}

/* Wishlist items */
.mrd-wish-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.mrd-wish-item:last-of-type { border-bottom: none; }
.mrd-wish-text {
    display: block;
    font-size: .82rem;
    color: var(--text, #eaeaea);
    line-height: 1.3;
}
.mrd-wish-meta {
    display: block;
    font-size: .7rem;
    color: var(--text-dim, #9a9a9a);
    margin-top: 2px;
}

.mrd-add-wish-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, var(--gold, #c2a96a), #d4be8a);
    color: #0f0f0f;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
.mrd-add-wish-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* ===== MODAL ===== */
.mrd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.mrd-modal.open {
    display: flex;
}
.mrd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
}
.mrd-modal-content {
    position: relative;
    background: var(--card, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 14px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.mrd-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim, #9a9a9a);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color .2s;
}
.mrd-modal-close:hover { color: var(--text); }

.mrd-modal-content h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    color: var(--gold, #c2a96a);
    font-size: 1.3rem;
    margin: 0 0 4px;
}
.mrd-modal-content > p {
    color: var(--text-dim, #9a9a9a);
    font-size: .85rem;
    margin: 0 0 20px;
}

.mrd-form-row {
    margin-bottom: 16px;
}
.mrd-form-row label {
    display: block;
    font-size: .82rem;
    color: var(--text-dim, #9a9a9a);
    margin-bottom: 6px;
    font-weight: 500;
}
.mrd-form-row label span { color: var(--gold); }

.mrd-form-row input[type="text"],
.mrd-form-row input[type="email"],
.mrd-form-row input[type="number"],
.mrd-form-row select,
.mrd-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 8px;
    color: var(--text, #eaeaea);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .2s;
}
.mrd-form-row select {
    background: #1a1a1a;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.mrd-form-row select option {
    background: #1a1a1a;
    color: #eaeaea;
    padding: 8px;
}
.mrd-form-row input:focus,
.mrd-form-row select:focus,
.mrd-form-row textarea:focus {
    outline: none;
    border-color: var(--gold, #c2a96a);
}

.mrd-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mrd-captcha-row label {
    margin-bottom: 0;
    white-space: nowrap;
}
.mrd-captcha-row input[type="number"] {
    width: 100px !important;
}

.mrd-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--gold, #c2a96a), #d4be8a);
    color: #0f0f0f;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: all .2s;
}
.mrd-submit-btn:hover { opacity: .9; }
.mrd-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.mrd-form-msg {
    margin-top: 12px;
    font-size: .85rem;
    text-align: center;
    min-height: 20px;
}
.mrd-form-msg.success { color: #4CAF50; }
.mrd-form-msg.error { color: #e25555; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mrd-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mrd-sidebar-left {
        position: static;
    }
    .mrd-sidebar-left .mrd-widget {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
    }
    .mrd-sidebar-left .mrd-widget-title {
        width: 100%;
        margin-bottom: 8px;
    }
    .mrd-sidebar-right {
        position: static;
    }
    .mrd-board {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .mrd-board {
        grid-template-columns: 1fr;
    }
    .mrd-header h2 { font-size: 1.5rem; }
}
