/*
Theme Name: Clinical Notes Daily
Theme URI: https://example.com
Author: Angelina
Author URI: https://example.com
Description: Тема для IT-блога: тёмная шапка с логотипом-шестигранником, полноширинный фотобаннер-герой с золотым градиентом и текстом поверх, сетка «Latest publications», сайдбар с поиском/автором/популярными статьями, тёмный футер с соцсетями. Шрифт Times New Roman, чёрно-золотая палитра.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: clinicalnotesdaily
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root{
	--c-bg:#ffffff;
	--c-ink:#191714;
	--c-ink-soft:#5c5650;
	--c-line:#ece7dd;
	--c-line-soft:#f6f3ec;
	--c-gold:#b8860f;
	--c-gold-bright:#d8a53a;
	--c-dark:#12100d;
	--c-dark-soft:#211d17;
	--maxw:1200px;
	--font:'Times New Roman', Times, Georgia, serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{height:100%;}
body{
	margin:0;
	min-height:100%;
	display:flex;
	flex-direction:column;
	font-family:var(--font);
	color:var(--c-ink);
	background:var(--c-bg);
	line-height:1.6;
	font-size:18px;
}
#main-content{flex:1 0 auto;}
.site-footer{flex-shrink:0;}
img{max-width:100%;height:auto;display:block;}
a{color:var(--c-gold);text-decoration:none;}
a:hover{text-decoration:underline;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
input,textarea{font-family:inherit;font-size:15px;}
h1,h2,h3,h4{font-family:var(--font);font-weight:700;line-height:1.25;margin:0 0 .5em;color:var(--c-ink);}
p{margin:0 0 1em;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.screen-reader-text{position:absolute;left:-9999px;}

/* ==========================================================================
   Header (dark)
   ========================================================================== */
.site-header{background:var(--c-dark);border-bottom:1px solid rgba(216,165,58,.18);}
.header-inner{display:flex;align-items:center;gap:32px;padding:16px 24px;max-width:var(--maxw);margin:0 auto;}
.brand{font-family:var(--font);font-size:24px;font-weight:700;color:#fff;flex:0 0 auto;display:flex;align-items:center;gap:12px;}
.brand span{color:var(--c-gold-bright);font-weight:400;}
.brand .brand-mark{height:42px;width:auto;flex-shrink:0;}
.brand img.custom-logo{max-height:44px;width:auto;display:block;}
.brand-block{display:flex;flex-direction:column;gap:3px;}
.brand-tagline{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#a79c86;font-weight:600;}

.primary-nav{flex:1;}
.primary-nav ul{display:flex;gap:30px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}
.primary-nav a{font-size:16px;color:#e7e2d8;padding-bottom:4px;border-bottom:2px solid transparent;}
.primary-nav a:hover,.primary-nav .current-menu-item a{color:#fff;border-bottom-color:var(--c-gold-bright);text-decoration:none;}

.header-search-toggle{background:none;border:none;color:#e7e2d8;display:flex;padding:4px;flex:0 0 auto;}
.header-search-toggle svg{width:19px;height:19px;}
.header-search-toggle:hover{color:var(--c-gold-bright);}

.menu-toggle{display:none;background:none;border:none;font-size:22px;color:#fff;}

.header-search-panel{background:var(--c-dark-soft);max-height:0;overflow:hidden;transition:max-height .2s ease;}
.header-search-panel.is-open{max-height:76px;}
.header-search-panel .container{padding-top:16px;padding-bottom:16px;}
.header-search-panel form{display:flex;gap:8px;max-width:480px;}
.header-search-panel input[type="search"]{flex:1;padding:10px 14px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.06);color:#fff;font-family:var(--font);font-size:15px;}
.header-search-panel input[type="search"]::placeholder{color:#8f8a80;}
.header-search-panel button{padding:10px 20px;border:1px solid var(--c-gold-bright);background:var(--c-gold-bright);color:#191400;border-radius:6px;font-family:var(--font);font-size:15px;font-weight:700;}

@media (max-width:820px){
	.menu-toggle{display:block;order:3;}
	.primary-nav{display:none;order:5;flex:1 0 100%;}
	.primary-nav.is-open{display:block;}
	.primary-nav ul{flex-direction:column;gap:10px;padding:14px 0;justify-content:flex-start;align-items:flex-start;}
	.header-inner{flex-wrap:wrap;}
}

/* ==========================================================================
   Hero (full-bleed photo banner)
   ========================================================================== */
.hero-photo{position:relative;background-size:cover;background-position:center;min-height:340px;display:flex;align-items:center;}
.hero-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(10,9,7,.92) 0%, rgba(10,9,7,.68) 42%, rgba(10,9,7,.18) 100%);}
.hero-photo-inner{position:relative;z-index:1;max-width:var(--maxw);margin:0 auto;padding:64px 24px;width:100%;}
.hero-eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--c-gold-bright);font-weight:700;margin-bottom:16px;}
.hero-photo h1{font-size:46px;color:#fff;margin-bottom:16px;max-width:640px;}
.hero-photo .hero-subtitle{font-size:18px;color:#d8d3c8;max-width:560px;margin-bottom:0;}
@media (max-width:640px){.hero-photo h1{font-size:32px;}.hero-photo-inner{padding:44px 24px;}}

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.page-wrap{padding:44px 0 0;}
.layout-grid{display:grid;grid-template-columns:1fr 320px;gap:44px;align-items:start;}
@media (max-width:900px){.layout-grid{grid-template-columns:1fr;}}
.col-sidebar{position:sticky;top:24px;align-self:start;display:flex;flex-direction:column;gap:24px;}

/* ==========================================================================
   Latest publications
   ========================================================================== */
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:26px;gap:16px;}
.section-head h1,.section-head h2{font-size:28px;margin-bottom:0;position:relative;padding-bottom:12px;}
.section-head h1::after,.section-head h2::after{content:"";position:absolute;left:0;bottom:0;width:46px;height:3px;background:var(--c-gold-bright);}
.section-head a{font-size:15px;font-weight:700;white-space:nowrap;}

.cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:20px;}
@media (max-width:640px){.cards-grid{grid-template-columns:1fr;}}
.post-card{border:1px solid var(--c-line);border-radius:10px;overflow:hidden;background:#fff;}
.post-card-media{overflow:hidden;background:var(--c-line-soft);}
.post-card-media img{width:100%;height:190px;object-fit:cover;}
.post-card-body{padding:20px 22px 24px;}
.cat-pill{display:inline-block;background:var(--c-line-soft);color:var(--c-gold);font-size:13px;font-weight:700;padding:5px 13px;border-radius:999px;margin-bottom:12px;border:1px solid var(--c-line);}
.post-card h3{font-size:20px;margin-bottom:8px;}
.post-card h3 a{color:var(--c-ink);}
.post-card p{color:var(--c-ink-soft);font-size:15px;}
.post-meta{font-size:14px;color:var(--c-ink-soft);margin-bottom:8px;}

.empty-state{grid-column:1/-1;text-align:center;padding:50px 20px;border:1px dashed var(--c-line);border-radius:10px;}
.empty-state svg{width:52px;height:52px;color:var(--c-line);margin:0 auto 18px;}
.empty-state p{color:var(--c-ink-soft);margin-bottom:4px;}
.empty-state p:first-of-type{color:var(--c-ink);font-weight:700;font-size:17px;}

.pagination{display:flex;gap:10px;padding:10px 0 44px;}
.pagination a,.pagination span{padding:7px 12px;border:1px solid var(--c-line);border-radius:6px;font-size:15px;}
.pagination .current{background:var(--c-dark);color:#fff;border-color:var(--c-dark);}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-box{border:1px solid var(--c-line);border-radius:10px;padding:22px;}
.sidebar-box h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--c-ink-soft);margin-bottom:16px;}

.sidebar-search{display:flex;align-items:center;gap:8px;border:1px solid var(--c-line);border-radius:8px;padding:11px 14px;}
.sidebar-search svg{width:16px;height:16px;flex-shrink:0;color:var(--c-ink-soft);}
.sidebar-search input[type="search"]{flex:1;border:none;font-family:var(--font);font-size:15px;background:transparent;}
.sidebar-search input[type="search"]:focus{outline:none;}
.sidebar-search button{display:none;}

.author-widget-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;float:left;margin-right:14px;}
.author-widget-name{font-weight:700;font-size:17px;margin:2px 0 6px;}
.author-widget-bio{font-size:14px;color:var(--c-ink-soft);margin-bottom:10px;clear:none;}
.author-widget-more{font-size:14px;font-weight:700;clear:both;display:inline-block;}

.popular-item{display:flex;gap:12px;margin-bottom:16px;}
.popular-item:last-child{margin-bottom:0;}
.popular-item-thumb{width:56px;height:56px;flex-shrink:0;overflow:hidden;border-radius:8px;background:var(--c-line-soft);}
.popular-item-thumb img{width:100%;height:100%;object-fit:cover;}
.popular-item h4{font-size:15px;margin:0 0 4px;line-height:1.3;}
.popular-item h4 a{color:var(--c-ink);}
.popular-item .post-meta{margin:0;font-size:13px;}
.sidebar-empty{font-size:14px;color:var(--c-ink-soft);}

.lang-item ul,
.lang-item li{
	list-style:none !important; list-style-type:none !important;
	margin:0 !important; padding:0 !important; float:none !important; position:static !important;
}
.lang-item ul{display:flex; gap:14px;}
.lang-item a{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--c-ink);}
.lang-item a:hover{color:var(--c-gold);text-decoration:underline;}
.lang-item img{width:16px;height:auto;flex-shrink:0;}

/* ==========================================================================
   Static pages / breadcrumbs
   ========================================================================== */
.breadcrumbs{padding:16px 0 0;font-size:14px;color:var(--c-ink-soft);}
.breadcrumbs a{color:var(--c-gold);}
.page-hero{background:var(--c-dark);padding:40px 0;margin-bottom:34px;}
.page-hero h1{font-size:32px;margin-bottom:0;color:#fff;}
.page-content p{color:var(--c-ink-soft);font-size:17px;}

.contact-form{max-width:560px;margin-top:6px;}
.form-row{margin-bottom:18px;}
.form-row label{display:block;font-weight:700;font-size:15px;margin-bottom:6px;}
.form-row input,.form-row textarea{width:100%;border:1px solid var(--c-line);padding:10px 12px;border-radius:6px;font-family:var(--font);font-size:16px;color:var(--c-ink);}
.form-row textarea{min-height:130px;resize:vertical;}
.form-row input:focus,.form-row textarea:focus{outline:1px solid var(--c-gold);}
.btn-submit{background:var(--c-dark);color:#fff;border:none;padding:12px 28px;border-radius:6px;font-family:var(--font);font-size:16px;}
.btn-submit:hover{background:#000;}
.form-notice{padding:10px 14px;margin-bottom:18px;font-size:15px;border-radius:6px;border:1px solid var(--c-line);}
.form-notice.success{background:#eaf7ee;}
.form-notice.error{background:#fbeaea;}

/* ==========================================================================
   About / author page
   ========================================================================== */
.author-box{display:flex;gap:22px;align-items:flex-start;border:1px solid var(--c-line);border-radius:10px;padding:26px;margin-top:26px;}
.author-box img{width:110px;height:110px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.author-box .author-name{font-weight:700;font-size:19px;margin-bottom:8px;}
.author-box p{color:var(--c-ink-soft);}
@media (max-width:560px){.author-box{flex-direction:column;align-items:center;text-align:center;}}

/* ==========================================================================
   Single post
   ========================================================================== */
.single-post-wrap h1{font-size:30px;}
.single-post-wrap .post-thumb{margin-bottom:22px;border-radius:10px;overflow:hidden;}
.entry-content{font-size:18px;}
.entry-content p{margin-bottom:1.2em;}
.entry-content img{margin:1.3em 0;border-radius:8px;}
.entry-content h2{font-size:24px;}
.entry-content h3{font-size:20px;}

/* ==========================================================================
   Footer (dark, with social icons)
   ========================================================================== */
.site-footer{background:var(--c-dark);color:#c9c3b6;margin-top:44px;}
.footer-inner{padding:34px 0 22px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:26px;align-items:flex-start;}
.footer-brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:19px;font-weight:700;}
.footer-brand img{height:34px;width:auto;}
.footer-brand-block{display:flex;flex-direction:column;gap:2px;}
.footer-brand .brand-tagline{font-size:9px;}
.footer-nav ul{display:flex;gap:20px;flex-wrap:wrap;}
.footer-nav a{color:#c9c3b6;font-size:15px;}
.footer-nav a:hover{color:var(--c-gold-bright);}
.footer-social{display:flex;gap:14px;}
.footer-social a{width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:#e7e2d8;}
.footer-social a:hover{border-color:var(--c-gold-bright);color:var(--c-gold-bright);}
.footer-social svg{width:16px;height:16px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;font-size:13px;color:#8f897c;}

.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
