/*
Theme Name: IpHost Status
Theme URI: https://status.iphost.net/
Author: IpHost
Author URI: https://www.iphost.net/
Description: Status page theme that mirrors the look of iphost.net (header, colors, footer).
Version: 1.6.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iphost-status
*/

:root {
	--ip-dark: #464255;
	--ip-dark-2: #464358;
	--ip-orange: #FAA052;
	--ip-orange-strong: #F29F00;
	--ip-magenta: #B6619C;
	--ip-magenta-2: #BA6497;
	--ip-bg: #F5F5F5;
	--ip-line: #E7E7E7;
	--ip-text: #333333;
	--ip-muted: #7A7A7A;
	--ip-bottom: #23282D;
	--ip-ok: #2E9E5B;
	--ip-warn: #E39A1B;
	--ip-bad: #D64545;
	--ip-grad: linear-gradient(85.5deg, #BA6497 35%, #FCA451 80%);
	--ip-grad-footer: linear-gradient(90deg, #FAA052 27%, #B6619C 100%);
	--ip-radius: 14px;
	--ip-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ip-bg);
	color: var(--ip-text);
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

a { color: var(--ip-magenta); text-decoration: none; }
a:hover { color: var(--ip-orange-strong); }
img { max-width: 100%; height: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 6px; color: var(--ip-dark);
}

.ip-wrap { max-width: var(--ip-wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.ip-topbar {
	background: var(--ip-dark-2);
	color: #fff;
	font-size: 13px;
}
.ip-topbar .ip-wrap {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 42px; gap: 16px;
}
.ip-topbar a { color: #fff; }
.ip-topbar a:hover { color: var(--ip-orange); }
.ip-myip {
	display: inline-flex; align-items: center; gap: 8px;
}
.ip-myip__badge {
	background: var(--ip-orange-strong); color: #222; font-weight: 700;
	border-radius: 4px; padding: 2px 8px; font-size: 12px;
}
.ip-topbar__links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ip-topbar__links a { white-space: nowrap; }
@media (max-width: 560px) {
	.ip-topbar .ip-wrap { gap: 10px; }
	.ip-topbar__links { gap: 12px; }
	.ip-lang a { padding: 3px 6px; gap: 4px; }
}
@media (max-width: 380px) { .ip-myip__ip { display: none; } }
.ip-lang { display: inline-flex; align-items: center; gap: 4px; }
.ip-lang .gt_selector, .ip-lang select { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 2px 6px; font: inherit; font-size: 12px; }
.ip-lang .gt_selector option, .ip-lang select option { color: #222; }
.ip-lang a.glink { opacity: .85; padding: 2px 4px; }
.ip-lang a.glink img { width: 20px; height: auto; }
.ip-lang a {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px;
	font-weight: 600; opacity: .7;
}
.ip-lang a img { width: 18px; height: 12px; border-radius: 2px; }
.ip-lang a.is-active { opacity: 1; background: rgba(255, 255, 255, .14); }
.ip-lang a:hover { opacity: 1; }
.ip-topbar__links svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; fill: currentColor; }

/* ---------- Header ---------- */
.ip-header {
	background: #fff;
	box-shadow: 0 4px 18px rgba(70, 66, 85, .08);
	position: sticky; top: 0; z-index: 100;
}
.admin-bar .ip-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ip-header { top: 46px; } }

.ip-header .ip-wrap {
	display: flex; align-items: center; gap: 24px; min-height: 76px;
}
.ip-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ip-logo img { height: 44px; width: auto; display: block; }
.ip-logo__text { font-weight: 800; font-size: 26px; color: var(--ip-dark); }

.ip-portal {
	flex: 0 0 auto; margin-left: auto;
	background: var(--ip-dark); color: #fff !important;
	border-radius: 35px; padding: 12px 22px;
	font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
	transition: background .2s ease;
}
.ip-portal:hover { background: var(--ip-magenta); }

@media (max-width: 560px) {
	.ip-topbar__links .ip-hide-sm { display: none; }
	.ip-logo img { height: 36px; }
	.ip-portal { padding: 10px 14px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.ip-hero {
	background: var(--ip-grad);
	color: #fff;
	padding: 56px 0 90px;
	position: relative;
	overflow: hidden;
}
.ip-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
	background: var(--ip-bg);
	clip-path: polygon(0 100%, 100% 20%, 100% 100%);
}
.ip-hero h1 {
	font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; margin: 0 0 12px; font-weight: 800;
}
.ip-hero p { margin: 0; font-size: 18px; opacity: .95; max-width: 640px; }
.ip-hero__crumbs { font-size: 14px; margin-bottom: 14px; opacity: .9; }
.ip-hero__crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.ip-overall {
	display: inline-flex; align-items: center; gap: 12px;
	margin-top: 26px; background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 40px; padding: 10px 20px 10px 14px; font-weight: 600;
	backdrop-filter: blur(4px);
}
.ip-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ip-ok); box-shadow: 0 0 0 4px rgba(46, 158, 91, .25); flex: 0 0 auto; }
.ip-dot--warn { background: var(--ip-warn); box-shadow: 0 0 0 4px rgba(227, 154, 27, .25); }

/* ---------- Content ---------- */
.ip-main { padding: 10px 0 70px; }
.ip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
@media (max-width: 960px) { .ip-grid { grid-template-columns: minmax(0, 1fr); } }
.ip-grid > * { min-width: 0; }

.ip-section-title {
	font-size: 26px; font-weight: 400; color: var(--ip-dark); margin: 0 0 22px;
}
.ip-section-title strong { font-weight: 800; }

.ip-card {
	background: #fff; border-radius: var(--ip-radius);
	box-shadow: 0 6px 24px rgba(70, 66, 85, .07);
	padding: 28px 30px; margin-bottom: 22px;
	border-left: 5px solid var(--ip-orange);
	transition: transform .18s ease, box-shadow .18s ease;
}
.ip-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(70, 66, 85, .12); }
.ip-card--resolved { border-left-color: var(--ip-ok); }
.ip-card--open { border-left-color: var(--ip-bad); }

.ip-card__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	font-size: 13px; color: var(--ip-muted); margin-bottom: 10px;
}
.ip-badge {
	display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
	padding: 3px 10px; border-radius: 20px; background: #FDEBDD; color: #B35B12;
}
.ip-badge--resolved { background: #E3F4EA; color: #1F7A45; }
.ip-badge--open { background: #FBE4E4; color: #A22C2C; }

.ip-card__title { font-size: 22px; line-height: 1.3; margin: 0 0 10px; font-weight: 700; }
.ip-card__title a { color: var(--ip-dark); }
.ip-card__title a:hover { color: var(--ip-magenta); }
.ip-card__excerpt { color: #555; margin: 0 0 16px; }
.ip-more {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 700; font-size: 14px; color: var(--ip-dark);
}
.ip-more::after { content: "→"; transition: transform .15s ease; }
.ip-more:hover::after { transform: translateX(4px); }

/* single */
.ip-article { border-left: 0; padding: 38px 40px; }
.ip-article:hover { transform: none; }
.ip-entry { font-size: 17px; }
.ip-entry h2, .ip-entry h3 { color: var(--ip-dark); line-height: 1.3; }
.ip-entry p { margin: 0 0 1.1em; }
.ip-entry ul, .ip-entry ol { padding-left: 1.3em; }
.ip-entry strong { color: var(--ip-dark); }
.ip-entry blockquote {
	margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--ip-orange); background: var(--ip-bg); border-radius: 0 10px 10px 0;
}
.ip-entry table { width: 100%; border-collapse: collapse; }
.ip-entry td, .ip-entry th { border: 1px solid var(--ip-line); padding: 8px 10px; }
@media (max-width: 600px) { .ip-article, .ip-card { padding: 22px 20px; } }

.ip-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-weight: 600; }

/* pagination */
.ip-pagination { margin-top: 30px; }
.ip-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 30px; background: #fff; color: var(--ip-dark); font-weight: 700;
	box-shadow: 0 3px 12px rgba(70, 66, 85, .08);
}
.ip-pagination .page-numbers.current,
.ip-pagination .page-numbers:hover { background: var(--ip-dark); color: #fff; }

/* sidebar */
.ip-side .ip-box {
	background: #fff; border-radius: var(--ip-radius); padding: 24px 24px;
	box-shadow: 0 6px 24px rgba(70, 66, 85, .07); margin-bottom: 22px;
}
.ip-side h3 { margin: 0 0 14px; font-size: 18px; color: var(--ip-dark); font-weight: 800; }
.ip-side ul { list-style: none; margin: 0; padding: 0; }
.ip-side li { padding: 7px 0; border-bottom: 1px solid var(--ip-line); font-size: 15px; }
.ip-side li:last-child { border-bottom: 0; }
.ip-side li a { color: var(--ip-dark); }
.ip-side li a:hover { color: var(--ip-magenta); }
.ip-box--support { background: var(--ip-dark) !important; color: #fff; }
.ip-box--support h3 { color: #fff; }
.ip-box--support p { margin: 0 0 14px; opacity: .9; font-size: 15px; }
.ip-box--support a.ip-btn { display: block; text-align: center; margin-top: 10px; background: #F5891F; border: 0; }
.ip-box--support a.ip-btn:hover { background: #E2730C; filter: none; }
.ip-btn {
	display: inline-block; background: var(--ip-grad-footer); color: #fff !important;
	border-radius: 35px; padding: 11px 22px; font-weight: 700; font-size: 14px;
}
.ip-btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.ip-btn:hover { filter: brightness(1.06); }

.ip-search { display: flex; gap: 8px; }
.ip-search input[type=search] {
	flex: 1; min-width: 0; border: 1px solid var(--ip-line); border-radius: 30px; padding: 10px 16px; font: inherit; font-size: 14px;
}
.ip-search button {
	border: 0; background: var(--ip-dark); color: #fff; border-radius: 30px; padding: 0 16px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
}

.ip-empty { text-align: center; padding: 50px 20px; }

/* ---------- Footer ---------- */
.ip-footer {
	background: var(--ip-grad-footer);
	color: #fff;
	position: relative;
	padding: 110px 0 0;
	margin-top: 20px;
}
.ip-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 70px;
	background: var(--ip-bg);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ip-footer a { color: #fff; }
.ip-footer a:hover { color: var(--ip-dark); }
.ip-footer__cols {
	display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 30px;
}
@media (max-width: 960px) { .ip-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ip-footer__cols { grid-template-columns: 1fr; } }
.ip-footer h4 {
	font-size: 20px; font-weight: 700; margin: 0 0 18px; display: inline-block;
	padding-bottom: 6px; border-bottom: 3px solid #fff;
}
.ip-footer h4.ip-plain { border: 0; padding: 0; }
.ip-footer ul { list-style: none; margin: 0; padding: 0; }
.ip-footer li { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.ip-footer .ip-contact li { margin-bottom: 4px; }
.ip-footer__block { margin-top: 30px; }

.ip-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; max-width: 150px; }
.ip-social a {
	width: 34px; height: 34px; border-radius: 50%; background: var(--ip-dark);
	display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.ip-social a:hover { background: var(--ip-magenta); }
.ip-social svg { width: 16px; height: 16px; fill: #fff; }
.ip-iso { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ip-iso img { height: 38px; width: auto; }

.ip-footer__legal {
	margin-top: 50px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .45);
	display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 20px; align-items: center; font-size: 14px;
}
.ip-footer__legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.ip-footer__legal li { margin: 0; padding: 0 12px; border-right: 1px solid rgba(255, 255, 255, .6); line-height: 1.2; }
.ip-footer__legal li:last-child { border-right: 0; }
.ip-footer__vat { text-align: right; font-size: 13px; opacity: .9; }
@media (max-width: 800px) {
	.ip-footer__legal { grid-template-columns: 1fr; text-align: center; }
	.ip-footer__vat { text-align: center; }
}
.ip-bottom {
	background: var(--ip-bottom); color: #cfd2d6; font-size: 13px; text-align: center; padding: 12px 0;
}
.ip-bottom a { color: #fff; }

/* WP core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: var(--ip-muted); }
.sticky .ip-card, .ip-card.sticky { border-left-color: var(--ip-bad); }
