/*
Theme Name: Dark Directory Premium
Theme URI: https://example.com/
Author: OpenAI
Description: Dark premium website directory with categories, reviews, visitor ratings, external visit links, and an automatically ranked Best Sites page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dark-directory-premium
*/
:root{--bg:#0b0d12;--panel:#131720;--panel2:#191f2b;--text:#f2f4f8;--muted:#a6afbf;--accent:#70e0b0;--line:#272e3b;--gold:#ffc857}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--accent);text-decoration:none}a:hover{color:#a4f3d0}img{max-width:100%;height:auto;display:block}.wrap{width:min(1180px,calc(100% - 32px));margin:auto}.site-header{background:#0e1118;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-brand{font-size:1.35rem;font-weight:850;letter-spacing:-.04em;color:#fff}.site-brand span{color:var(--accent)}.main-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.main-nav a{color:#dbe2ed;font-weight:650;font-size:.94rem}.hero{padding:54px 0 34px;background:radial-gradient(ellipse at 10% 0%,#1b3a35 0,transparent 38%),linear-gradient(180deg,#10151e,#0b0d12)}.eyebrow{color:var(--accent);text-transform:uppercase;font-size:.75rem;font-weight:800;letter-spacing:.14em}.hero h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.08;letter-spacing:-.05em;margin:10px 0 14px}.hero p{color:var(--muted);max-width:720px;margin:0 0 22px}.search-form{display:flex;gap:10px;max-width:650px}.search-form input{flex:1;min-width:0}.field,input[type=search],input[type=text],input[type=url],textarea{width:100%;border:1px solid var(--line);background:#0e121a;color:var(--text);padding:12px 14px;border-radius:10px;font:inherit}.btn,button,.search-form input[type=submit]{border:0;border-radius:10px;background:var(--accent);color:#07130e;font-weight:800;padding:12px 17px;cursor:pointer;font:inherit}.btn:hover,button:hover{filter:brightness(1.08);color:#07130e}.section{padding:32px 0 48px}.home-directory-section{padding:10px 0 34px}.home-directory-section .section-head{margin-bottom:18px}.home-directory-section h2{margin:0;font-size:1.55rem;letter-spacing:-.03em}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-head h2{margin:0;font-size:1.55rem;letter-spacing:-.03em}.muted{color:var(--muted)}.site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.site-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:transform .18s,border-color .18s}.site-card:hover{transform:translateY(-3px);border-color:#3a6659}.card-image{aspect-ratio:16/9;background:#202735;display:grid;place-items:center;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover}.placeholder{font-size:2rem;font-weight:900;color:#68758a}.card-body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}.card-title{font-size:1.12rem;line-height:1.3;margin:0}.card-title a{color:var(--text)}.card-excerpt{color:var(--muted);font-size:.92rem;margin:0}.rating-line{display:flex;align-items:center;gap:8px;font-size:.9rem}.stars{color:var(--gold);letter-spacing:2px}.rating-number{font-weight:850;color:#fff}.card-actions{display:flex;gap:9px;align-items:center;margin-top:auto;padding-top:4px}.btn-secondary{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--line);padding:9px 13px;border-radius:9px;color:#e9edf5;font-weight:750}.btn-small{padding:9px 13px;font-size:.9rem}.category-list{display:flex;flex-wrap:wrap;gap:10px}.category-pill{display:inline-flex;border:1px solid var(--line);background:var(--panel);padding:9px 14px;border-radius:999px;color:#dfe6f0}.page-title{padding:34px 0 12px}.page-title h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.15;margin:0 0 8px;letter-spacing:-.04em}.breadcrumbs{color:var(--muted);font-size:.9rem;margin-bottom:14px}.single-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;padding:24px 0 50px}.content-panel,.sidebar-panel{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:24px}.single-featured{border-radius:12px;overflow:hidden;margin-bottom:20px}.single-featured img{width:100%;max-height:440px;object-fit:cover}.single-title{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.15;letter-spacing:-.04em;margin:0 0 12px}.site-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:.9rem;margin-bottom:18px}.review-content h2,.review-content h3{line-height:1.25}.visit-panel{margin:20px 0;padding:18px;background:#101d1a;border:1px solid #285544;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.vote-box{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.vote-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.vote-btn{background:#202735;color:#fff;border:1px solid #384153;border-radius:8px;padding:9px 13px}.vote-btn.selected,.vote-btn:hover{background:var(--gold);color:#201604}.vote-message{color:var(--muted);font-size:.9rem;min-height:1.5em}.pagination{display:flex;gap:8px;justify-content:center;margin-top:28px;flex-wrap:wrap}.page-numbers{padding:9px 13px;border:1px solid var(--line);border-radius:9px;color:var(--text)}.page-numbers.current{background:var(--accent);color:#07130e}.site-footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted);text-align:center}.empty-state{padding:32px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.category-description{color:var(--muted);max-width:780px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.single-layout{grid-template-columns:1fr}.sidebar-panel{order:2}}@media(max-width:600px){.wrap{width:min(100% - 22px,1180px)}.header-inner{align-items:flex-start;padding:15px 0;flex-direction:column;gap:10px}.main-nav{gap:13px}.hero{padding:38px 0 28px}.site-grid{grid-template-columns:1fr 1fr;gap:10px}.card-body{padding:11px;gap:8px}.card-title{font-size:.98rem}.card-excerpt{font-size:.82rem}.card-actions{flex-direction:column;align-items:stretch}.card-actions .btn,.card-actions .btn-secondary{text-align:center;width:100%}.content-panel,.sidebar-panel{padding:16px}.visit-panel{align-items:flex-start;flex-direction:column}.search-form{flex-direction:column}.search-form input[type=submit]{width:100%}}@media(max-width:390px){.site-grid{grid-template-columns:1fr}}

/* Category-wise homepage feed and automatically fetched website favicons */
.category-feed-block{margin:0 0 30px}.category-feed-block>.section-head{margin-bottom:14px}.category-feed-block h3{margin:0;font-size:1.2rem}.favicon-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:20px;color:var(--muted);font-weight:750;text-align:center}.favicon-placeholder img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:14px;padding:8px}.card-title{display:flex;align-items:center;gap:9px}.site-favicon{width:24px;height:24px;object-fit:contain;border-radius:5px;background:#fff;padding:2px;flex:0 0 24px}.card-categories{display:flex;gap:6px;flex-wrap:wrap}.card-categories .category-pill{font-size:.75rem;padding:3px 8px}

/* Screenshot-inspired directory layout: dark theme, orange/gold highlights */
:root{--bg:#090909;--panel:#171717;--panel2:#202020;--text:#f7f7f7;--muted:#b9b9b9;--accent:#ff9d13;--line:#383838;--gold:#ffbf52}body{background:var(--bg);color:var(--text)}a{color:var(--accent)}.site-header{background:#050505;border-bottom:1px solid #292929}.header-inner{position:relative;min-height:86px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px}.site-brand{grid-column:2;text-align:center;font-size:1.55rem;font-weight:950;letter-spacing:-.04em;color:#ffad22;text-transform:uppercase;text-shadow:0 2px 0 #7a3900}.menu-toggle,.search-toggle{border:0;background:transparent;color:#fff;padding:8px;display:flex;align-items:center;justify-content:center;cursor:pointer}.menu-toggle{grid-column:1;grid-row:1;flex-direction:column;gap:6px}.menu-toggle span{display:block;width:28px;height:3px;background:#f6f6f6;border-radius:3px}.search-toggle{grid-column:3;grid-row:1;font-size:2.6rem;line-height:1}.main-nav{display:none;position:absolute;left:0;right:0;top:100%;z-index:30;background:#101010;border:1px solid var(--line);padding:14px;box-shadow:0 14px 28px #0009}.menu-open .main-nav{display:flex;flex-direction:column;align-items:stretch;gap:0}.main-nav a{padding:11px 9px;border-bottom:1px solid #292929;color:#eee}.header-search{display:none;position:absolute;left:0;right:0;top:100%;z-index:31;background:#101010;padding:12px;border:1px solid var(--line)}.search-open .header-search{display:block}.hero{padding:6px 0 18px;background:#101010;text-align:center}.hero-inner{min-height:40px;display:flex;align-items:center;justify-content:center}.hero-tagline{font-size:clamp(1rem,3.6vw,1.3rem);margin:8px 0;color:#e2e2e2}.home-sections{max-width:900px;padding-top:12px}.directory-feature-stack{display:grid;grid-template-columns:1fr;gap:18px}.directory-panel{background:#f9f9f9;color:#222;border:5px solid #bdbdbd;border-radius:17px;padding:16px;overflow:hidden;box-shadow:0 5px 0 #0004}.sponsored-panel{border-color:#f0c879}.best-panel{border-color:#bdbdbd}.directory-panel-head{display:flex;align-items:center;justify-content:center;gap:11px;padding:2px 0 13px;border-bottom:5px solid #e4e4e4;position:relative;margin-bottom:12px}.directory-panel-head:after{content:"";position:absolute;width:25%;height:5px;border-radius:5px;bottom:-5px;left:37.5%;background:var(--accent)}.panel-symbol{font-size:1.8rem;color:#d98a12}.directory-panel h2{font-size:clamp(1.05rem,4vw,1.4rem);line-height:1.2;margin:0;text-transform:uppercase;color:#393939;font-weight:850}.panel-description{font-size:1rem;line-height:1.45;color:#555;margin:14px 0 10px}.directory-list{max-height:350px;overflow:auto;scrollbar-color:#aaa transparent;scrollbar-width:thin}.directory-list-item{display:flex;align-items:center;gap:8px;padding:7px 0;min-width:0;font-size:clamp(1rem,4.4vw,1.28rem);line-height:1.3}.list-number{color:#777;font-size:.9em;min-width:20px;text-align:right}.list-favicon{width:25px;height:25px;object-fit:contain;border-radius:50%;flex:0 0 25px}.list-favicon-fallback{display:inline-flex;align-items:center;justify-content:center;background:#ddd;color:#333;font-size:.85rem;font-weight:800}.directory-site-name{color:#181818;min-width:0;overflow-wrap:anywhere;flex:1}.directory-site-name:hover{color:#b66a00}.visit-mini{font-size:.72rem;border:1px solid #ddd;color:#555;border-radius:6px;padding:4px 6px;white-space:nowrap}.panel-cta{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:#f39a13;color:#fff;border-radius:12px;padding:12px 10px;font-size:1.02rem;font-weight:850;text-align:center}.panel-cta:hover{background:#e58a08;color:#fff}.section-heading{margin:28px 0 14px}.section-heading h2{font-size:1.45rem;margin:3px 0 0}.category-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-chip{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:12px;color:#eee;font-weight:700}.category-chip span{color:var(--accent)}.az-letters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.az-letters a{display:inline-flex;justify-content:center;align-items:center;width:32px;height:32px;border-radius:7px;border:1px solid var(--line);background:var(--panel);color:#fff;font-weight:800}.az-letters a:hover{background:var(--accent);color:#111}.az-list{background:var(--panel);border:1px solid var(--line);border-radius:13px;overflow:hidden}.az-letter-heading{padding:7px 12px;background:#242424;color:var(--accent);font-weight:900;border-bottom:1px solid var(--line)}.az-site{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #303030;color:#eee;min-width:0}.az-site img,.az-fallback{width:25px;height:25px;object-fit:contain;border-radius:50%;background:#fff;flex:0 0 25px}.az-fallback{display:flex;align-items:center;justify-content:center;background:#333;color:#fff}.az-site>span:nth-child(2){flex:1;overflow-wrap:anywhere}.az-arrow{color:var(--accent)}.empty-note{color:#777;padding:10px 0}.site-footer{background:#050505;border-top:1px solid #292929;color:#aaa}@media(min-width:700px){.directory-feature-stack{grid-template-columns:1fr 1fr;align-items:start}.directory-panel{padding:18px}.directory-list{max-height:380px}.category-chip-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:420px){.directory-panel{padding:12px 11px}.directory-panel-head{gap:8px}.panel-description{font-size:.95rem}.directory-list-item{gap:6px}.visit-mini{display:none}.panel-cta{font-size:.95rem}}

/* ThePornDude-inspired directory homepage structure, retaining the dark premium palette. */
.hero{padding:30px 0 26px;background:radial-gradient(ellipse at 50% 0%,#1b302b 0,transparent 65%),#101010;text-align:center;border-bottom:1px solid #262626}
.hero-inner{min-height:0;display:flex;flex-direction:column;align-items:center;gap:5px}
.hero-mark{font-size:1.5rem;color:var(--accent)}
.hero h1{font-size:clamp(1.8rem,5vw,2.65rem);line-height:1.15;margin:0;font-weight:900;letter-spacing:-.04em}
.hero-tagline{font-size:1rem;margin:4px 0 12px;color:#bdbdbd}
.home-search{width:min(700px,100%)}
.home-search .search-form{max-width:none;margin:auto;gap:0;border:1px solid #363636;border-radius:10px;overflow:hidden;background:#171717}
.home-search .search-form input[type=search],.home-search .search-form input[type=text]{border:0;border-radius:0;background:#171717;padding:14px 16px}
.home-search .search-form input[type=submit]{border-radius:0;padding:0 20px;white-space:nowrap}
.home-sections{max-width:1050px;padding-top:22px}
.directory-feature-stack{grid-template-columns:1fr;gap:18px}
.directory-panel{background:#f7f7f7;border:1px solid #d4d4d4;border-radius:9px;padding:16px;color:#202020;box-shadow:none}
.directory-panel-head{justify-content:flex-start;border-bottom:2px solid #e6e6e6;margin-bottom:10px;padding-bottom:10px}
.directory-panel-head:after{display:none}.panel-symbol{font-size:1.25rem}.directory-panel h2{text-transform:none;color:#202020;font-size:1.25rem}
.panel-description{margin:4px 0 9px;color:#666;font-size:.92rem}
.directory-list{max-height:unset;display:grid;grid-template-columns:1fr;overflow:visible}
.directory-list-item{font-size:1rem;padding:8px 0;border-bottom:1px solid #e8e8e8}.directory-list-item:last-child{border-bottom:0}
.list-favicon{width:24px;height:24px;flex-basis:24px;border-radius:4px}.directory-site-name{color:#242424;font-weight:650}.visit-mini{border-color:#ddd;color:#555}.panel-cta{border-radius:6px;margin-top:12px;font-size:.9rem;padding:10px;background:#202a28}
.quick-browse{padding:12px 0 6px}.section-heading{margin:20px 0 13px}.section-heading h2,.category-feed-head h2{font-size:1.35rem;margin:2px 0 0}
.category-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-chip{border-radius:7px;background:#151515;padding:10px 12px;font-size:.93rem}
.category-feed-block{margin:22px 0 28px}.category-feed-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid #333}.category-feed-head>a{font-size:.9rem;font-weight:750;white-space:nowrap}
.category-directory-list{background:#f7f7f7;border:1px solid #d4d4d4;border-radius:8px;overflow:hidden;color:#222}
.category-directory-item{display:flex;align-items:center;gap:10px;padding:10px 13px;border-bottom:1px solid #e5e5e5;color:#222;min-width:0}.category-directory-item:last-child{border-bottom:0}.category-directory-item:hover{background:#ededed;color:#111}
.category-directory-item img,.category-fallback{width:25px;height:25px;flex:0 0 25px;object-fit:contain;border-radius:4px;background:#fff}.category-fallback{display:flex;align-items:center;justify-content:center;color:#333;font-weight:800}.category-item-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:650}.category-item-arrow{color:#666}
.az-section{padding-top:4px}.az-list{background:#f7f7f7;color:#222;border-color:#d4d4d4}.az-letter-heading{background:#e6e6e6;color:#222;border-color:#d5d5d5}.az-site{color:#222;border-color:#e5e5e5}.az-site img{border:1px solid #eee}.az-letters a{border-radius:5px}
@media(min-width:700px){.directory-feature-stack{grid-template-columns:1fr 1fr}.directory-list-item{font-size:1rem}.category-chip-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-directory-list{display:grid;grid-template-columns:1fr 1fr}.category-directory-item:nth-child(odd){border-right:1px solid #e5e5e5}.category-directory-item{border-bottom:1px solid #e5e5e5}}
@media(max-width:600px){.hero{padding:23px 0 20px}.home-sections{padding-top:15px}.directory-panel{padding:13px}.category-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-search .search-form{flex-direction:row}.home-search .search-form input[type=submit]{width:auto}.category-feed-head h2{font-size:1.2rem}}

/* Category panels match Sponsored and Best panels; no category chips or helper labels */
.category-panel{margin:18px 0 0;border-color:#bdbdbd}.category-panel .directory-panel-head{margin-bottom:12px}.category-panel .panel-cta{margin-top:14px}.category-panel .directory-list{max-height:350px}

/* Each category is its own named table, styled consistently with Sponsored and Best. */
.category-panel{margin:18px 0 0;background:#f7f7f7;border:1px solid #d4d4d4;border-radius:9px;padding:16px;color:#202020;box-shadow:none}
.category-panel .directory-panel-head{justify-content:flex-start;border-bottom:2px solid #e6e6e6;margin-bottom:10px;padding-bottom:10px}
.category-panel .directory-panel-head:after{display:none}
.category-panel .directory-panel-head h2{text-transform:none;color:#202020;font-size:1.25rem}
.category-panel .directory-list{max-height:unset;display:grid;grid-template-columns:1fr;overflow:visible}
.category-panel .directory-list-item{font-size:1rem;padding:8px 0;border-bottom:1px solid #e8e8e8}
.category-panel .directory-list-item:last-child{border-bottom:0}
.category-panel .panel-cta{border-radius:6px;margin-top:12px;font-size:.9rem;padding:10px;background:#202a28}
@media(min-width:700px){.category-panel .directory-list{grid-template-columns:1fr 1fr}.category-panel .directory-list-item:nth-child(odd){padding-right:12px}.category-panel .directory-list-item:nth-child(even){padding-left:12px}.category-panel .directory-list-item{border-bottom:1px solid #e8e8e8}}

/* Footer menu spacing */
.site-footer .footer-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px 22px;margin:22px auto 8px;padding-top:18px;max-width:900px;border-top:1px solid #292929;}
.site-footer .footer-links a{display:inline-block;padding:5px 2px;line-height:1.7;}
/* Website screenshots entered in the post editor */
.card-image>img{display:block;width:100%;height:100%;object-fit:cover;}

/* Single listing website screenshot */
.single-website-screenshot{margin:0 0 24px;overflow:hidden;border:1px solid #333;border-radius:12px;background:#101010;line-height:0}
.single-website-screenshot img{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;margin:0 auto}
