/* News Performance Pro Styles - Mobile First */
:root {
    --primary-color: #007bff;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
}

.npp-posts-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.npp-post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.npp-post-item:last-child {
    border-bottom: none;
}

.npp-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.npp-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.npp-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.npp-post-title a {
    color: inherit;
    text-decoration: none;
}

.npp-post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.npp-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.npp-loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.npp-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: npp-spin 1s linear infinite;
}

@keyframes npp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tablet */
@media (min-width: 768px) {
    .npp-posts-container {
        padding: 1.5rem;
    }
    
    .npp-post-title {
        font-size: 1.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .npp-posts-container {
        padding: 2rem;
    }
    
    .npp-post-item {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
    
    .npp-post-thumbnail {
        margin-bottom: 0;
    }
    
    .npp-post-title {
        font-size: 2rem;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

.npp-post-item {
    will-change: transform;
    transform: translateZ(0);
}