:root {
    --primary-color: #2358ba;
    /* Requested accessible Blue */
    --accent-orange: #FF4500;
    --accent-blue: #7193FF;
    --bg-color: #F0F2F5;
    /* Slightly lighter gray to make white pop more */
    --text-primary: #1A1A1B;
    --text-secondary: #5f6368;
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    /* Modern, clean font */
    color: var(--text-primary);
}

/* Sidebar Active State */
.active-sidebar-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
}

/* Card Styling */
.card {
    background: #fff;
    border: 1px solid #ccc;
    /* Fallback */
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: #898989;
}

.voting-sidebar {
    width: 48px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.voting-sidebar.upvoted {
    background-color: rgba(113, 147, 255, 0.15);
    /* Increased opacity */
    border-left: 3px solid #7193ff;
    /* Accent border */
}

.voting-sidebar.downvoted {
    background-color: rgba(255, 69, 0, 0.15);
    /* Increased opacity */
    border-left: 3px solid #ff4500;
    /* Accent border */
}

.vote-btn {
    border: none;
    background: transparent;
    color: #878a8c;
    /* Standard meta text color */
    font-size: 1.5rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    /* Darker hover */
}

.vote-btn:active {
    transform: scale(0.9);
}

.vote-btn.upvote:hover,
.vote-btn.upvote.active {
    color: #7193ff !important;
    /* Swapped to Blue */
    background-color: rgba(113, 147, 255, 0.12);
    /* Darker & Swapped */
}

.vote-btn.downvote:hover,
.vote-btn.downvote.active {
    color: #ff4500 !important;
    /* Swapped to Orange/Red */
    background-color: rgba(255, 69, 0, 0.12);
    /* Darker & Swapped */
}

.vote-count {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1a1a1b;
    min-width: 32px;
    text-align: center;
    user-select: none;
}

/* Post Content */
.post-content-wrapper {
    flex: 1;
}

.meta-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meta-info .category-tag {
    font-weight: 600;
    color: var(--text-primary);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 5px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #222;
}

/* Buttons */
.btn-action {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 10px;
}

.btn-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {

    /* Ensure vote section stays on the left and doesn't get squashed */
    /* Updated for Footer Layout: Ensure flex wrap handles gracefully */
    .card-body.d-flex {
        flex-direction: row;
    }
}

/* Modern Burger Menu */
.navbar-toggler {
    border: none !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.burger-icon {
    width: 24px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    display: inline-block;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 9px;
}

.burger-icon span:nth-child(3) {
    top: 18px;
}

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler[aria-expanded="true"] .burger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}
.highlight-post {
  outline: 2px solid #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  transition: box-shadow 0.3s ease;
}
