/* ==========================================================================
   Modular Roadmap & Feature Voting Component Styles
   Project: Web Blocker (Dashboard Unified Aesthetics 1:1)
   ========================================================================== */

:root {
    --bg-primary: #9F2B2C;
    --bg-main-card: #C54D4E;
    --bg-feature-card: #F86466;
    --bg-card-hover: #FA7678;
    --border-card: rgba(255, 255, 255, 0.2);
    --accent: #FFFFFF;
    --accent-red: #F86466;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.75);
    
    /* Dashboard Status Badge Colors */
    --status-considering-bg: #FFC107;
    --status-considering-text: #3D2B00;

    --status-planned-bg: #4FC3F7;
    --status-planned-text: #052C3D;

    --status-inprogress-bg: #BA68C8;
    --status-inprogress-text: #2A0830;

    --status-released-bg: #76D18B;
    --status-released-text: #1A3A22;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Concentric Circles Pattern (Exact Dashboard Style) */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: #FFFFFF;
    opacity: 0.03;
    transform: translate(-50%, -50%);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: 0;
    left: 0;
}

.circle-2 {
    width: 1000px;
    height: 1000px;
    top: 0;
    left: 100px;
    opacity: 0.02;
}

.circle-3 {
    width: 1400px;
    height: 1400px;
    top: 0;
    left: 200px;
    opacity: 0.01;
}

/* Container */
.roadmap-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
}

/* Main Dashboard Wrapper Card */
.dashboard-roadmap-card {
    background: var(--bg-main-card);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Leaderboard Ranking & Progress Bar Chart */
.roadmap-leaderboard {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.15);
}

.leaderboard-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.leaderboard-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.leaderboard-subhead {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.leaderboard-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.leaderboard-feature-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #FFFFFF;
    flex-wrap: wrap;
}

.voted-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #76D18B;
    color: #1A3A22;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 900;
    color: #FFFFFF;
}

.rank-badge.top-1 {
    background: #FFD700;
    color: #3D2B00;
}

.rank-badge.top-2 {
    background: #E0E0E0;
    color: #212121;
}

.rank-badge.top-3 {
    background: #CD7F32;
    color: #FFFFFF;
}

.leaderboard-vote-count {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}

.leaderboard-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.leaderboard-fill {
    height: 100%;
    background: linear-gradient(90deg, #F86466 0%, #FF8A8C 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaderboard-fill.top-1-fill {
    background: linear-gradient(90deg, #FFC107 0%, #FFE082 100%);
}

/* Page Header */
.roadmap-header {
    text-align: center;
    margin-bottom: 32px;
}

.roadmap-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.roadmap-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 14px 0;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.roadmap-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.55;
    font-weight: 400;
}

.btn-suggest-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #9F2B2C;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.btn-suggest-feature:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Filter Controls */
.roadmap-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-chip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-chip:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.filter-chip.active {
    background: var(--bg-feature-card);
    color: #FFFFFF;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Feature Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Feature Card */
.feature-card {
    background: var(--bg-feature-card);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.feature-title {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    color: #FFFFFF;
    line-height: 1.3;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-badge.considering {
    background: var(--status-considering-bg);
    color: var(--status-considering-text);
}

.status-badge.planned {
    background: var(--status-planned-bg);
    color: var(--status-planned-text);
}

.status-badge.in_progress {
    background: var(--status-inprogress-bg);
    color: var(--status-inprogress-text);
}

.status-badge.released {
    background: var(--status-released-bg);
    color: var(--status-released-text);
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Vote Action Footer */
.feature-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: none;
    color: #9F2B2C;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.vote-btn:hover {
    background: #F0F0F0;
    transform: scale(1.03);
}

.vote-btn.voted {
    background: #76D18B;
    color: #1A3A22;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vote-btn.voted:hover {
    background: #64C27A;
}

.vote-arrow {
    font-size: 11px;
}

.voters-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Modal Overlay & Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #C54D4E;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #FFFFFF;
}

.modal-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    color: #FFFFFF !important;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1;
}

.form-input::-webkit-input-placeholder, .form-textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF !important;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit-suggestion {
    width: 100%;
    background: #FFFFFF;
    color: #9F2B2C;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit-suggestion:hover {
    background: #F0F0F0;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1A3A22;
    border: 1px solid #76D18B;
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Rules */
@media (max-width: 600px) {
    .dashboard-roadmap-card {
        padding: 24px 16px;
    }
    
    .roadmap-title {
        font-size: 24px;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}
