/*
Theme Name: Ψηλορείτης
Theme URI: https://www.psiloritis.gr
Description: Θέμα εμφάνισης για την Αδελφότητα Κρητών Ρόδου «Ο Ψηλορείτης». Βασίζεται στο Twenty Twenty-Five.
Author: Αδελφότητα Κρητών Ρόδου
Template: twentytwentyfive
Version: 1.5.16
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: psiloritis
*/

/* Κεφαλίδα */
.psil-header a { text-decoration: none; }
.psil-header .wp-block-site-title a,
.psil-header .wp-block-site-title { color: #fff; }
.psil-header .wp-block-navigation { color: #fff; }
.psil-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #1b2a40 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px;
	padding: 6px 0;
	min-width: 220px;
}
.psil-header .wp-block-navigation-item__content:hover { color: #e9d9b0; }
.psil-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #1b2a40 !important;
	color: #fff !important;
}

/* Κάρτες νέων */
.psil-news .wp-block-post { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(27, 42, 64, .12); height: 100%; }
.psil-news .wp-block-post-featured-image { margin: 0; }
.psil-news .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.psil-news .psil-card-body { padding: 14px 18px 18px; }
.psil-news .wp-block-post-title a { text-decoration: none; color: #1e2430; }
.psil-news .wp-block-post-title a:hover { color: #273b56; text-decoration: underline; }

/* Κουμπιά δραστηριοτήτων */
.psil-activities .wp-block-button__link { width: 100%; text-align: center; }

/* Συλλογές φωτογραφιών (παλιά άλμπουμ) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery .gallery-item { margin: 0; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; border: 0 !important; }
.gallery br { display: none; }

/* Παλιά κείμενα: εικόνες να μη βγαίνουν έξω από τη στήλη */
.entry-content img, .wp-block-post-content img { max-width: 100%; height: auto; }

/* Υποσέλιδο */
.psil-footer a { color: #fff; }
.psil-footer a:hover { color: #e9d9b0; }

/* --- Διορθώσεις 1.0.1 --- */
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }
.psil-activities .wp-block-button__link { min-height: 64px; display: flex; align-items: center; justify-content: center; }
.psil-news .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
	content: ""; display: block; aspect-ratio: 4 / 3;
	background: #273b56 url("assets/images/logo-white.png") center / 110px no-repeat;
}
@media (max-width: 1100px) {
	.psil-header .wp-block-navigation { font-size: 0.95rem; }
}

/* --- Αλλαγές 1.1 --- */
.psil-brand { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.psil-brand:hover { color: #fff; }
.psil-brand-logo { width: 96px; height: 96px; flex: 0 0 auto; }
.psil-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.psil-brand-top { font-size: 0.95rem; font-weight: 600; letter-spacing: .02em; color: #d6dce6; }
.psil-brand-name { font-family: var(--wp--preset--font-family--noto-serif); font-size: 1.9rem; font-weight: 700; letter-spacing: .05em; }
.psil-header .wp-block-navigation { white-space: nowrap; }
.psil-social .wp-social-link svg { width: 26px; height: 26px; }
.psil-footer .psil-social { margin-top: 10px; }
@media (max-width: 781px) {
	.psil-brand { gap: 10px; }
	.psil-brand-logo { width: 64px; height: 64px; }
	.psil-brand-top { font-size: 0.8rem; }
	.psil-brand-name { font-size: 1.35rem; }
	.psil-header .psil-social { display: none; }
}

/* --- Αλλαγές 1.1.1: μεσαίες οθόνες --- */
.psil-brand-name { white-space: nowrap; }
.psil-header .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1180px) {
	.psil-header .psil-social { display: none; }
	.psil-brand-logo { width: 80px; height: 80px; }
	.psil-brand-name { font-size: 1.6rem; }
}
@media (max-width: 960px) and (min-width: 600px) {
	.psil-brand-logo { width: 64px; height: 64px; }
	.psil-brand-top { font-size: 0.8rem; }
	.psil-brand-name { font-size: 1.3rem; }
	.psil-header .wp-block-navigation { font-size: 0.88rem; gap: 14px !important; }
	.psil-header .wp-block-navigation__container { gap: 14px !important; }
}

/* --- Αλλαγές 1.2 --- */
.psil-brand-text { gap: 7px; }
.psil-brand-top { line-height: 1.1; }
.psil-brand-name { line-height: 1; }
.psil-hero-crop { width: 50%; max-width: 760px; margin: 0 auto; aspect-ratio: 574 / 226; overflow: hidden; position: relative; }
.psil-hero-crop img { position: absolute; width: 121.78%; max-width: none; height: auto; left: -10.8%; top: -25.66%; }
@media (max-width: 781px) { .psil-hero-crop { width: 92%; } }

/* --- 1.2.1: μικρά κινητά --- */
@media (max-width: 480px) {
	.psil-brand { gap: 8px; }
	.psil-brand-logo { width: 54px; height: 54px; }
	.psil-brand-top { font-size: 0.72rem; }
	.psil-brand-name { font-size: 1.12rem; letter-spacing: .03em; }
	.psil-header > .wp-block-group { gap: 8px; }
}

/* --- 1.3: υποσέλιδο --- */
.psil-footer .psil-social { margin-top: 6px; }
.psil-footer .psil-social .wp-social-link svg { width: 54px !important; height: 54px !important; }
.psil-footer .psil-social { gap: 22px !important; flex-wrap: nowrap; }
.psil-footer .psil-social .wp-social-link a { padding: 0; }
.psil-footer .wp-block-columns { flex-wrap: wrap; }

/* --- 1.4: εκδηλώσεις --- */
.single-post .wp-block-post-date { display: none; }
.psil-events .wp-block-post-featured-image { background: #273b56; }
.psil-events .wp-block-post-featured-image img { object-fit: contain !important; }
@media (max-width: 1100px) { .psil-footer .psil-social .wp-social-link svg { width: 40px !important; height: 40px !important; } .psil-footer .psil-social { gap: 16px !important; } }

/* --- 1.4.1: ολόκληρη η κεντρική εικόνα στις εκδηλώσεις --- */
.single-post .wp-block-post-featured-image { aspect-ratio: auto !important; height: auto !important; text-align: center; }
.single-post .wp-block-post-featured-image img { aspect-ratio: auto !important; height: auto !important; max-height: 85vh; width: auto !important; max-width: 100%; object-fit: contain !important; margin: 0 auto; }

/* --- 1.5: περιοδικό --- */
.psil-mag-reader { margin: 0 0 18px; scroll-margin-top: 20px; }
.psil-mag-now { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 0 0 8px; }
.psil-mag-now strong { font-size: 1.2rem; color: #273b56; }
.psil-mag-now a { font-size: .95rem; }
#psil-mag-frame { display: block; width: 100%; height: 85vh; min-height: 520px; border: 0; border-radius: 8px; background: #1b2a40; box-shadow: 0 1px 4px rgba(27,42,64,.2); }
.psil-mag-hint { color: #5a6474; font-size: .95rem; }
.psil-mag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.psil-mag-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #1e2430; }
.psil-mag-cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #273b56 url("assets/images/logo-white.png") center / 60px no-repeat; box-shadow: 0 1px 3px rgba(27,42,64,.18); transition: transform .15s, box-shadow .15s; }
.psil-mag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psil-mag-card:hover .psil-mag-cover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(27,42,64,.25); }
.psil-mag-num { text-align: center; font-weight: 600; font-size: .95rem; }
@media (max-width: 600px) { .psil-mag-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; } #psil-mag-frame { height: 70vh; min-height: 420px; } }

/* --- 1.5.1: νέο τεύχος στην αρχική --- */
.psil-lm { display: flex; gap: 36px; align-items: center; }
.psil-lm-cover { flex: 0 0 220px; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(27,42,64,.25); transition: transform .15s; }
.psil-lm-cover:hover { transform: translateY(-3px); }
.psil-lm-cover img { display: block; width: 100%; height: auto; }
.psil-lm-text { flex: 1 1 auto; }
.psil-lm-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: #8a6d3b; margin: 0 0 4px; }
.psil-lm-title { margin: 0 0 6px; }
.psil-lm-issue { font-weight: 600; color: #273b56; margin: 0 0 12px; }
.psil-lm-btns { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.psil-lm-btn { display: inline-block; background: #273b56; color: #fff !important; padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.psil-lm-btn:hover { background: #1b2a40; }
@media (max-width: 640px) { .psil-lm { flex-direction: column; text-align: center; gap: 20px; } .psil-lm-cover { flex-basis: auto; width: 200px; } .psil-lm-btns { justify-content: center; } }

/* --- 1.5.2: περιοδικό δίπλα στα νέα --- */
.psil-news-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 48px) / 3)), 1fr)); gap: 24px; }
.psil-news-row > .wp-block-query, .psil-news-row .wp-block-post-template { display: contents; }
.psil-news-row > * { margin: 0 !important; }
.psil-home-mag .wp-block-post-featured-image { background: #273b56; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 12px 0; box-sizing: border-box; }
.psil-home-mag .wp-block-post-featured-image a { height: 100%; display: block; }
.psil-news .psil-home-mag .wp-block-post-featured-image img { height: 100%; width: auto; aspect-ratio: auto; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.psil-home-mag-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: #8a6d3b; margin: 0 0 2px; }
.psil-home-mag .wp-block-post-title { font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.5), 1.15rem); margin: 0; }

/* --- 1.5.3: χάρτης στο υποσέλιδο --- */
.psil-map { margin-top: 22px; }
.psil-map-title { font-weight: 700; margin: 0 0 8px; color: #fff; }
.psil-map iframe { display: block; width: 100%; max-width: 320px; aspect-ratio: 4 / 3; height: auto; border: 0; border-radius: 8px; }
.psil-footer .psil-map-link { display: inline-block; margin-top: 6px; font-size: .85rem; color: #d6dce6; }

/* --- 1.5.4: υποσέλιδο σε 4 στήλες --- */
.psil-map { margin-top: 0; }
.psil-map iframe { max-width: 100%; }

.psil-footer .psil-map h3 { margin-top: 0 !important; margin-bottom: 0; }

/* --- 1.5.7: Facebook στην αρχική --- */
.psil-fb-box { display: flex; justify-content: center; }
.psil-fb-box iframe { width: 100%; max-width: 500px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(27,42,64,.12); }
.psil-fb-group { text-align: center; margin-top: 14px; }

/* --- 1.5.8: κάρτα Facebook --- */
.psil-fb-card { display: flex; gap: 22px; align-items: center; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 8px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(27,42,64,.12); }
.psil-fb-card img { flex: 0 0 84px; width: 84px; height: 84px; }
.psil-fb-text p { margin: 0; }
.psil-fb-name { font-family: var(--wp--preset--font-family--noto-serif); font-weight: 700; font-size: 1.1rem; color: #1e2430; }
.psil-fb-desc { margin-top: 4px !important; color: #5a6474; font-size: .95rem; }
.psil-fb-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; }
.psil-fb-btn { display: inline-block; background: #1877f2; color: #fff !important; text-decoration: none; font-weight: 600; padding: 9px 18px; border-radius: 6px; font-size: .95rem; }
.psil-fb-btn:hover { background: #0f63d1; }
.psil-fb-btn2 { background: #273b56; }
.psil-fb-btn2:hover { background: #1b2a40; }
@media (max-width: 560px) { .psil-fb-card { flex-direction: column; text-align: center; } .psil-fb-btns { justify-content: center; } }

/* --- 1.5.9: χάρτης σε ξεχωριστά κομμάτια --- */
.psil-footer p.psil-map-link { margin-top: 6px !important; }
.psil-footer .psil-map { margin-top: 15px !important; }
.psil-footer .psil-map-link a { color: #d6dce6; }

/* --- 1.5.12: βίντεο εκδήλωσης στη θέση της αφίσας --- */
.single-post:has(.psil-event-video) main .wp-block-post-featured-image { display: none; }
.psil-event-video { text-align: center; margin: 0 auto 1.5em; }
.psil-event-video video { width: auto; max-width: 100%; max-height: 85vh; border-radius: 6px; background: #1b2a40; }

/* --- 1.5.13: χωρίς «Written by» στα άρθρα --- */
.single-post main .wp-block-group:has(> .wp-block-post-author-name) { display: none; }
.single-post main .wp-block-post-title { margin-bottom: var(--wp--preset--spacing--50); }

/* --- 1.5.15: Λυχνάρι στο υποσέλιδο --- */
.psil-footer p.psil-radio { line-height: 1.4; }
.psil-footer .psil-radio-logo { margin-top: 12px !important; margin-bottom: 0; }
.psil-footer .psil-radio-logo img { background: #fff; padding: 6px 8px; border-radius: 10px; box-sizing: content-box; transition: transform .15s; }
.psil-footer .psil-radio-logo a:hover img { transform: translateY(-2px); }
