/*
Theme Name: Beauty Tool Guide
Theme URI: https://beautytoolguide.com/
Description: Child theme του Astra. Οπτική γλώσσα δανεισμένη από τα ίδια τα
  μηχανήματα: ενδεικτικές λυχνίες, πινακίδες προδιαγραφών, επίπεδα έντασης.
Author: Beauty Tool Guide
Template: astra
Version: 1.0.0
Text Domain: beautytoolguide
*/

/* ───────────────────────────────────────────────────────────────
   Tokens

   Το χρώμα βγαίνει από τις ίδιες τις συσκευές: το μελάνι είναι η
   μάσκα LED σβηστή, το «signal» είναι η θεραπευτική κόκκινη λυχνία
   στα 633nm. Το signal ΔΕΝ χρησιμοποιείται για διακόσμηση — μόνο
   εκεί που κάτι είναι ενεργό, επιλεγμένο ή προειδοποιεί.
   ─────────────────────────────────────────────────────────────── */
:root {
	--ink: #241a28;
	--ink-soft: #3a2c40;
	--paper: #fbf7f8;
	--surface: #f1eaee;
	--signal: #e23e57;
	--signal-dim: #f6dce1;
	--muted: #6e5f69; /* 5,3:1 πάνω στο --paper· το #7a6b75 έβγαινε 4,45 */
	--line: #e2d7dc;

	--display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
	--body: 'Newsreader', ui-serif, Georgia, serif;
	--data: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

	--measure: 34rem; /* ~68 χαρακτήρες — το πλάτος που διαβάζεται */
	--gap: clamp(1.25rem, 4vw, 2.5rem);
}

/* ───────────────────────────────────────────────────────────────
   Βάση
   ─────────────────────────────────────────────────────────────── */
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-optical-sizing: auto;
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.entry-title,
.site-title {
	font-family: var(--display);
	font-weight: 700;
	font-stretch: 88%;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--ink);
	text-wrap: balance;
}

h1, .entry-title { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-top: 2.5em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin-top: 2em; font-weight: 600; }

p, li { max-width: var(--measure); }

a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 0.18em; }
a:hover { color: var(--signal); }

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ───────────────────────────────────────────────────────────────
   Κεφαλίδα — πινακίδα οργάνου, όχι banner
   ─────────────────────────────────────────────────────────────── */
.site-header,
.ast-primary-header-bar {
	background: var(--ink);
	border-bottom: 1px solid var(--ink);
}

.site-title a,
.site-title a:visited {
	font-family: var(--display);
	font-stretch: 78%;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--paper);
	text-decoration: none;
}

.main-header-menu a { font-family: var(--data); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ast-primary-header-bar .main-header-menu a { color: var(--paper); }
.ast-primary-header-bar .main-header-menu a:hover { color: var(--signal); }

/* ───────────────────────────────────────────────────────────────
   Πινακίδα προδιαγραφών — ό,τι υπάρχει στην ετικέτα της συσκευής
   ─────────────────────────────────────────────────────────────── */
.btg-spec {
	font-family: var(--data);
	font-size: 0.78rem;
	line-height: 1.5;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 2rem 0 2.75rem;
	padding: 1rem 1.15rem;
	background: var(--surface);
	border-left: 3px solid var(--signal);
	max-width: none;
}

.btg-spec dt {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.68rem;
	margin: 0 0 0.15rem;
}

.btg-spec dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ───────────────────────────────────────────────────────────────
   ΥΠΟΓΡΑΦΗ: η ράγα ένδειξης

   Κάθε βήμα έχει τη λυχνία του. Ανάβει όταν το βήμα μπει στο πεδίο
   όρασης. Το δανείζομαι από τη μπάρα 5 επιπέδων που έχουν σχεδόν
   όλες αυτές οι συσκευές — άρα λέει κάτι αληθινό, δεν διακοσμεί:
   το περιεχόμενο ΕΙΝΑΙ ακολουθία.
   ─────────────────────────────────────────────────────────────── */
.btg-steps { list-style: none; margin: 2rem 0; padding: 0; position: relative; }

.btg-steps::before {
	content: '';
	position: absolute;
	left: 0.42rem;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 1px;
	background: var(--line);
}

.btg-steps > li {
	position: relative;
	padding: 0 0 1.75rem 2.5rem;
	max-width: none;
}

.btg-steps > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background 260ms ease, box-shadow 260ms ease;
}

.btg-steps > li.is-lit::before {
	background: var(--signal);
	box-shadow: inset 0 0 0 1px var(--signal), 0 0 0 4px var(--signal-dim);
}

.btg-steps > li > strong:first-child {
	display: block;
	font-family: var(--display);
	font-stretch: 88%;
	font-size: 1.08rem;
	margin-bottom: 0.2rem;
}

/* Η αρίθμηση των βημάτων ζει στο mono, όπως στα εγχειρίδια */
.btg-steps > li > strong:first-child::before {
	content: counter(btg-step) ' / ';
	font-family: var(--data);
	font-size: 0.75rem;
	color: var(--muted);
	letter-spacing: 0.06em;
}

.btg-steps { counter-reset: btg-step; }
.btg-steps > li { counter-increment: btg-step; }

/* ───────────────────────────────────────────────────────────────
   Προειδοποίηση ασφαλείας — αυτές οι συσκευές καίνε
   ─────────────────────────────────────────────────────────────── */
.btg-warn {
	max-width: none;
	margin: 2rem 0;
	padding: 1rem 1.15rem;
	background: var(--signal-dim);
	border-left: 3px solid var(--signal);
	font-size: 1rem;
}

.btg-warn > :first-child { margin-top: 0; }
.btg-warn > :last-child { margin-bottom: 0; }

.btg-warn strong {
	font-family: var(--data);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 0.35rem;
	color: #a51f36; /* σκουρότερο του signal — περνά AA πάνω στο signal-dim */
}

/* ───────────────────────────────────────────────────────────────
   Άρθρο
   ─────────────────────────────────────────────────────────────── */
.entry-content img { border-radius: 2px; }

.entry-content blockquote {
	border-left: 3px solid var(--line);
	padding-left: 1.25rem;
	font-style: normal;
	color: var(--ink-soft);
}

.btg-refs {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

.btg-refs h2 {
	font-family: var(--data);
	font-size: 0.75rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.75rem;
	font-weight: 500;
}

.btg-refs ol { padding-left: 1.1rem; }
.btg-refs li { margin-bottom: 0.4rem; color: var(--muted); }
.btg-refs a { color: var(--ink-soft); }

/* ───────────────────────────────────────────────────────────────
   Υποσέλιδο
   ─────────────────────────────────────────────────────────────── */
.site-footer,
.ast-small-footer {
	background: var(--ink);
	color: var(--surface);
	font-family: var(--data);
	font-size: 0.8rem;
	line-height: 1.7;
}

.site-footer a { color: var(--surface); text-decoration-color: var(--muted); }
.site-footer a:hover { color: var(--signal); }

/* ───────────────────────────────────────────────────────────────
   Κινητό — δάπεδο ποιότητας, όχι έξτρα

   Το smarthome έχασε χρόνο σε οριζόντιο overflow στα 390px.
   Εδώ μπαίνει από την αρχή.
   ─────────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; }

img, video, iframe, table, pre { max-width: 100%; }

.entry-content table { display: block; overflow-x: auto; }

@media (max-width: 720px) {
	body { font-size: 1.0625rem; }
	.btg-spec { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
	.main-header-menu a,
	.site-footer a { display: inline-block; min-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.btg-steps > li::before { transition: none; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ───────────────────────────────────────────────────────────────
   Στήλη ανάγνωσης

   Το `max-width` ανά παράγραφο άφηνε τους τίτλους να απλώνονται σε όλο
   το πλάτος ενώ το κείμενο σταματούσε στη μέση — έβγαινε στραβό. Το όριο
   ανήκει στη στήλη, όχι στο κάθε στοιχείο.
   ─────────────────────────────────────────────────────────────── */
.ast-plain-container .entry-content,
.ast-plain-container .entry-header,
.ast-plain-container .ast-article-single > *:not(.btg-spec):not(.btg-warn) {
	max-width: 42rem;
	margin-inline: auto;
}

.entry-content > p,
.entry-content > ul:not(.btg-steps),
.entry-content > ol,
.entry-content > h2,
.entry-content > h3 { max-width: none; }

p, li { max-width: none; }

/* ───────────────────────────────────────────────────────────────
   Μπάνερ συναίνεσης cookies

   Το plugin έρχεται με το δικό του μπλε. Ένα banner που δεν μοιάζει με
   το site διαβάζεται ως τρίτο μέρος και μειώνει την εμπιστοσύνη —
   ακριβώς στο σημείο που ζητάμε συναίνεση.
   ─────────────────────────────────────────────────────────────── */
.cky-consent-container .cky-consent-bar {
	background: var(--paper) !important;
	border: 1px solid var(--line) !important;
	box-shadow: 0 12px 40px rgba(36, 26, 40, 0.14) !important;
	font-family: var(--body) !important;
}

.cky-title { font-family: var(--display) !important; color: var(--ink) !important; }
.cky-notice-des, .cky-notice-des p { color: var(--ink-soft) !important; font-size: 0.95rem !important; }

.cky-btn {
	font-family: var(--data) !important;
	font-size: 0.78rem !important;
	letter-spacing: 0.05em !important;
	border-radius: 2px !important;
	min-height: 40px;
}

.cky-btn-accept {
	background: var(--signal) !important;
	border-color: var(--signal) !important;
	color: var(--paper) !important;
}

.cky-btn-reject,
.cky-btn-customize {
	background: transparent !important;
	border: 1px solid var(--ink) !important;
	color: var(--ink) !important;
}

.cky-btn-revisit-wrapper { background: var(--ink) !important; }

/* ───────────────────────────────────────────────────────────────
   Στόχοι αφής

   Οι σύνδεσμοι ΜΕΣΑ σε τρεχούμενο κείμενο αφήνονται σκόπιμα: padding εκεί
   χαλάει τη στοίχιση των γραμμών, και το WCAG τους εξαιρεί ρητά.
   ─────────────────────────────────────────────────────────────── */
.main-header-menu .menu-link,
.site-footer a,
.btg-refs a,
.ast-blog-meta-container a {
	display: inline-block;
	min-height: 24px;
	line-height: 24px;
}
