/*
Theme Name: LiteNews Mobile
Author: Developer
Description: A lightweight, mobile-optimized news theme.
Version: 1.0
*/

/* Mobile-First Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f4f4f4;
}

#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #fff;
    padding: 15px;
    border-bottom: 2px solid #eee;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
}

.post-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}