/*
Theme Name:        Neo-Social Theme
Theme URI:         https://parea.website/
Author:            PublicUp
Author URI:        https://parea.website/
Description:       Ελαφρύ companion theme για το plugin Neo-Social. Καθαρό full-width layout με ευέλικτες περιοχές widget (αριστερά, δεξιά, footer) που εμφανίζονται αυτόματα όταν περιέχουν widgets. Το κύριο χρώμα κληρονομείται από τις ρυθμίσεις του Neo-Social (--neo-primary).
Version:           1.0.0
Requires at least: 5.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       neo-social-theme
Tags:              full-width-template, custom-menu, footer-widgets, translation-ready, threaded-comments
*/

/* ==========================================================================
   Tokens — ουδέτερα χρώματα από το theme, accent από το plugin (--neo-primary)
   ========================================================================== */
:root {
	--nst-bg: #f4f5f7;
	--nst-surface: #ffffff;
	--nst-border: #e2e2e6;
	--nst-text: #1d2327;
	--nst-muted: #6b7177;
	--nst-radius: 12px;
	--nst-maxwidth: 1180px;
	--nst-accent: var(--neo-primary, #1D9E75);
}

/* ==========================================================================
   Reset / βάση
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--nst-bg);
	color: var(--nst-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
a {
	color: var(--nst-accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
img {
	max-width: 100%;
	height: auto;
}
h1, h2, h3, h4 {
	line-height: 1.25;
	margin: 0 0 .5em;
}

.nst-container {
	width: 100%;
	max-width: var(--nst-maxwidth);
	margin: 0 auto;
	padding: 0 20px;
}
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--nst-surface);
	padding: 10px 16px;
	border-radius: var(--nst-radius);
	z-index: 100;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.nst-header {
	background: var(--nst-surface);
	border-bottom: 1px solid var(--nst-border);
}
.nst-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 20px;
	flex-wrap: wrap;
}
.nst-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.nst-site-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}
.nst-site-title a {
	color: var(--nst-text);
}
.nst-site-title a:hover {
	text-decoration: none;
	color: var(--nst-accent);
}
.nst-site-desc {
	font-size: 13px;
	color: var(--nst-muted);
	margin: 2px 0 0;
}
.custom-logo {
	max-height: 48px;
	width: auto;
}

/* Κύριο μενού (WordPress) */
.nst-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
}
.nst-nav li {
	position: relative;
}
.nst-nav a {
	display: block;
	padding: 8px 12px;
	color: var(--nst-text);
	border-radius: 8px;
	font-size: 15px;
}
.nst-nav a:hover,
.nst-nav .current-menu-item > a {
	background: var(--nst-bg);
	color: var(--nst-accent);
	text-decoration: none;
}
/* Απλό sub-menu */
.nst-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	background: var(--nst-surface);
	border: 1px solid var(--nst-border);
	border-radius: var(--nst-radius);
	padding: 6px;
	flex-direction: column;
	z-index: 40;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.nst-nav li:hover > ul {
	display: flex;
}

/* Toggle κινητού */
.nst-menu-toggle {
	display: none;
	background: var(--nst-surface);
	border: 1px solid var(--nst-border);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 15px;
	cursor: pointer;
	color: var(--nst-text);
}

/* ==========================================================================
   Layout — ευέλικτο grid
   ========================================================================== */
.nst-content {
	padding: 28px 0 40px;
}
.nst-layout {
	display: grid;
	gap: 24px;
	align-items: start;
}
.nst-layout.no-sidebars {
	grid-template-columns: 1fr;
}
.nst-layout.has-left {
	grid-template-columns: 260px minmax(0, 1fr);
}
.nst-layout.has-right {
	grid-template-columns: minmax(0, 1fr) 260px;
}
.nst-layout.has-left.has-right {
	grid-template-columns: 260px minmax(0, 1fr) 260px;
}
.nst-main {
	min-width: 0;
}

/* ==========================================================================
   Sidebars / Widgets
   ========================================================================== */
.nst-sidebar .widget,
.nst-footer-widgets .widget {
	background: var(--nst-surface);
	border: 1px solid var(--nst-border);
	border-radius: var(--nst-radius);
	padding: 16px 18px;
	margin: 0 0 20px;
}
.widget-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--nst-border);
}
.nst-sidebar .widget ul,
.nst-footer-widgets .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nst-sidebar .widget li,
.nst-footer-widgets .widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--nst-bg);
}
.nst-sidebar .widget li:last-child,
.nst-footer-widgets .widget li:last-child {
	border-bottom: 0;
}

/* ==========================================================================
   Content card (σελίδες/άρθρα εκτός shortcode)
   ========================================================================== */
.nst-page,
.nst-post {
	background: var(--nst-surface);
	border: 1px solid var(--nst-border);
	border-radius: var(--nst-radius);
	padding: 28px;
	margin: 0 0 24px;
}
.nst-page-title,
.nst-post-title {
	font-size: 28px;
	margin: 0 0 16px;
}
.nst-post-meta {
	font-size: 13px;
	color: var(--nst-muted);
	margin: 0 0 16px;
}
.nst-entry p {
	margin: 0 0 1em;
}

/* Το περιεχόμενο του plugin (shortcodes) δεν χρειάζεται κάρτα — αφήνεται όπως είναι */
.nst-entry .neo-social {
	width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.nst-footer {
	background: var(--nst-surface);
	border-top: 1px solid var(--nst-border);
	margin-top: 20px;
}
.nst-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	padding: 32px 0 8px;
}
.nst-footer-widgets .widget {
	margin: 0;
}
.nst-footer-bottom {
	border-top: 1px solid var(--nst-border);
	padding: 16px 0;
	text-align: center;
	font-size: 13px;
	color: var(--nst-muted);
}
.nst-footer-bottom a {
	color: var(--nst-muted);
	text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.nst-layout.has-left,
	.nst-layout.has-right,
	.nst-layout.has-left.has-right {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 782px) {
	.nst-menu-toggle {
		display: inline-block;
	}
	.nst-nav {
		flex-basis: 100%;
	}
	.nst-nav ul {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		margin-top: 10px;
	}
	.nst-nav.is-open ul {
		display: flex;
	}
	.nst-nav ul ul {
		position: static;
		box-shadow: none;
		border: 0;
		padding-left: 12px;
	}
	.nst-nav li:hover > ul {
		display: none;
	}
	.nst-nav .menu-item-has-children.is-open > ul {
		display: flex;
	}
}
