/**
 * Developer Feature Vote - Frontend Styles
 * 
 * Dark themed UI matching coamaker, flag-creator, and heroic-token styling.
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --fv-bg: #252A31;
    --fv-bg-elevated: #2d3139;
    --fv-bg-card: #333840;
    --fv-bg-hover: #3d444d;
    --fv-card-border: rgba(255, 255, 255, 0.06);
    --fv-text: #f6f7f9;
    --fv-text-secondary: rgba(246, 247, 249, 0.7);
    --fv-text-muted: rgba(246, 247, 249, 0.5);
    --fv-accent: #C60C30;
    --fv-accent-dark: #990924;
    --fv-accent-light: rgba(198, 12, 48, 0.15);
    --fv-green: #008C45;
    --fv-green-dark: #006633;
    --fv-orange: #FF9500;
    --fv-blue: #3498db;
    --fv-gray: #6c757d;
    --fv-radius-sm: 6px;
    --fv-radius-md: 8px;
    --fv-radius-lg: 12px;
    --fv-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --fv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --fv-transition: 0.2s ease;
}

/* ============================================
   Board Container
   ============================================ */
.fv-board {
    background: var(--fv-bg);
    border-radius: var(--fv-radius-lg);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--fv-text);
}

/* ============================================
   Header (Search + Submit Button)
   ============================================ */
.fv-board__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fv-board__search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.fv-board__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--fv-text-muted);
    pointer-events: none;
}

.fv-board__search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--fv-transition), box-shadow var(--fv-transition);
}

.fv-board__search-input::placeholder {
    color: var(--fv-text-muted);
}

.fv-board__search-input:focus {
    border-color: var(--fv-accent);
    box-shadow: 0 0 0 3px var(--fv-accent-light);
}

.fv-board__submit-btn {
    flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */
.fv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: var(--fv-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--fv-transition), transform var(--fv-transition);
    text-decoration: none;
    font-family: inherit;
}

.fv-btn svg {
    width: 18px;
    height: 18px;
}

.fv-btn--primary {
    background: var(--fv-accent);
    color: #fff;
}

.fv-btn--primary:hover {
    background: var(--fv-accent-dark);
    transform: translateY(-1px);
}

.fv-btn--secondary {
    background: var(--fv-bg-elevated);
    color: var(--fv-text);
    border: 1px solid var(--fv-card-border);
}

.fv-btn--secondary:hover {
    background: var(--fv-bg-hover);
}

/* ============================================
   Status Tabs
   ============================================ */
.fv-board__tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--fv-radius-md);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fv-board__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-radius: var(--fv-radius-sm);
    color: var(--fv-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--fv-transition);
    white-space: nowrap;
    font-family: inherit;
}

.fv-board__tab:hover:not(.is-active) {
    color: var(--fv-text);
    background: rgba(255, 255, 255, 0.05);
}

.fv-board__tab.is-active {
    background: var(--fv-accent);
    color: #fff;
}

/* Tab with custom color indicator */
.fv-board__tab[style*="--tab-color"].is-active {
    background: var(--tab-color);
}

/* ============================================
   Sort Options
   ============================================ */
.fv-board__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.fv-board__sort-label {
    font-size: 13px;
    color: var(--fv-text-muted);
}

.fv-board__sort-select {
    height: 36px;
    padding: 0 32px 0 12px;
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-sm);
    color: var(--fv-text);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
}

.fv-board__sort-select:focus {
    outline: none;
    border-color: var(--fv-accent);
}

/* ============================================
   Feature Cards Grid
   ============================================ */
.fv-board__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fv-card {
    display: flex;
    gap: 16px;
    background: var(--fv-bg-card);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    padding: 16px;
    transition: border-color var(--fv-transition), box-shadow var(--fv-transition);
}

.fv-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--fv-shadow);
}

/* Vote Section */
.fv-card__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 50px;
}

.fv-card__vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: var(--fv-radius-md);
    color: var(--fv-text-muted);
    cursor: pointer;
    transition: all var(--fv-transition);
}

.fv-card__vote-btn svg,
.fv-card__vote-btn .fv-heart-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    display: block !important;
    flex-shrink: 0;
    transition: transform var(--fv-transition);
    overflow: visible;
    visibility: visible !important;
    opacity: 1 !important;
}

.fv-card__vote-btn svg path {
    stroke: currentColor;
    stroke-width: 2;
}

.fv-card__vote-btn:hover:not(:disabled) {
    background: var(--fv-accent-light);
    border-color: var(--fv-accent);
    color: var(--fv-accent);
}

.fv-card__vote-btn:hover:not(:disabled) svg {
    transform: scale(1.1);
}

.fv-card__vote-btn.is-voted {
    background: var(--fv-accent);
    border-color: var(--fv-accent);
    color: #fff;
}

.fv-card__vote-btn.is-voted:hover:not(:disabled) {
    background: var(--fv-accent-dark);
    border-color: var(--fv-accent-dark);
}

.fv-card__vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fv-card__vote-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--fv-text);
}

/* Card Content */
.fv-card__content {
    flex: 1;
    min-width: 0;
}

.fv-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fv-card__status {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    background: var(--status-color, var(--fv-gray));
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fv-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: var(--fv-text);
}

.fv-card__title a {
    color: var(--fv-text);
    text-decoration: none;
    transition: color var(--fv-transition);
}

.fv-card__title a:hover {
    color: var(--fv-accent);
}

.fv-card__excerpt {
    font-size: 14px;
    color: var(--fv-text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.fv-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--fv-text-muted);
}

.fv-card__separator {
    color: var(--fv-text-muted);
}

.fv-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fv-card__comments svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Empty State
   ============================================ */
.fv-board__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--fv-text-muted);
}

.fv-board__empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.fv-board__empty p {
    font-size: 15px;
    margin: 0;
}

/* ============================================
   Load More
   ============================================ */
.fv-board__load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ============================================
   Modal
   ============================================ */
.fv-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.fv-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.fv-modal__container {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    margin: 20px;
    background: var(--fv-bg);
    border-radius: var(--fv-radius-lg);
    box-shadow: var(--fv-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fv-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fv-card-border);
}

.fv-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fv-text);
    margin: 0;
}

.fv-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--fv-radius-sm);
    color: var(--fv-text-muted);
    cursor: pointer;
    transition: background var(--fv-transition), color var(--fv-transition);
}

.fv-modal__close svg {
    width: 20px;
    height: 20px;
}

.fv-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fv-text);
}

.fv-modal__body {
    padding: 24px;
    overflow-y: auto;
}

.fv-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--fv-card-border);
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Form Elements
   ============================================ */
.fv-form-group {
    margin-bottom: 20px;
}

.fv-form-group:last-child {
    margin-bottom: 0;
}

.fv-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fv-text);
    margin-bottom: 8px;
}

.fv-form-label .required {
    color: var(--fv-accent);
}

.fv-form-input,
.fv-form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--fv-transition), box-shadow var(--fv-transition);
}

.fv-form-input::placeholder,
.fv-form-textarea::placeholder {
    color: var(--fv-text-muted);
}

.fv-form-input:focus,
.fv-form-textarea:focus {
    border-color: var(--fv-accent);
    box-shadow: 0 0 0 3px var(--fv-accent-light);
}

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

/* ============================================
   Spinner
   ============================================ */
.fv-spinner {
    width: 18px;
    height: 18px;
    animation: fv-spin 1s linear infinite;
}

@keyframes fv-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Single Feature Page
   ============================================ */
.fv-single {
    background: var(--fv-bg);
    border-radius: var(--fv-radius-lg);
    padding: 32px;
    color: var(--fv-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.fv-single__header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fv-card-border);
}

.fv-single__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 70px;
}

.fv-single__vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: var(--fv-radius-md);
    color: var(--fv-text-muted);
    cursor: pointer;
    transition: all var(--fv-transition);
}

.fv-single__vote-btn svg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    min-height: 26px;
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.fv-single__vote-btn svg path {
    stroke: currentColor;
    stroke-width: 2;
}

.fv-single__vote-btn:hover:not(:disabled) {
    background: var(--fv-accent-light);
    border-color: var(--fv-accent);
    color: var(--fv-accent);
}

.fv-single__vote-btn.is-voted {
    background: var(--fv-accent);
    border-color: var(--fv-accent);
    color: #fff;
}

.fv-single__vote-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--fv-text);
}

.fv-single__vote-label {
    font-size: 11px;
    color: var(--fv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fv-single__info {
    flex: 1;
}

.fv-single__status {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    background: var(--status-color, var(--fv-gray));
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.fv-single__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--fv-text);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.fv-single__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--fv-text-muted);
}

.fv-single__author {
    color: var(--fv-text);
    text-decoration: none;
}

.fv-single__author:hover {
    color: var(--fv-accent);
}

.fv-single__content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--fv-text-secondary);
}

.fv-single__content p {
    margin: 0 0 16px 0;
}

.fv-single__content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Comments Section
   ============================================ */
.fv-comments {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--fv-card-border);
}

.fv-comments__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fv-text);
    margin: 0 0 24px 0;
}

/* ============================================
   Single Feature Page (Full Width)
   ============================================ */
.fv-single-page {
    background: var(--fv-bg);
    min-height: 100vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--fv-text);
    /* Break out of theme container */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.fv-single-page__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back link at top */
.fv-single-page__back-top {
    margin-bottom: 24px;
}

.fv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fv-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--fv-transition);
}

.fv-back-link:hover {
    color: var(--fv-text);
}

.fv-back-link svg {
    width: 16px;
    height: 16px;
}

/* Main Single Card */
.fv-single-card {
    background: var(--fv-bg-card);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

/* Header - Same layout as card on main page */
.fv-single-card__header {
    display: flex;
    gap: 16px;
}

.fv-single-card__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 50px;
}

.fv-single-card__info {
    flex: 1;
    min-width: 0;
}

.fv-single-card__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--fv-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Meta Row */
.fv-single-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--fv-text-muted);
    margin-bottom: 12px;
}

.fv-single-card__submitted strong {
    color: var(--fv-text);
}

.fv-single-card__author-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--fv-transition);
}

.fv-single-card__author-link:hover {
    color: var(--fv-accent);
}

.fv-single-card__author-link:hover strong {
    color: var(--fv-accent);
}

.fv-single-card__separator {
    color: var(--fv-text-muted);
}

.fv-single-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fv-single-card__comments svg {
    width: 14px;
    height: 14px;
}

/* Supported by - inline with overlapping circles */
.fv-single-card__supported {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--fv-card-border);
    margin-top: 12px;
}

.fv-single-card__supported-label {
    font-size: 13px;
    color: var(--fv-text-muted);
    flex-shrink: 0;
}

.fv-single-card__no-supporters {
    font-size: 13px;
    color: var(--fv-text-muted);
    font-style: italic;
}

/* Inline overlapping supporter circles */
.fv-supporters-inline {
    display: flex;
    align-items: center;
}

.fv-supporter-circle-link {
    display: block;
    margin-left: -8px;
    position: relative;
    text-decoration: none;
    transition: transform var(--fv-transition), z-index 0s;
}

.fv-supporter-circle-link:first-child {
    margin-left: 0;
}

.fv-supporter-circle-link:nth-child(1) { z-index: 5; }
.fv-supporter-circle-link:nth-child(2) { z-index: 4; }
.fv-supporter-circle-link:nth-child(3) { z-index: 3; }
.fv-supporter-circle-link:nth-child(4) { z-index: 2; }
.fv-supporter-circle-link:nth-child(5) { z-index: 1; }

.fv-supporter-circle-link:hover {
    transform: scale(1.15);
    z-index: 10;
}

.fv-supporter-circle-link .fv-supporter-circle {
    margin-left: 0;
}

.fv-supporters-inline > .fv-supporter-circle {
    margin-left: -8px;
}

.fv-supporters-inline > .fv-supporter-circle:first-child {
    margin-left: 0;
}

.fv-supporter-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fv-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--fv-bg-card);
    margin-left: -8px;
    position: relative;
    cursor: default;
}

.fv-supporter-circle--more {
    margin-left: -8px;
    background: var(--fv-bg-hover);
    color: var(--fv-text-muted);
    font-size: 11px;
    font-weight: 600;
    z-index: 0;
}

/* Description */
.fv-single-card__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fv-text-secondary);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--fv-card-border);
}

.fv-single-card__description p {
    margin: 0 0 16px 0;
}

.fv-single-card__description p:last-child {
    margin-bottom: 0;
}

/* Comments Section */
.fv-comments-section {
    background: var(--fv-bg-card);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-lg);
    padding: 24px;
}

.fv-comments-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fv-text);
    margin: 0 0 24px 0;
}

.fv-comments-section__title svg {
    color: var(--fv-text-muted);
}

/* Comment Form */
.fv-comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fv-card-border);
}

.fv-comment-form__avatar {
    flex-shrink: 0;
}

.fv-comment-form__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fv-comment-form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color var(--fv-transition), box-shadow var(--fv-transition);
}

.fv-comment-form__textarea::placeholder {
    color: var(--fv-text-muted);
}

.fv-comment-form__textarea:focus {
    border-color: var(--fv-accent);
    box-shadow: 0 0 0 3px var(--fv-accent-light);
}

.fv-comment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fv-comment-form__user {
    font-size: 13px;
    color: var(--fv-text-muted);
}

.fv-comment-form__submit {
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
}

/* Login prompt */
.fv-comment-login {
    background: var(--fv-bg-elevated);
    border-radius: var(--fv-radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.fv-comment-login p {
    margin: 0;
    color: var(--fv-text-muted);
    font-size: 14px;
}

.fv-comment-login a {
    color: var(--fv-accent);
    text-decoration: none;
    font-weight: 500;
}

.fv-comment-login a:hover {
    text-decoration: underline;
}

/* Comments List */
.fv-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fv-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fv-card-border);
}

.fv-comment:first-child {
    padding-top: 0;
}

.fv-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fv-comment__avatar {
    flex-shrink: 0;
}

.fv-comment__content {
    flex: 1;
    min-width: 0;
}

.fv-comment__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.fv-comment__avatar-link {
    display: block;
    text-decoration: none;
    transition: transform var(--fv-transition);
}

.fv-comment__avatar-link:hover {
    transform: scale(1.1);
}

.fv-comment__author {
    font-size: 14px;
    font-weight: 600;
    color: var(--fv-text);
    text-decoration: none;
    transition: color var(--fv-transition);
}

a.fv-comment__author:hover {
    color: var(--fv-accent);
}

.fv-comment__date {
    font-size: 12px;
    color: var(--fv-text-muted);
}

.fv-comment__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    opacity: 0.4;
    transition: opacity var(--fv-transition);
}

.fv-comment:hover .fv-comment__actions {
    opacity: 1;
}

.fv-comment__actions:hover {
    opacity: 1;
}

.fv-comment__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--fv-radius-sm);
    color: var(--fv-text-muted);
    cursor: pointer;
    transition: background var(--fv-transition), color var(--fv-transition);
}

.fv-comment__action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fv-text);
}

.fv-comment__action.fv-comment__delete:hover {
    color: var(--fv-accent);
}

.fv-comment__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fv-text-secondary);
}

.fv-comment__text p {
    margin: 0 0 8px 0;
}

.fv-comment__text p:last-child {
    margin-bottom: 0;
}

/* Comment Edit Form */
.fv-comment__edit-form {
    margin-top: 8px;
}

.fv-comment__edit-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    color: var(--fv-text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color var(--fv-transition);
}

.fv-comment__edit-textarea:focus {
    border-color: var(--fv-accent);
}

.fv-comment__edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.fv-comment__edit-actions .fv-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

/* Empty comments */
.fv-comments-empty {
    text-align: center;
    padding: 24px;
}

.fv-comments-empty p {
    margin: 0;
    color: var(--fv-text-muted);
    font-size: 14px;
}

/* ============================================
   Login Notice
   ============================================ */
.fv-login-notice {
    background: var(--fv-bg-elevated);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    padding: 16px 20px;
    color: var(--fv-text-secondary);
    text-align: center;
}

.fv-login-notice a {
    color: var(--fv-accent);
    text-decoration: none;
    font-weight: 500;
}

.fv-login-notice a:hover {
    text-decoration: underline;
}

/* ============================================
   Toast Notifications
   ============================================ */
.fv-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--fv-bg-card);
    border: 1px solid var(--fv-card-border);
    border-radius: var(--fv-radius-md);
    box-shadow: var(--fv-shadow-lg);
    color: var(--fv-text);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fv-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.fv-toast--success {
    border-left: 4px solid var(--fv-green);
}

.fv-toast--error {
    border-left: 4px solid var(--fv-accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .fv-board {
        padding: 16px;
    }

    .fv-board__header {
        flex-direction: column;
        gap: 12px;
    }

    .fv-board__search {
        width: 100%;
    }

    .fv-board__submit-btn {
        width: 100%;
    }

    .fv-board__tabs {
        padding: 3px;
    }

    .fv-board__tab {
        padding: 0 14px;
        font-size: 12px;
    }

    .fv-card {
        padding: 12px;
        gap: 12px;
    }

    .fv-card__vote {
        min-width: 44px;
    }

    .fv-card__vote-btn {
        width: 40px;
        height: 40px;
    }

    .fv-card__vote-btn svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }

    .fv-card__title {
        font-size: 15px;
    }

    .fv-card__excerpt {
        font-size: 13px;
    }

    .fv-modal__container {
        margin: 12px;
        max-height: 95vh;
    }

    .fv-modal__header,
    .fv-modal__body,
    .fv-modal__footer {
        padding: 16px;
    }

    .fv-modal__footer {
        flex-direction: column;
    }

    .fv-modal__footer .fv-btn {
        width: 100%;
    }

    .fv-single {
        padding: 20px;
    }

    .fv-single__header {
        flex-direction: column;
        gap: 16px;
    }

    .fv-single__vote {
        flex-direction: row;
        justify-content: flex-start;
    }

    .fv-single__vote-btn {
        width: 44px;
        height: 44px;
    }

    .fv-single__vote-btn svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        min-height: 22px;
    }

    .fv-single__title {
        font-size: 22px;
    }

    .fv-single-page {
        padding: 20px 0;
    }

    .fv-single-page__container {
        padding: 0 16px;
    }

    .fv-single-card {
        padding: 16px;
    }

    .fv-single-card__header {
        gap: 12px;
    }

    .fv-single-card__vote {
        min-width: 44px;
    }

    .fv-single-card__title {
        font-size: 18px;
    }

    .fv-single-card__meta {
        gap: 4px;
        font-size: 12px;
    }

    .fv-single-card__supported {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fv-supporter-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin-left: -6px;
    }

    .fv-single-card__description {
        font-size: 14px;
    }

    .fv-comments-section {
        padding: 16px;
    }

    .fv-comment-form {
        flex-direction: column;
    }

    .fv-comment-form__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fv-comment-form__user {
        text-align: center;
    }

    .fv-comment {
        gap: 10px;
    }

    .fv-comment__actions {
        opacity: 1;
    }

    .fv-comment__header {
        flex-wrap: wrap;
    }

    .fv-comment__edit-actions {
        flex-direction: column;
    }

    .fv-comment__edit-actions .fv-btn {
        width: 100%;
    }

    .fv-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .fv-board__header,
    .fv-board__tabs,
    .fv-board__sort,
    .fv-board__load-more,
    .fv-card__vote-btn,
    .fv-modal {
        display: none !important;
    }

    .fv-board,
    .fv-card,
    .fv-single {
        background: #fff;
        color: #000;
        border: 1px solid #ddd;
    }

    .fv-card__title a,
    .fv-single__title {
        color: #000;
    }
}
