/**
 * Frontend styles for SEONetwork plugin
 */

.snw-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 0.95em;
}

.snw-links .seonetwork-plugin {
	text-decoration: none;
}

.snw-links .seonetwork-plugin:hover {
	text-decoration: underline;
}

.snw-links .seonetwork-sep {
	opacity: 0.6;
	user-select: none;
}

/* Menu placement: inline with nav */
.snw-menu-item .snw-links {
	display: inline-flex;
}

/* Footer placement */
.snw-links--footer {
	margin: 1em 0;
}

/* Body home wrapper */
.snw-body-home-wrapper {
	margin: 1em 0;
}

/* Hidden footer: no extra visible styling (handled by wrapper). */

/* Guest post list & detail styles */
.snw-gp-list{margin-top:4px}
.snw-guestpost-list-page .snw-gp-list--grid,.snw-guestpost-list-page .snw-gp-list--list,.snw-guestpost-list-page .snw-gp-list--empty{margin-top:20px}
.snw-gp-list--grid,.snw-gp-related-grid{display:grid;gap:24px;grid-template-columns:repeat(var(--snw-gp-grid-columns,3),minmax(0,1fr))}
@media (max-width:1024px){.snw-gp-list--grid,.snw-gp-related-grid{grid-template-columns:repeat(min(var(--snw-gp-grid-columns,3),2),minmax(0,1fr));gap:20px}}
@media (max-width:640px){.snw-gp-list--grid,.snw-gp-related-grid{grid-template-columns:1fr;gap:20px}}
.snw-gp-list--list{display:flex;flex-direction:column;gap:28px;max-width:100%}
.snw-gp-item{display:flex;flex-direction:column;gap:0;min-width:0}
.snw-gp-list--grid .snw-gp-item,.snw-gp-related-grid .snw-gp-item{height:100%;padding:0;border-radius:10px;border:1px solid #eaeaea;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);overflow:hidden}
.snw-gp-list--list .snw-gp-item{padding:20px 0;border-bottom:1px solid #e8e8e8}
.snw-gp-list--list .snw-gp-item:last-child{border-bottom:0;padding-bottom:0}
.snw-gp-item__thumb{display:block;position:relative;aspect-ratio:16/10;overflow:hidden;background:#f0f0f0;flex-shrink:0}
.snw-gp-list--grid .snw-gp-item__thumb,.snw-gp-related-grid .snw-gp-item__thumb{border-radius:0}
.snw-gp-list--list .snw-gp-item__thumb{border-radius:8px}
.snw-gp-item__thumb img{position:absolute;top:0;left:0;width:100%;height:100% !important;object-fit:cover;display:block}
@media (min-width:641px){
.snw-gp-list--list .snw-gp-item{flex-direction:row;align-items:flex-start;gap:20px;padding:24px 0}
.snw-gp-list--list .snw-gp-item__thumb{flex:0 0 min(220px,38%);max-width:38%}
}
.snw-gp-item__body{display:flex;flex-direction:column;gap:6px;padding:14px 16px 18px;min-width:0;flex:1}
.snw-gp-list--list .snw-gp-item__body{padding:0;gap:8px;justify-content:flex-start}
.snw-gp-item__title{margin:0;padding:0;font-size:1.1rem;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.snw-gp-item__title a{text-decoration:none;color:inherit}
.snw-gp-item__title a:hover{text-decoration:underline}
.snw-gp-item__meta{margin:0;padding:0;color:#6b6b6b;font-size:.875rem;line-height:1.35}
.snw-gp-item__excerpt{margin:0;padding:0;color:#555;font-size:.95rem;line-height:1.5}
.snw-gp-pagination{margin-top:24px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center}
.snw-gp-pagination__link{display:inline-block;padding:8px 12px;border:1px solid #e4e4e4;border-radius:6px;color:#333;text-decoration:none;line-height:1}
.snw-gp-pagination__link:hover{background:#fafafa}
.snw-gp-pagination__current{display:inline-block;padding:8px 12px;border:1px solid #dcdcdc;border-radius:6px;color:#111;background:#fff;font-weight:600;line-height:1}
.snw-gp-pagination__disabled{display:inline-block;padding:8px 12px;border:1px solid #efefef;border-radius:6px;color:#aaa;line-height:1}
.snw-gp-related-section{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.snw-gp-related-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.snw-gp-related-title{margin:0;font-size:1.5rem;flex:1;min-width:0}
.snw-gp-related-viewmore{flex-shrink:0;display:inline-block;padding:8px 14px;border:1px solid #e4e4e4;border-radius:6px;text-decoration:none;color:#333;font-size:.9rem;line-height:1.2;font-weight:500}
.snw-gp-related-viewmore:hover{background:#fafafa;color:#111}

/* Guest post detail page: stable layout across themes. */
.snw-guestpost-detail-page .entry-content ul,
.snw-guestpost-detail-page .entry-content ol { padding-left: 0; margin-left: 0; list-style-position: inside; }
.snw-guestpost-detail-page .snw-guestpost-layout { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.snw-guestpost-detail-page .snw-guestpost-title { text-align: center; }

/* Related posts alignment on detail pages: cards centered, header text left. */
.snw-guestpost-detail-page .snw-gp-related-section { text-align: left; }
.snw-guestpost-detail-page .snw-gp-related-title { text-align: left; }
.snw-guestpost-detail-page .snw-gp-related-grid { margin: 0 auto; }

/* Guest post list page: stable max-width + centering across themes. */
.snw-guestpost-list-page .snw-guestpost-layout { max-width: 1100px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.snw-guestpost-list-page .snw-guestpost-list-title { text-align: center; }
.snw-guestpost-list-page .snw-guestpost-list-description { text-align: center; }
.snw-gp-list-empty { text-align: center; opacity: 0.85; margin: 2rem 0; }
/* Empty shortcode/list: same block shell as card list (avoids grid/flex column breakage in builders). */
.snw-gp-list.snw-gp-list--empty { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
