/*
Theme Name: BDMF Media Portal
Author: Balochistan Digital Media Forum
Description: BDMF Official Directory & Management Portal - responsive media directory with unlimited social accounts per media entity.
Version: 10.0.0
License: GPL-2.0-or-later
Text Domain: bdmf
*/
:root{--red:#a90000;--red2:#850000;--ink:#102039;--muted:#667085;--line:#e4e7ec;--bg:#f7f8fa;--green:#087f5b;--blue:#1683e8;--orange:#f59f00}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:13px}a{text-decoration:none;color:inherit}.container{width:min(1220px,92%);margin:auto}.top{height:74px;background:var(--red);color:#fff}.head{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.logo{width:43px;height:43px;border-radius:9px;background:#fff;color:var(--red);display:grid;place-items:center;font-weight:900;font-size:13px}.brand b{font-size:17px;display:block;line-height:1.1}.brand small{font-size:10px;letter-spacing:.05em;font-weight:800;color:#ffdcae}.nav{display:flex;align-items:center;gap:28px;font-weight:800}.nav a{color:#fff;opacity:.92}.nav a.active{color:#ffe17a;border-bottom:3px solid #ffe17a;padding-bottom:8px}.head-actions{display:flex;gap:10px;align-items:center}.theme-toggle,.login{border:0;border-radius:22px;padding:9px 15px;font-weight:900}.theme-toggle{background:#850000;color:#fff}.login{background:#fff;color:var(--red)}.hero{padding:12px 0 0}.stats{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.stat{background:#fff;border:1px solid #dfe3e8;border-radius:5px;padding:13px 15px;box-shadow:0 2px 5px #00000008;min-height:70px}.stat:nth-child(3){border-color:#ff6b6b}.stat:nth-child(4){border-color:#2f3851}.stat:nth-child(5){border-color:#ff4da0}.stat:nth-child(6){border-color:#14a9ef}.stat:last-child{background:var(--red);color:#fff;border-color:var(--red)}.stat label{display:block;color:#667085;font-size:10px;font-weight:900;margin-bottom:5px}.stat:last-child label{color:#fff}.stat strong{font-size:20px}.portal{margin:32px 0 20px;background:#fff;border:1px solid #dfe3e8;border-radius:7px;box-shadow:0 4px 9px #0000000d;overflow:hidden}.toolbar{padding:12px 16px;display:flex;align-items:center;gap:9px}.search{display:flex;align-items:center;border:1px solid #cfd5dc;border-radius:20px;width:240px;padding:0 12px}.search input{border:0;outline:0;width:100%;padding:8px;background:transparent}.toolbtn{border:1px solid #cfd5dc;background:#fff;border-radius:4px;padding:7px 10px;font-size:11px;font-weight:900}.toolbtn.red{color:var(--red)}.toolbtn.green{color:var(--green)}.view-switch{margin-left:auto;border:1px solid #d6dbe1;border-radius:4px;overflow:hidden;display:flex}.view-switch button{border:0;background:#fff;padding:8px 10px}.view-switch button.active{background:var(--red);color:#fff}.filterbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 16px;display:flex;gap:7px;align-items:center}.filterbar b{color:#8993a1;font-size:10px}.pill{border:0;background:#f8fafc;padding:6px 10px;border-radius:5px;font-weight:900;font-size:11px;color:#475467;cursor:pointer}.pill.active{background:var(--red);color:#fff}.table-wrap{overflow-x:auto}.media-table{width:100%;border-collapse:collapse;min-width:930px}.media-table th{background:#f5f6f8;color:#667085;font-size:10px;text-align:left;padding:11px 16px;white-space:nowrap}.media-table td{padding:10px 16px;border-top:1px solid #edf0f2;vertical-align:middle;white-space:nowrap}.num{color:#7b8794;font-size:11px}.entity{display:flex;gap:10px;align-items:center;min-width:270px}.thumb{width:28px;height:28px;border-radius:4px;object-fit:cover;background:#dfe6e8;display:grid;place-items:center;font-weight:900}.entity b{color:var(--red);display:block;font-size:12px}.entity small{color:#7b8794}.metric{font-weight:800}.reach{width:150px}.bar{height:6px;background:#e5e7eb;border-radius:10px;overflow:hidden}.bar span{display:block;height:100%;background:#13b981}.reach small{font-size:9px;color:#667085}.actions{display:flex;gap:5px}.action{border:0;border-radius:4px;color:#fff;font-size:10px;font-weight:900;padding:5px 8px}.view{background:var(--red)}.wa{background:var(--green)}.pagination{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-top:1px solid var(--line);color:#667085;font-size:11px}.pages{display:flex;gap:4px}.pages button{background:#fff;border:1px solid #d9dee5;border-radius:4px;padding:6px 10px}.pages .current{background:var(--red);color:#fff;border-color:var(--red)}.page-title{padding:42px 0 25px}.page-title h1{font-size:34px;margin:0 0 5px}.page-title p{color:var(--muted)}.content{background:#fff;border:1px solid var(--line);border-radius:7px;padding:25px;margin-bottom:40px}.footer{background:#161d2b;color:#cbd5e1;padding:38px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer h3{color:#fff}.footer a{color:#cbd5e1}.notice{background:#fff7ed;border-left:4px solid var(--orange);padding:12px;margin-bottom:15px}.admin-note{font-size:12px;color:var(--muted)}.dark body{}.dark{background:#111827;color:#e5e7eb}.dark .portal,.dark .stat,.dark .content,.dark .search,.dark .toolbtn,.dark .pill,.dark .pages button{background:#1f2937;color:#e5e7eb;border-color:#374151}.dark .filterbar,.dark .toolbar,.dark .media-table th{background:#18212f}.dark .media-table th{color:#aab4c2}.dark .media-table td{border-color:#2d3748}.dark .entity small,.dark .reach small,.dark .num{color:#9ca3af}@media(max-width:1050px){.stats{grid-template-columns:repeat(4,1fr)}.nav{gap:15px}.head-actions .login{display:none}}@media(max-width:760px){.top,.head{height:auto}.head{padding:10px 0;flex-wrap:wrap}.nav{order:3;width:100%;overflow:auto;padding-bottom:5px;gap:20px}.nav a{white-space:nowrap}.stats{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.search{width:100%}.view-switch{margin-left:0}.filterbar{overflow:auto}.filterbar .pill{white-space:nowrap}.footer-grid{grid-template-columns:1fr}.page-title h1{font-size:28px}}

.bdmf-social-list{display:grid;gap:10px}.verified{display:inline-block;background:#e8f7ef;color:#087f5b;border-radius:12px;padding:3px 8px;font-size:10px;font-weight:900}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.detail-box{border:1px solid var(--line);padding:13px;border-radius:6px;background:#fafafa}.detail-box small{display:block;color:var(--muted);font-size:10px}.social-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);padding:5px 8px;border-radius:5px;margin:3px;background:#fff;font-size:11px;font-weight:800}@media(max-width:760px){.detail-grid{grid-template-columns:1fr 1fr}}
.logo-wrap{width:48px;height:48px;border-radius:8px;background:#fff;display:grid;place-items:center;overflow:hidden;flex:0 0 48px}.site-logo{width:100%;height:100%;object-fit:contain}.entity .thumb{object-fit:cover}
@media(max-width:1200px){.media-table{min-width:1180px}}

/* v6 header/logo fixes */
.brand{min-width:0}.logo-wrap{width:58px!important;height:58px!important;flex:0 0 58px!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important}.site-logo{display:block!important;width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;object-fit:contain!important}.brand>span:last-child{min-width:0}.brand b{white-space:nowrap}.brand small{white-space:nowrap}@media(max-width:1050px){.brand b{font-size:14px}.brand small{font-size:8px}}@media(max-width:760px){.brand b{font-size:13px;white-space:normal}.brand small{white-space:normal}.logo-wrap{width:52px!important;height:52px!important;flex-basis:52px!important}.site-logo{width:49px!important;height:49px!important;max-width:49px!important;max-height:49px!important}.media-table{min-width:1200px}}


/* v7 professional header */
.top{height:94px;background:linear-gradient(135deg,#980000 0%,#b90000 55%,#8f0000 100%);box-shadow:0 3px 12px rgba(0,0,0,.16);position:relative;z-index:10}
.head{height:94px;max-width:1320px;width:min(1320px,94%);gap:26px}
.brand{height:94px;gap:15px;flex:1 1 auto;min-width:360px}
.logo-wrap{width:78px!important;height:78px!important;flex:0 0 78px!important;border-radius:12px!important;background:#fff!important;padding:5px!important;box-shadow:0 3px 10px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.75)}
.site-logo{width:68px!important;height:68px!important;max-width:68px!important;max-height:68px!important;object-fit:contain!important}
.brand b{font-size:20px;letter-spacing:.2px;line-height:1.08;white-space:nowrap;text-shadow:0 1px 1px rgba(0,0,0,.15)}
.brand small{font-size:11px;letter-spacing:.08em;display:block;margin-top:6px;color:#ffe3a3}
.nav{gap:25px;flex:0 0 auto}.nav a{font-size:13px;padding:9px 0}.nav a.active{border-bottom-width:3px}
.head-actions{flex:0 0 auto}.theme-toggle{width:40px;height:40px;padding:0;border-radius:50%;font-size:17px}.login{padding:11px 18px;font-size:12px}
@media(max-width:1200px){.head{gap:15px}.brand{min-width:290px}.brand b{font-size:16px}.brand small{font-size:9px}.nav{gap:14px}.nav a{font-size:12px}.logo-wrap{width:68px!important;height:68px!important;flex-basis:68px!important}.site-logo{width:59px!important;height:59px!important;max-width:59px!important;max-height:59px!important}}
@media(max-width:900px){.top,.head{height:auto}.head{min-height:92px;padding:7px 0;flex-wrap:wrap}.brand{height:78px;min-width:0;flex:1}.nav{order:3;width:100%;justify-content:center;overflow-x:auto;padding:3px 0 7px}.head-actions{margin-left:auto}.brand b{white-space:normal;font-size:15px}.brand small{white-space:normal;font-size:8px}}
@media(max-width:600px){.logo-wrap{width:58px!important;height:58px!important;flex-basis:58px!important}.site-logo{width:50px!important;height:50px!important;max-width:50px!important;max-height:50px!important}.brand{gap:9px}.brand b{font-size:13px}.brand small{font-size:7px}.theme-toggle{display:none}.login{padding:9px 11px;font-size:10px}}

/* v7 directory readability */
.media-table th,.media-table td{padding-left:14px;padding-right:14px}.media-table tbody tr:hover{background:#fffafa}.metric{font-variant-numeric:tabular-nums}.entity b{font-size:13px}.portal{margin-top:28px}

/* v8: professional larger header/logo */
.site-header .container{min-height:82px}.site-logo img,.custom-logo{max-height:68px;width:auto;object-fit:contain}.site-brand{gap:16px}.site-header{box-shadow:0 2px 12px rgba(0,0,0,.12)}

.directory-heading{padding:15px 16px 8px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.directory-heading h2{margin:0;font-size:18px;color:#172033}.directory-heading p{margin:4px 0 0;color:#667085;font-size:11px}.directory-heading>strong{background:var(--red);color:#fff;border-radius:5px;padding:8px 11px;font-size:11px}.all-pages-label{font-size:11px;color:#667085;font-weight:700}@media(max-width:600px){.directory-heading{align-items:flex-start;gap:10px}.directory-heading h2{font-size:16px}.directory-heading>strong{font-size:10px}}

/* v10 polished header and real Media Page logos */
.top{height:108px;background:linear-gradient(135deg,#8f0000 0%,#b90000 52%,#940000 100%);box-shadow:0 4px 16px rgba(0,0,0,.18);border-bottom:1px solid rgba(255,255,255,.16)}
.head{height:108px;width:min(1380px,95%);gap:28px}
.brand{height:108px;gap:16px;min-width:390px}
.logo-wrap{width:92px!important;height:92px!important;flex:0 0 92px!important;border-radius:14px!important;padding:6px!important;background:#fff!important;box-shadow:0 4px 14px rgba(0,0,0,.24),0 0 0 1px rgba(255,255,255,.55)!important}
.site-logo{width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;object-fit:contain!important}
.brand b{font-size:22px;line-height:1.08;letter-spacing:.25px}
.brand small{font-size:11px;letter-spacing:.09em;margin-top:7px}
.nav{gap:27px}.nav a{font-size:14px;padding:11px 0}.theme-toggle{width:42px;height:42px;font-size:18px}.login{padding:12px 20px;font-size:12px}
.thumb-frame{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:7px;overflow:hidden;background:#f0f2f4;border:1px solid #e1e5e9}.entity .thumb{width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px;object-fit:cover;display:block;background:#f0f2f4}.entity{min-width:285px;gap:11px}.entity b{font-size:13px}
@media(max-width:1200px){.top,.head{height:100px}.head{gap:16px}.brand{height:100px;min-width:310px}.logo-wrap{width:82px!important;height:82px!important;flex-basis:82px!important}.site-logo{width:71px!important;height:71px!important;max-width:71px!important;max-height:71px!important}.brand b{font-size:18px}.brand small{font-size:9px}.nav{gap:15px}.nav a{font-size:12px}}
@media(max-width:900px){.top,.head{height:auto}.head{min-height:96px;padding:8px 0}.brand{height:82px}.logo-wrap{width:72px!important;height:72px!important;flex-basis:72px!important}.site-logo{width:62px!important;height:62px!important;max-width:62px!important;max-height:62px!important}.brand b{font-size:16px}.brand small{font-size:8px}}
@media(max-width:600px){.brand{height:72px}.logo-wrap{width:62px!important;height:62px!important;flex-basis:62px!important}.site-logo{width:53px!important;height:53px!important;max-width:53px!important;max-height:53px!important}.brand b{font-size:13px}.brand small{font-size:7px}.thumb-frame,.entity .thumb{width:40px;height:40px;max-width:40px;max-height:40px;flex-basis:40px}}
