/* SEO Page Generator — Frontend styles */

/* Listing grid */
.spg-listing {
    display: grid;
    gap: 24px;
    margin: 2rem 0;
}

.spg-cols-1 { grid-template-columns: 1fr; }
.spg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.spg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.spg-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .spg-cols-3,
    .spg-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .spg-cols-2,
    .spg-cols-3,
    .spg-cols-4 { grid-template-columns: 1fr; }
}

.spg-item {
    display: flex;
    flex-direction: column;
}

.spg-item__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.spg-item__body {
    padding: 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spg-item__title {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.spg-item__title a {
    text-decoration: none;
}

.spg-item__excerpt {
    flex: 1;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.spg-item__link {
    font-size: 0.875rem;
    font-weight: 600;
}

.spg-no-results {
    color: #888;
    font-style: italic;
}

/* Footer nav */
.spg-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.spg-footer-section {
    min-width: 140px;
}

.spg-footer-heading {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.spg-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spg-footer-list li {
    margin-bottom: 5px;
    font-size: 0.875rem;
}
