/* Reddit-like styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f7f8;
}

/* Adjust logo size on small screens */
@media (max-width: 640px) {
    .h-10 {
        height: 2rem; /* Smaller logo on mobile */
    }
}

/* Ensure dropdown menu fits on mobile */
#category-menu {
    max-width: 100%;
    left: 0;
    right: 0;
}

/* Prevent modal overflow */
#auth-modal {
    padding: 1rem;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header {
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1b;
}

.header a {
    color: #1a1a1b;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 24px;
    color: #1a1a1b;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1b;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1b;
}

p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.post-card {
    border: 1px solid #edeff1;
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rating {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

.comment {
    border-left: 2px solid #edeff1;
    padding-left: 16px;
    margin-left: 16px;
}

.avatar {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.comment-meta {
    color: #7c7c7c;
    font-size: 12px;
}

.prose {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.footer {
    background-color: #1a1a1b;
    color: #d7dadc;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #2f3336;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    border: 1px solid #2f3336;
    border-radius: 8px;
    background-color: #212224;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-section a {
    color: #00a6ed;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #4bc0ff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #2f3336;
}

.footer-bottom p {
    margin: 0;
    color: #818384;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-container {
        padding: 0 12px;
    }
}

.logo {
    max-width: 200px; /* Base size for desktop */
    width: 100%; /* Responsive to container */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center horizontally */
}

@media (max-width: 768px) {
    .logo {
        max-width: 150px; /* Smaller size for tablets */
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 100px; /* Smaller size for mobile */
    }
}

#loading {
    display: none;
    font-size: 1.2em;
    color: #666;
    padding: 20px;
    text-align: center;
}
#loading.visible {
    display: block;
}