/*
Theme Name: Reyhaneh Status
Theme URI: https://reyhane.info/
Author: Reyhaneh
Description: صفحهٔ وضعیت عمومی، مینیمال و فارسی ریحانه با نوارهای رنگی و پایش چندکشوری نت‌نگار.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: reyhaneh-status
License: GPL-2.0-or-later
*/
@font-face{font-family:Vazir;src:url('assets/fonts/Vazir-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Vazir;src:url('assets/fonts/Vazir-Medium.woff2') format('woff2');font-weight:500 600;font-style:normal;font-display:swap}
:root{color-scheme:light;--bg:#fafbf9;--surface:#fff;--surface-soft:#f5f7f5;--ink:#25352f;--muted:#7d8982;--line:#e4e9e5;--accent:#168564;--healthy:#35aa86;--healthy-soft:#edf7f2;--degraded:#dfa443;--down:#dc6868;--maintenance:#7697ce;--unknown:#d5dcd7;--focus:#267eae}
html[data-theme=dark]{color-scheme:dark;--bg:#141b18;--surface:#1a231e;--surface-soft:#202b24;--ink:#e0e8e2;--muted:#9cafa3;--line:#2c3931;--accent:#62c6a4;--healthy:#54bf9b;--healthy-soft:#1b3027;--degraded:#e7b359;--down:#e07d7d;--maintenance:#90ace0;--unknown:#3f5145}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazir,Tahoma,sans-serif;font-size:14px;line-height:1.8;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,summary,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{display:block}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:4px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:12px;right:12px;background:var(--surface);padding:12px;z-index:50;transform:translateY(-200%)}.skip-link:focus{transform:none}
.site-header{max-width:1120px;margin:0 auto;padding:29px 35px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:33px;height:33px;color:var(--accent)}.brand img{width:36px;height:36px;object-fit:contain}.brand-name{font-size:22px;font-weight:500;letter-spacing:-.8px}.brand-divider{width:1px;height:22px;background:var(--line);margin:0 3px}.brand-status{font-size:12px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:20px}.main-link{font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:center}.main-link:hover{color:var(--ink)}.icon-button{width:34px;height:34px;display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%}.icon-button svg{width:15px;height:15px}.outline-button{display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface);padding:9px 14px;border-radius:6px;font-size:12px}.outline-button:hover{border-color:var(--muted)}.outline-button svg{width:14px;height:14px}
.status-shell{max-width:970px;margin:0 auto;padding:58px 35px 0}.hero-eyebrow{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:11px;margin:0 0 12px;letter-spacing:.2px}.eyebrow-line{display:inline-block;width:20px;height:1px;background:var(--accent)}.hero h1{font-size:36px;line-height:1.5;font-weight:500;letter-spacing:-1.6px;margin:0 0 11px}.hero-subtitle{color:var(--muted);font-size:13px;margin:0;max-width:690px}.hero-meta{display:flex;align-items:center;gap:8px;margin-top:24px;font-size:11px;color:var(--muted)}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--healthy);box-shadow:0 0 0 3px var(--healthy-soft)}.hero-meta .sep{margin:0 5px;color:var(--unknown)}.live-dot.error{background:var(--down);box-shadow:none}.refresh-button{background:transparent;border:0;padding:2px 6px;margin-inline-start:auto;color:var(--muted);display:flex;align-items:center;gap:5px;font-size:11px}.refresh-button:hover{color:var(--accent)}.refresh-button svg{width:12px;height:12px}.status-banner{display:flex;align-items:center;gap:16px;margin-top:30px;padding:22px 24px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.status-banner[data-status=healthy]{background:var(--healthy-soft);border-color:color-mix(in srgb,var(--healthy) 18%,var(--line))}.banner-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid currentColor;border-radius:50%;color:var(--healthy);flex:none}.banner-icon svg{width:17px;height:17px}.status-banner[data-status=unknown] .banner-icon{color:var(--muted)}.status-banner[data-status=degraded] .banner-icon{color:var(--degraded)}.status-banner[data-status=down] .banner-icon{color:var(--down)}.status-banner[data-status=maintenance] .banner-icon{color:var(--maintenance)}.banner-title{font-size:15px;font-weight:500;margin:0 0 2px}.banner-subtitle{font-size:11px;color:var(--muted);margin:0}.banner-label{margin-inline-start:auto;color:var(--muted);font-size:10px;display:flex;align-items:center;gap:7px;white-space:nowrap}.banner-label span{width:5px;height:5px;background:var(--healthy);border-radius:50%}.overview-strip{display:grid;grid-template-columns:repeat(3,1fr);margin:25px 0 35px}.overview-stat{padding:0 22px;border-inline-start:1px solid var(--line);display:flex;align-items:baseline;gap:10px}.overview-stat:first-child{padding-inline-start:0;border:0}.overview-stat strong{font-weight:400;font-size:22px;font-variant-numeric:tabular-nums;line-height:1.5}.overview-stat span{color:var(--muted);font-size:11px}
.section-nav{display:flex;gap:26px;border-bottom:1px solid var(--line);margin-bottom:26px}.section-nav button{padding:0 0 14px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px}.section-nav button[aria-selected=true]{color:var(--ink);border-color:var(--accent)}.section-nav button span{font-size:10px;padding:2px 6px;margin-inline-start:6px;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:21px}.section-heading h2{font-size:15px;font-weight:500;margin:0}.section-heading p{font-size:10px;color:var(--muted);margin:2px 0 0}.filters{display:flex;align-items:center;gap:12px}.select-wrap{display:flex;gap:7px;align-items:center;border:1px solid var(--line);border-radius:5px;background:var(--surface);padding:4px 8px}.select-wrap svg{width:12px;height:12px;color:var(--muted)}.select-wrap select{font-size:11px;border:0;background:transparent;color:var(--ink);max-width:170px;cursor:pointer;padding:3px 0}.range-buttons{display:flex;gap:2px;background:var(--surface-soft);border:1px solid var(--line);border-radius:5px;padding:3px}.range-buttons button{border:0;background:transparent;color:var(--muted);font-size:10px;border-radius:3px;padding:3px 9px;white-space:nowrap}.range-buttons button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #00000008}.service-list{border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden}.service{border-bottom:1px solid var(--line)}.service:last-child{border:0}.service summary{cursor:pointer;padding:20px 23px 0;list-style:none}.service summary::-webkit-details-marker{display:none}.service-top{display:flex;align-items:center;gap:12px}.service-icon{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;color:var(--muted);flex:none}.service-icon svg{width:16px;height:16px}.service-name{font-size:13px;font-weight:500;display:flex;align-items:center;gap:9px}.service-description{font-size:10px;color:var(--muted);margin:1px 0 0}.chevron{width:10px;height:10px;color:var(--muted);transition:transform .2s}.service[open] .chevron{transform:rotate(180deg)}.service-right{margin-inline-start:auto;text-align:left;display:flex;flex-direction:column;gap:2px}.state{display:inline-flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap}.state::before{content:'';width:5px;height:5px;background:var(--unknown);border-radius:50%}.state[data-status=healthy]{color:var(--accent)}.state[data-status=healthy]::before{background:var(--healthy)}.state[data-status=degraded]{color:var(--degraded)}.state[data-status=degraded]::before{background:var(--degraded)}.state[data-status=down]{color:var(--down)}.state[data-status=down]::before{background:var(--down)}.state[data-status=maintenance]{color:var(--maintenance)}.state[data-status=maintenance]::before{background:var(--maintenance)}.state[data-status=unknown]{color:var(--muted)}.uptime-caption{font-size:9px;color:var(--muted)}.history-wrap{padding:14px 23px 15px}.history-bars{display:flex;gap:3px;direction:ltr;height:23px;align-items:stretch}.history-bar{flex:1;min-width:0;padding:0;border:0;border-radius:2px;background:var(--unknown);position:relative;transition:opacity .15s}.history-bar:hover,.history-bar:focus{opacity:.7;outline:2px solid var(--ink);outline-offset:2px}.history-bar[data-status=healthy]{background:var(--healthy)}.history-bar[data-status=degraded]{background:var(--degraded)}.history-bar[data-status=down]{background:var(--down)}.history-bar[data-status=maintenance]{background:var(--maintenance)}.history-bar[data-status=unknown]{background:repeating-linear-gradient(135deg,var(--unknown),var(--unknown) 3px,var(--surface-soft) 3px,var(--surface-soft) 5px)}.history-axis{display:flex;justify-content:space-between;direction:ltr;font-size:9px;color:var(--muted);margin-top:6px}.service-details{padding:0 23px 23px;border-top:1px dashed var(--line);margin-top:3px;background:var(--surface-soft)}.detail-header{display:flex;justify-content:space-between;align-items:center;padding:18px 0 14px;font-size:10px;color:var(--muted)}.detail-header a{color:var(--accent);display:flex;align-items:center;gap:5px}.detail-header svg{width:12px;height:12px}.region-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.region-card{padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:6px}.region-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:10px}.country-name{display:flex;align-items:center;gap:7px}.country-code{font-size:9px;font-family:ui-monospace,monospace;border:1px solid var(--line);padding:0 4px;border-radius:3px;color:var(--muted)}.region-card .history-bars{height:13px;gap:2px}.region-foot{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;margin-top:6px}.region-select{display:flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;font-size:11px}.region-select:hover{color:var(--accent)}.region-note{font-size:10px;color:var(--muted);margin:12px 0}.latency-section{margin-top:21px}.latency-title{display:flex;justify-content:space-between;align-items:center}.latency-title h3{font-size:11px;font-weight:500;margin:0}.latency-title span{font-size:9px;color:var(--muted)}.latency-chart{height:130px;width:100%;margin-top:12px;overflow:visible;direction:ltr}.latency-chart text{font-size:9px;font-family:Vazir,Tahoma,sans-serif;fill:var(--muted)}.chart-grid{stroke:var(--line);stroke-dasharray:3 5}.chart-line{stroke:var(--accent);stroke-width:1.8;fill:none}.chart-dot{fill:var(--surface);stroke:var(--accent);stroke-width:1.8}.chart-empty{border:1px dashed var(--line);border-radius:6px;padding:18px;text-align:center;color:var(--muted);font-size:10px;margin-top:12px}.chart-note{font-size:9px;color:var(--muted);margin:5px 0 0}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:20px;font-size:10px;color:var(--muted);padding:17px 0 0}.legend span{display:flex;gap:6px;align-items:center}.legend i{display:inline-block;width:7px;height:7px;background:var(--unknown);border-radius:2px}.legend i[data-status=healthy]{background:var(--healthy)}.legend i[data-status=degraded]{background:var(--degraded)}.legend i[data-status=down]{background:var(--down)}.legend i[data-status=maintenance]{background:var(--maintenance)}.data-note{font-size:10px;line-height:2;color:var(--muted);margin:22px 0 0}.country-section{margin-top:35px;border-top:1px solid var(--line);padding-top:26px}.country-section-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.country-section-header svg{width:15px;height:15px;color:var(--muted)}.country-section h2{font-size:12px;font-weight:500;margin:0}.country-pills{display:flex;flex-wrap:wrap;gap:10px}.country-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:8px 12px;font-size:11px}.country-pill[aria-pressed=true]{border-color:var(--accent);background:var(--healthy-soft)}.country-pill .state{font-size:9px}.country-pill .state::before{width:4px;height:4px}.no-data{font-size:11px;color:var(--muted);padding:24px;text-align:center}.incident-card{padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin:0 0 12px;border-inline-start:3px solid var(--degraded)}.incident-card[data-severity=maintenance]{border-inline-start-color:var(--maintenance)}.incident-card[data-severity=down]{border-inline-start-color:var(--down)}.incident-card[open]{padding-bottom:22px}.incident-card summary{list-style:none;cursor:pointer}.incident-card summary::-webkit-details-marker{display:none}.incident-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.incident-title{font-size:12px;font-weight:500;margin:0}.incident-time{font-size:10px;color:var(--muted);margin-top:5px}.incident-body{font-size:11px;color:var(--muted);white-space:pre-line;margin:17px 0 0}.incident-phase{font-size:9px;padding:3px 8px;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;white-space:nowrap}.incident-timeline{border-inline-start:1px solid var(--line);margin:20px 5px 0 0;padding-inline-start:20px}.incident-update{position:relative;margin-bottom:16px;font-size:11px}.incident-update::before{content:'';position:absolute;inset-inline-start:-24px;top:6px;width:7px;height:7px;border:2px solid var(--surface);border-radius:50%;background:var(--muted)}.incident-update strong{font-weight:500}.incident-update time{font-size:9px;color:var(--muted);margin-inline-start:10px}.incident-update p{font-size:10px;color:var(--muted);white-space:pre-line;margin:4px 0}.incident-empty{border:1px solid var(--line);background:var(--surface);border-radius:8px;text-align:center;padding:45px 20px}.incident-empty svg{width:28px;height:28px;color:var(--muted);margin:0 auto 10px}.incident-empty h3{font-size:13px;font-weight:500;margin:0}.incident-empty p{font-size:11px;color:var(--muted);margin:5px 0}.active-incidents{margin:20px 0 0}.active-incidents .incident-card{background:transparent;margin:0 0 10px}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding:22px 0;margin:43px 0 22px}.footer-links{display:flex;gap:20px}.footer-links a:hover{color:var(--accent)}.footer-brand{display:flex;gap:7px;align-items:center}.footer-brand svg{width:13px;height:13px;color:var(--accent)}.tooltip{position:fixed;z-index:30;pointer-events:none;background:var(--ink);color:var(--bg);padding:10px 14px;border-radius:5px;font-size:10px;box-shadow:0 4px 14px #0000000d;max-width:270px;line-height:1.9;white-space:pre-line}.connection-error{border:1px solid var(--down);padding:12px 16px;border-radius:6px;color:var(--down);font-size:11px;margin:22px 0 0;background:var(--surface)}.subscribe-dialog{max-width:430px;width:calc(100% - 32px);padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.subscribe-dialog::backdrop{background:#15261dd0;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.subscribe-dialog h2{font-size:17px;font-weight:500;margin:0}.subscribe-dialog p{font-size:12px;color:var(--muted);line-height:2}.feed-actions{display:flex;gap:10px;margin:22px 0 0}.feed-actions .outline-button{flex:1}.preview-label{padding:8px 20px;font-size:10px;text-align:center;color:#956e2b;background:#fff6e2;border-bottom:1px solid #eadebe}.loading-skeleton{padding:24px;border:1px solid var(--line);border-radius:8px;line-height:2;color:var(--muted);margin-top:20px}.wp-admin-bar .site-header{margin-top:0}
@media(min-width:1500px){.status-shell{padding-top:70px}}@media(max-width:700px){.site-header{padding:20px}.brand-status,.brand-divider,.main-link{display:none}.header-actions{gap:9px}.brand-name{font-size:21px}.brand-logo{width:29px;height:29px}.header-actions .outline-button{padding:7px 10px;font-size:10px}.status-shell{padding:35px 20px 0}.hero h1{font-size:29px;letter-spacing:-1px}.hero-subtitle{font-size:12px;line-height:2}.hero-meta{flex-wrap:wrap;margin-top:20px;font-size:10px;gap:6px}.hero-meta .sep{display:none}.refresh-button{font-size:10px}.status-banner{padding:18px 16px;gap:12px;margin-top:22px}.banner-title{font-size:13px}.banner-subtitle{font-size:10px}.banner-label{display:none}.overview-strip{margin:24px 0 28px}.overview-stat{padding:0 12px;display:flex;flex-direction:column;gap:1px}.overview-stat strong{font-size:22px}.overview-stat span{font-size:9px}.section-heading{align-items:flex-start;flex-direction:column;gap:15px}.filters{width:100%;justify-content:space-between;gap:8px}.range-buttons button{padding:3px 8px}.select-wrap select{max-width:140px}.section-nav{gap:24px;margin-bottom:23px}.section-nav button{font-size:12px}.service summary{padding:17px 15px 0}.service-icon{width:28px;height:28px}.service-top{gap:10px}.service-name{font-size:12px;gap:6px}.service-description{font-size:9px}.service .state{font-size:9px}.uptime-caption{font-size:8px}.history-wrap{padding:13px 15px 14px}.history-bars{height:21px;gap:2px}.history-bar{border-radius:1px}.history-axis{font-size:8px}.service-details{padding:0 15px 18px}.region-list{grid-template-columns:1fr}.region-card .history-bars{gap:2px}.detail-header{font-size:9px;align-items:flex-start;gap:10px}.detail-header>span{max-width:70%}.legend{gap:12px;font-size:9px}.data-note{font-size:9px}.country-section{margin-top:27px;padding-top:22px}.country-pills{gap:7px}.country-pill{padding:7px 9px;font-size:10px}.site-footer{align-items:flex-start;flex-direction:column;gap:13px;margin-top:32px;padding:18px 0}.footer-links{gap:20px}.incident-card{padding:17px 15px}.incident-top{align-items:flex-start}.incident-title{font-size:11px}.incident-phase{font-size:8px}.incident-time{font-size:9px}.subscribe-dialog{padding:22px}}@media(max-width:360px){.status-shell,.site-header{padding-inline:15px}.hero h1{font-size:25px}.brand-name{font-size:19px}.header-actions .outline-button{font-size:9px}.service-description{max-width:140px}.service-right{min-width:70px}.history-bars{gap:1px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.service summary .history-wrap{padding-inline:0}
.chart-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:9px;color:var(--muted);margin-top:8px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:12px;height:2px;display:inline-block}
