/* Color Variables */
:root {
    --primary-color: #BF702A;
    --real-primary-color: #590902;
    --primary-light: #f0e4b7;
    --primary-dark: #c9a93c;
    --text-color: #4a4a4a;
    --text-muted: #6c757d;
    --bg-color: #f9fafb;
    --bg-light: #f9fafb;
    --text-light: #4b5563;
    --text-dark: #1f2937;
    --card-bg: #ffffff;
    --border-light: #e5e7eb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --bs-btn-bg: #590902;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

html, body {
    height: 100%;
    margin: 0;
}

@font-face {
  font-family: 'Gobaaa';
  src: url('/static/fonts/gobaaa-regular-webfont 2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* General styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    /* Add padding bottom to prevent content from being hidden behind footer */
    padding-bottom: 80px; /* Adjust this based on your footer height */
    position: relative;
    min-height: 100vh;
}

/* Typography */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Header & Footer */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1rem;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Sticky footer using absolute positioning */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
    /* Add min-height to ensure consistent footer height */
    min-height: 60px;
}

.text-link {
    padding: 8px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@supports (height: 100vh) {
    body {
        min-height: 100vh;
        display: grid;
        grid-template-rows: auto 1fr auto;
        padding-bottom: 0;
    }

    .footer {
        position: static;
        margin-top: 0;
    }
}

.brand-text {
    color: var(--primary-color);
    font-weight: 600;
}

.brand-text:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn.gnc-btn {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-appearance: none; /* Remove Safari default styling */
}

.btn.gnc-btn.gnc-btn-prim {
    background-color: #fff;
    color: var(--text-color);
}

.btn.gnc-btn.gnc-btn-prim:hover {
    background-color: var(--primary-light) !important;
    color: var(--text-color) !important;
    border-color: var(--primary-color) !important;
}

.fa-chevron-up,
.fa-bookmark {
    color: var(--primary-color);
}

.emphasized {
    background-color: var(--primary-light);
}

.fa-chevron-down {
    color: var(--text-muted);
}

.card-header {
    background-color: #590902;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-sm);
}

/* Content Area */
.content-area {
    animation: fadeIn 0.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Entry list styles */
.entry-list-container {
    padding-left: 0;
    padding-right: 0;
    border-radius: var(--radius);
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.entry-list {
    padding: 1rem;
}

.entry-item {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
    animation: fadeIn 0.5s ease-in-out;
    border: 1px solid var(--border-color);
}

.entry-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.entry-item:last-child {
    margin-bottom: 0;
}

.entry-content {
    font-family: 'Gobaaa', 'Inter', sans-serif;
    color: var(--text-color);
    font-size: 1.4rem;
    line-height: 1.7;
}

.entry-content blockquote {
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    border-left: 4px solid var(--primary-color) !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-style: italic;
}

.entry-content blockquote p {
    margin: 0 !important;
}

/* For nested blockquotes */
.entry-content blockquote blockquote {
    border-left: 4px solid #6c757d !important;
    background-color: #e9ecef !important;
    margin: 8px 0 !important;
}

/* User avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.entry-author {
    display: inline-flex;
    align-items: center;
}

.entry-vote-actions {
    display: inline-flex;
    align-items: center;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.entry-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.author-page__day-link {
    color: var(--real-primary-color);
}

.author-page__badge {
    padding: 0.25rem 0.5rem;
    background-color: var(--real-primary-color);
}

/* Vote buttons and interactive elements */
.vote-buttons {
    display: inline-flex;
    align-items: center;
}

.vote-count {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Author profile */
.author-profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-list-container, .entry-list-container {
        max-height: none;
    }

    body {
        padding-bottom: 100px; /* Increase padding on mobile */
    }
}