/* Extends BauBudget product styles */
@import url('../styles.css');

/* Feedback-specific layout */
.feedback-page {
    padding-top: 100px;
    min-height: 100vh;
}

.feedback-hero {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.feedback-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.feedback-hero p {
    font-size: 1.1rem;
}

.feedback-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(245, 158, 11, 0.3);
}

.tab-btn.active {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Roadmap */
.status-group {
    margin-bottom: 2.5rem;
}

.status-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    padding: 1.5rem;
    border-radius: 16px;
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.item-header h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.item-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--accent-color);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.vote-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
}

.vote-btn:disabled,
.vote-btn.voted {
    opacity: 0.7;
    cursor: default;
}

.vote-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.badge-bug {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-feature {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-pending {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.vote-badge {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Empty / loading states */
.state-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.state-message.error {
    color: #f87171;
}

/* Forms */
.form-card {
    padding: 2rem;
    border-radius: 20px;
}

.form-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-intro {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.field label,
.field-inline span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

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

.field input,
.field textarea,
.field select,
.field-inline select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.type-toggle {
    display: flex;
    gap: 0.75rem;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option span {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.type-option input:checked + span {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--accent-color);
}

.form-actions {
    margin-top: 0.5rem;
}

.form-actions .btn-primary {
    width: 100%;
}

.field input[type="file"] {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
}

.field input[type="file"]::file-selector-button {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.75rem;
}

.image-preview {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.image-preview-item {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.image-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.image-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(245, 158, 11, 0.4);
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card .image-gallery {
    margin-top: 0.5rem;
}

.admin-card .image-thumb {
    width: 120px;
    height: 120px;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.5;
}

.privacy-note a {
    color: var(--accent-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-width: 90vw;
    text-align: center;
}

.toast.error {
    background: rgba(239, 68, 68, 0.95);
}

/* Admin */
.admin-page {
    padding-top: 100px;
    min-height: 100vh;
}

.admin-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.login-card {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.5rem;
    border-radius: 20px;
}

.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
}

.admin-card {
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.admin-card h3 {
    margin: 0 0 0.5rem;
}

.detail-list,
.meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.detail-list dt,
.meta-list dt {
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-list dd,
.meta-list dd {
    margin: 0;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.meta-list a {
    color: var(--accent-color);
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.field-inline select {
    min-width: 160px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-admin-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1rem;
}

.nav-admin-link:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .feedback-hero h1 {
        font-size: 2rem;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: flex-start;
    }
}
