/* MyRaceHub - Feedback Page
   TRAIL RUN MAGAZINE INSPIRED - Bold & Energetic Light Theme
   ============================================================ */

@import url('/static/fonts/fonts.css');

/* ============================================================
   CSS VARIABLES - Light Theme with Golden Accent
   ============================================================ */
.feedback-body {
    /* Backgrounds - clean white */
    --rs-bg: #ffffff;
    --rs-bg-elevated: #f8f8f8;
    --rs-bg-card: #ffffff;
    --rs-bg-input: #ffffff;

    /* Text - rich dark */
    --rs-text: #161616;
    --rs-text-secondary: #3d3d3d;
    --rs-text-muted: #6b6b6b;

    /* Borders */
    --rs-border: #e5e5e5;
    --rs-border-light: #f0f0f0;
    --rs-border-dark: #cccccc;

    /* Accent - Trail Run Mag golden yellow */
    --rs-accent: #FBD40E;
    --rs-accent-hover: #e5c10d;
    --rs-accent-text: #161616;
    --rs-accent-glow: rgba(251,212,14,0.3);

    /* Typography */
    --font-display: 'Varela Round', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   BASE RESET
   ============================================================ */
.feedback-body {
    background: var(--rs-bg) !important;
    color: var(--rs-text) !important;
    font-family: var(--font-body) !important;
}

.feedback-body * {
    box-sizing: border-box;
}

.feedback-body .container {
    max-width: none;
    background: transparent !important;
    padding: 0;
}

/* ============================================================
   HEADER - Frosted Glass (Fixed)
   ============================================================ */
.feedback-body header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: rgba(22, 22, 22, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0 48px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-image: none !important;
    overflow: visible !important;
}

.feedback-body header::after {
    display: none !important;
}

.feedback-body .header-content {
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.feedback-body .site-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    width: auto;
    animation: none !important;
}

.feedback-body .header-text h1 {
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    animation: none !important;
}

.feedback-body .header-text h1 .highlight {
    color: var(--rs-accent) !important;
    -webkit-text-fill-color: var(--rs-accent) !important;
    background: none !important;
}

.feedback-body .subtitle {
    display: none !important;
}

/* ============================================================
   NAVIGATION - Fixed with Frosted Glass
   ============================================================ */
.feedback-body .nav-links {
    background: transparent !important;
    border: none !important;
    padding: 0 48px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 70px !important;
    z-index: 101 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

.feedback-body .nav-links .nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    margin: 0 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.feedback-body .nav-links .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 48px !important;
}

.feedback-body .nav-links .nav-left a {
    color: rgba(255,255,255,0.9) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    border: none !important;
    padding: 0 !important;
}

.feedback-body .nav-links .nav-left a:hover {
    color: var(--rs-accent) !important;
}

.feedback-body .nav-links .nav-left a.active {
    color: var(--rs-accent) !important;
    border: none !important;
    text-decoration: none !important;
}

/* Sign in button - frosted glass */
.feedback-body .nav-sign-in {
    padding: 8px 18px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em !important;
    transition: all 0.25s ease !important;
}

.feedback-body .nav-sign-in:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ============================================================
   USER DROPDOWN - Consistent styling
   ============================================================ */
.feedback-body .nav-user-dropdown {
    position: relative;
}

.feedback-body .nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 25px;
    transition: background 0.2s ease;
}

.feedback-body .nav-user-btn:hover {
    background: rgba(255,255,255,0.1);
}

.feedback-body .nav-user-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FBD40E 0%, #e5bc00 100%);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-body .nav-user-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.feedback-body .nav-dropdown-arrow {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.feedback-body .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.feedback-body .nav-dropdown-menu.show {
    display: block;
}

.feedback-body .nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--rs-text) !important;
    font-size: 14px;
    transition: background 0.15s ease;
}

.feedback-body .nav-dropdown-menu a:hover {
    background: var(--rs-bg-elevated);
    color: var(--rs-text) !important;
}

.feedback-body .nav-dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--rs-border);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.feedback-body .feedback-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.feedback-body .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.feedback-body .feedback-header h2 {
    margin: 0 0 8px;
    color: var(--rs-text);
    font-family: var(--font-display);
}

.feedback-body .feedback-header p {
    margin: 0;
    color: var(--rs-text-secondary);
}

/* Filters */
.feedback-body .feedback-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.feedback-body .feedback-filters select {
    padding: 10px 16px;
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    color: var(--rs-text);
}

.feedback-body .feedback-filters select:focus {
    outline: none;
    border-color: var(--rs-accent);
}

/* Feedback List */
.feedback-body .feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Feature Request Card */
.feedback-body .feedback-card {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--rs-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-body .feedback-card:hover {
    border-color: var(--rs-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Vote Button */
.feedback-body .vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.feedback-body .vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--rs-text);
}

.feedback-body .vote-btn:hover {
    border-color: var(--rs-accent);
    background: rgba(251,212,14,0.1);
}

.feedback-body .vote-btn.voted {
    border-color: var(--rs-accent);
    background: var(--rs-accent);
    color: var(--rs-accent-text);
}

.feedback-body .vote-btn .vote-arrow {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.feedback-body .vote-btn .vote-count {
    font-size: 1rem;
    font-weight: 700;
}

.feedback-body .vote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Card Content */
.feedback-body .feedback-content {
    flex: 1;
    min-width: 0;
}

.feedback-body .feedback-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--rs-text);
}

.feedback-body .feedback-description {
    margin: 0 0 12px;
    color: var(--rs-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-body .feedback-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

/* Status Badge */
.feedback-body .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feedback-body .status-badge.new {
    background: #e3f2fd;
    color: #1565c0;
}

.feedback-body .status-badge.under_review {
    background: #fff3e0;
    color: #e65100;
}

.feedback-body .status-badge.planned {
    background: #e8f5e9;
    color: #2e7d32;
}

.feedback-body .status-badge.in_progress {
    background: #f3e5f5;
    color: #7b1fa2;
}

.feedback-body .status-badge.done {
    background: #e0f2f1;
    color: #00695c;
}

/* Category Tag */
.feedback-body .category-tag {
    color: var(--rs-text-secondary);
}

/* Empty State */
.feedback-body .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rs-text-secondary);
}

.feedback-body .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ============================================================
   MODAL
   ============================================================ */
.feedback-body .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.feedback-body .modal-overlay.show {
    display: flex;
}

.feedback-body .modal-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-body .modal-box h2 {
    margin: 0 0 8px;
    color: var(--rs-text);
    font-family: var(--font-display);
}

.feedback-body .modal-subtitle {
    margin: 0 0 20px;
    color: var(--rs-text-secondary);
}

.feedback-body .form-group {
    margin-bottom: 16px;
}

.feedback-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--rs-text);
}

.feedback-body .form-group input,
.feedback-body .form-group select,
.feedback-body .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    color: var(--rs-text);
}

.feedback-body .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-body .form-group input:focus,
.feedback-body .form-group select:focus,
.feedback-body .form-group textarea:focus {
    outline: none;
    border-color: var(--rs-accent);
}

.feedback-body .form-error {
    color: #e53935;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}

.feedback-body .form-error.show {
    display: block;
}

.feedback-body .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.feedback-body .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-body .btn-primary {
    background: linear-gradient(135deg, #FBD40E 0%, #f0c800 50%, #e5bc00 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(251,212,14,0.25);
}

.feedback-body .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251,212,14,0.35);
}

.feedback-body .btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.feedback-body .btn-secondary:hover {
    background: #d0d0d0;
}

.feedback-body .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading */
.feedback-body .loading {
    text-align: center;
    padding: 40px;
    color: var(--rs-text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.feedback-body footer {
    background: var(--rs-bg-elevated);
    border-top: 1px solid var(--rs-border);
    padding: 2rem;
    text-align: center;
}

.feedback-body footer p {
    color: var(--rs-text-muted);
    font-size: 14px;
    margin: 0.5rem 0;
}

.feedback-body footer a {
    color: var(--rs-text-secondary);
    text-decoration: none;
}

.feedback-body footer a:hover {
    color: var(--rs-accent);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .feedback-body header {
        padding: 0 24px !important;
    }

    .feedback-body .nav-links {
        padding: 0 24px !important;
    }

    .feedback-body .nav-links .nav-left {
        gap: 20px !important;
    }

    .feedback-body .nav-links .nav-right {
        right: 24px !important;
    }

    .feedback-body .nav-user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .feedback-body .nav-links .nav-left {
        display: none !important;
    }

    /* Show hamburger menu on mobile */
    .feedback-body .hamburger-menu {
        display: flex !important;
    }

    .feedback-body .feedback-main {
        padding: 90px 16px 30px;
    }
}

@media (max-width: 600px) {
    .feedback-body .feedback-header {
        flex-direction: column;
    }

    .feedback-body .feedback-header .btn {
        width: 100%;
    }

    .feedback-body .feedback-filters {
        flex-direction: column;
    }

    .feedback-body .feedback-filters select {
        width: 100%;
    }

    .feedback-body .feedback-card {
        flex-direction: column;
    }

    .feedback-body .vote-section {
        flex-direction: row;
        gap: 12px;
    }

    .feedback-body .vote-btn {
        flex-direction: row;
        gap: 8px;
        padding: 8px 16px;
    }

    .feedback-body .vote-btn .vote-arrow {
        margin-bottom: 0;
    }
}
