/* Sticky footer and Reddit-like styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f6f7f8;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1 0 auto; /* Grow to fill space, don't shrink */
    display: flex;
    flex-direction: column;
}

.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);
}

.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;
    border-top: 2px solid #2f3336;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.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;
    }
}