/*
Theme Name: OTCLOUNGE Forum
Theme URI: https://example.org/otclounge
Author: OTCLOUNGE
Description: Dark neon OTC stock discussion forum inspired by the supplied visual references. Includes discussion and reply functionality, newsletter form and responsive layout.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: otclounge
*/
:root{--pink:#f50873;--orange:#ff6b00;--yellow:#ffdb2a;--line:#677583;--blue:#5abaff}*{box-sizing:border-box}body{margin:0;background:#050608;color:#f2f2f2;font:15px Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.wrap{max-width:1420px;margin:auto;padding:0 16px}.topbar{background:repeating-linear-gradient(125deg,#050508 0 32px,#5c122d 33px,#e30b63 41px,#12141c 50px,#050508 70px);border-bottom:2px solid #f23b73}.toprow{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:47px;font-style:italic}.toprow strong{color:#ffd028}.searchbox{display:flex;background:#07080b;border:1px solid white;border-radius:24px;overflow:hidden}.searchbox input{background:none;border:0;color:white;padding:7px 14px;width:220px}.searchbox button{background:none;border:0;color:white;padding:5px 12px}.brand{height:165px;background:#08080b url('assets/header.jpg') center/100% 100% no-repeat}.nav{background:linear-gradient(#3b3d43,#050609 70%);border-top:2px solid #fb8a3c;border-bottom:3px solid #ec2783;box-shadow:0 3px 12px #ef4d82}.navinner{display:flex;gap:1px}.nav a{flex:1;text-align:center;padding:14px 5px;font-weight:bold;background:linear-gradient(#30343a,#050506);border-right:1px solid #36373a}.nav a.active,.nav a:hover{background:linear-gradient(#ffb342,#ff6c00 55%,#ad2600)}.ticker{display:flex;gap:18px;justify-content:space-around;overflow:auto;white-space:nowrap;background:#06090b;padding:12px 0;border-bottom:1px solid #272e32}.ticker span{color:#61f46c}.panels{display:grid;grid-template-columns:2fr 1.16fr .9fr;gap:12px;margin:12px 0 20px}.hero{min-height:210px;background:url('assets/hero.jpg') center/cover;border:2px solid #95bbd5;border-radius:7px;box-shadow:0 0 12px #2e9fd7}.panel{background:linear-gradient(#232930,#08090c 22%);border:1px solid #a4b6c5;border-radius:7px;box-shadow:inset 0 0 10px #5e6b75,0 0 5px #697682;overflow:hidden}.panel h2,.panel h3{margin:0;padding:10px 14px;background:linear-gradient(#353c43,#08090c);border-bottom:1px solid #667783;font-style:italic}.market h2{text-align:center;color:var(--yellow);font-size:24px}.marketline{display:flex;justify-content:space-between;padding:9px 14px;border-bottom:1px solid #2c343a}.marketline b{color:#63ee64}.subscribe{border:2px solid #f71482;box-shadow:0 0 13px #ff0085,inset 0 0 20px #a7094e;padding:14px;text-align:center;background:radial-gradient(at top,#67052d,#09070a 70%);border-radius:8px}.subscribe h2{color:#ffdf26;font-size:22px;font-style:italic;margin:0 0 7px}.subscribe p{margin:8px 0}.subscribe input{width:100%;padding:10px;border:0;border-radius:4px;margin:6px 0;color:#111}.pinkbtn{background:linear-gradient(#ff438e,#e00060);border:1px solid #f83689;border-radius:5px;color:white;font-weight:bold;padding:10px 15px;box-shadow:0 2px 6px #73052b}.subscribe button{width:100%}.maincols{display:grid;grid-template-columns:215px minmax(0,1fr);gap:13px}.side .panel{margin-bottom:12px}.statsline{display:flex;gap:12px;padding:11px 13px;align-items:center}.statsline .ico{font-size:26px}.statsline b{display:block}.poster{display:flex;gap:10px;padding:9px 13px;border-bottom:1px solid #24282d}.poster strong,.category{color:#ffe32d}.poster small{display:block;color:#d7d7d7}.promo{width:100%;border:2px solid #e92977;border-radius:7px}.contenthead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:linear-gradient(#30353a,#07080a);border-bottom:2px solid #ff6d21}.contenthead h1{margin:0;font-size:26px;font-style:italic}.contenthead select,.controls select{background:#0b0c10;color:white;border:1px solid #79838d;border-radius:4px;padding:7px}.tablewrap{overflow-x:auto}.threadtable{border-collapse:collapse;width:100%;min-width:720px}.threadtable th{background:#282f37;text-align:left;padding:11px 9px}.threadtable td{border-top:1px solid #333a40;padding:10px 9px}.threadtable tbody tr:nth-child(even){background:#121418}.threadtable tbody tr:hover{background:#20252d}.threadtable .topic{min-width:280px}.threadtable .topic a:hover{color:#ffb529}.threadtable .last{color:#64c7ff}.pagination{display:flex;gap:6px;padding:12px}.pagination a,.pagination span{background:linear-gradient(#34383d,#0a0a0c);border:1px solid #85909c;border-radius:5px;padding:9px 13px}.pagination .current{background:linear-gradient(#ffb02a,#e94a00);border-color:#ff9225}.footer{margin-top:24px;border-top:3px solid #fa1682;border-bottom:3px solid #ed137b;background:repeating-linear-gradient(130deg,#050509 0 70px,#450c27 80px,#f11170 95px,#08090c 110px);padding:20px 0;font-size:20px;font-style:italic;font-weight:bold}.footer strong{color:#ffdd28}.footerflex{display:flex;justify-content:space-between;gap:20px;align-items:center}.crumbs{padding:14px 0}.threadtitle{padding:16px;display:flex;gap:18px;align-items:center}.threadtitle h1{font-size:25px;margin:0 0 6px}.threadlayout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:16px}.post{display:grid;grid-template-columns:190px minmax(0,1fr);margin:12px 0}.author{border-right:1px solid #677482;padding:14px}.author h3{color:#ffdb25;margin:0 0 5px}.author img{width:100%;max-width:130px;border:1px solid #b1b6bd;border-radius:4px;margin:9px 0}.postbody{padding:13px 16px;line-height:1.55}.postmeta{padding-bottom:8px;border-bottom:1px solid #525a63;color:#c9d2d9}.postbody p{margin:10px 0}.postbody img.threadimage{width:37%;max-width:320px;float:right;margin:5px 0 10px 15px}.postactions{text-align:right;clear:both;padding-top:10px}.postactions a{color:#8cc8ff;margin-left:12px}.replyform{padding:15px}.replyform textarea,.newform textarea,.newform input{width:100%;padding:12px;background:#f7f7f7;color:#111;border-radius:5px;border:1px solid #aaa}.replyform textarea{min-height:125px}.replyform button,.newform button{margin-top:9px}.notice{padding:12px;border:1px solid #d5a136;background:#3e2b0c;margin:10px 0}.newform{padding:16px}.newform label{display:block;margin:10px 0 5px}.newform textarea{min-height:180px}.threadright .panel,.threadright .subscribe{margin-bottom:12px}.mobilehint{display:none}@media(max-width:900px){.panels{grid-template-columns:1fr 1fr}.panels .hero{grid-column:1/-1}.maincols{grid-template-columns:175px minmax(0,1fr)}.threadlayout{grid-template-columns:1fr}.threadright{display:grid;grid-template-columns:1fr 1fr;gap:12px}.brand{height:125px}}@media(max-width:620px){.wrap{padding:0 10px}.toprow{flex-wrap:wrap;padding:7px 0;font-size:12px}.searchbox{width:100%}.searchbox input{width:100%}.brand{height:85px}.navinner{flex-wrap:wrap}.nav a{flex:1 0 30%;font-size:12px;padding:10px 2px}.panels,.maincols,.threadright{grid-template-columns:1fr}.panels .hero{grid-column:auto;min-height:170px}.side{display:grid;grid-template-columns:1fr 1fr;gap:8px}.side .panel{margin:0}.side .promo{display:none}.contenthead h1{font-size:21px}.post{grid-template-columns:1fr}.author{border-right:0;border-bottom:1px solid #677482}.author img{max-width:75px;float:right}.postbody img.threadimage{float:none;display:block;width:100%}.footer{font-size:15px}.footerflex{flex-wrap:wrap}.threadtitle h1{font-size:21px}}

/* v1.1: Keep the supplied original artwork intact across screen sizes. */
.brand{height:auto;background:#08080b;overflow:hidden;line-height:0}
.brand img{display:block;width:100%;height:auto;aspect-ratio:1159/138;object-fit:fill}
.hero{min-height:0;background:#08090c;overflow:hidden;line-height:0}
.hero img{display:block;width:100%;height:auto;aspect-ratio:535/209;object-fit:fill}
@media(max-width:900px){.brand{height:auto}}
@media(max-width:620px){
 .brand{height:auto}
 .brand img{width:100%;height:auto;aspect-ratio:1159/138}
 .toprow{gap:8px;padding:9px 0}
 .toprow>div:first-child{width:100%;line-height:1.45}
 .searchbox{width:calc(100% - 90px);min-width:0}
 .toprow>div:last-child{white-space:nowrap}
 .navinner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}
 .nav a{min-width:0;min-height:49px;display:flex;align-items:center;justify-content:center;font-size:12px;padding:9px 3px;line-height:1.2}
 .panels{gap:10px;margin:10px 0 15px}
 .panels .hero{min-height:0}
 .hero img{aspect-ratio:535/209}
 .marketline{gap:8px;font-size:13px}
 .side{grid-template-columns:1fr 1fr;align-items:start}
 .contenthead h1{font-size:20px}
 .ticker{justify-content:flex-start;gap:20px;padding:9px 3px;font-size:13px}
 .threadtable{min-width:690px}
}


/* OTCLOUNGE editorial mockup matching layout */
.editorial{padding-top:16px;padding-bottom:28px}.news-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}.news-panel{background:linear-gradient(135deg,#181c22,#050609 60%);border:1px solid #8894a0;border-radius:8px;padding:12px;box-shadow:inset 0 0 15px #222c37}.news-title{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #f86d0d;padding:4px 8px 13px;gap:12px}.news-title h1,.section-heading{font-size:25px;font-style:italic;margin:0;color:#fff}.news-title span{background:#e50065;padding:7px 12px;border-radius:5px;font-weight:bold;white-space:nowrap}.news-list{padding:7px 0}.news-row{display:flex;align-items:center;gap:13px;min-height:82px;padding:8px;border-bottom:1px solid #555c65}.news-row:hover{background:#20252b}.news-thumb{width:110px;height:63px;flex:none;overflow:hidden;border-radius:4px;border:1px solid #666}.news-thumb img{width:100%;height:100%;object-fit:cover}.news-info{flex:1;min-width:0}.news-info strong{display:block;font-size:16px;line-height:1.3}.news-info small{display:block;color:#bec6cd;margin-top:5px;line-height:1.3}.news-date{color:#c5c9d0;white-space:nowrap;font-size:12px}.news-arrow{color:#ff8a13;font-size:20px}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:14px 4px}.featured-card{border:1px solid #6b7782;border-radius:7px;overflow:hidden;background:#0d1116}.featured-card:first-child{grid-column:span 2;grid-row:span 2}.featured-card img{width:100%;height:160px;object-fit:cover;display:block}.featured-card:first-child img{height:340px}.featured-card div{padding:12px}.featured-card strong{display:block;font-size:17px;line-height:1.3}.featured-card:first-child strong{font-size:22px}.featured-card small{display:block;color:#bfc8d0;margin-top:7px}.featured-card:hover strong{color:#ffad36}.news-aside{display:grid;gap:14px}.side-news{border-color:#ec8a23}.side-news h2{font-size:19px;font-style:italic;margin:0 0 5px;border-bottom:1px solid #f08318;padding-bottom:9px}.side-news .news-row{min-height:68px;padding:6px 0;gap:8px}.side-news .news-thumb{width:75px;height:50px}.side-news .news-info strong{font-size:13px}.side-news .news-info small{display:none}.side-news .news-date{display:none}.ticker-item{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #555;padding:8px 0;font-size:13px}.ticker-item span{color:#00ed6c}.full-story{padding:20px}.full-story h1{font-size:clamp(27px,3.2vw,44px);line-height:1.13;margin:12px 0}.story-tag{display:inline-block;background:#eb0869;padding:6px 12px;font-weight:bold;font-style:italic}.story-meta{color:#c7cbd2;border-bottom:1px solid #50555d;padding-bottom:12px}.story-image{width:100%;max-height:450px;object-fit:cover;border-radius:7px}.story-copy{font-size:17px;line-height:1.7}.story-copy h2{color:#ffc52b}.story-disclaimer{padding:13px;border:1px solid #a26b22;background:#241c10;color:#ddd;font-size:13px}.section-heading{margin:22px 0 5px;border-bottom:1px solid #ff8d19;padding-bottom:10px}
@media(max-width:920px){.news-layout{grid-template-columns:1fr}.news-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-card:first-child{grid-column:span 2;grid-row:auto}.featured-card:first-child img{height:240px}}
@media(max-width:620px){.navinner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.nav a{font-size:10px;padding:12px 2px;min-height:44px}.editorial{padding-top:10px}.news-title h1{font-size:19px}.news-title span{font-size:11px;padding:6px}.news-panel{padding:8px}.news-row{gap:8px;min-height:78px;padding:7px 2px}.news-thumb{width:82px;height:58px}.news-info strong{font-size:13px}.news-info small{font-size:11px}.news-date{display:none}.featured-grid{gap:8px}.featured-card img{height:120px}.featured-card:first-child img{height:190px}.featured-card strong,.featured-card:first-child strong{font-size:14px}.news-aside{grid-template-columns:1fr}.full-story{padding:14px}.story-copy{font-size:15px}.side-news .news-date{display:none}}

/* v2.1: market alert removed, homepage latest stories */
.panels{grid-template-columns:minmax(0,2fr) minmax(250px,1fr)}.panels .hero{grid-column:auto}.home-articles{margin:20px 0}.home-articles .news-title h2{font-size:23px;margin:0;font-style:italic}.home-articles .news-title a{color:#ffb32b;font-weight:bold;font-size:12px}.home-articles .news-list{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}@media(max-width:900px){.panels{grid-template-columns:1fr}.panels .hero{grid-column:auto}.home-articles .news-list{grid-template-columns:1fr}}@media(max-width:620px){.panels{grid-template-columns:1fr}.home-articles .news-title h2{font-size:19px}}

/* v2.2: newsletter follows forum content on phones; desktop placement unchanged */
.mobile-newsletter{display:none}
@media(max-width:620px){.desktop-newsletter{display:none!important}.mobile-newsletter{display:block;margin:18px 0 22px}.mobile-newsletter .subscribe{width:100%}}

/* v2.3: true phone-width forum, discussion-first order, subscription after forum */
@media (max-width:620px){
 html,body{max-width:100%;overflow-x:hidden}
 .wrap{width:100%;max-width:100%;min-width:0;padding-left:10px;padding-right:10px}
 .maincols{display:flex;flex-direction:column;gap:12px;min-width:0}
 .maincols>main{order:1;width:100%;min-width:0}
 .maincols>.side{order:2;width:100%;min-width:0;display:flex;flex-direction:column;gap:12px}
 .side .panel{width:100%;min-width:0;margin:0}
 .side .promo{display:none}
 .tablewrap{width:100%;max-width:100%;overflow-x:visible}
 .threadtable{display:block;min-width:0!important;width:100%;border-collapse:separate}
 .threadtable thead{display:none}
 .threadtable tbody{display:block;width:100%}
 .threadtable tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;padding:12px;border-bottom:1px solid #46515c;width:100%;min-width:0}
 .threadtable td{display:block;min-width:0;min-height:0;border:0;padding:0!important;font-size:12px;overflow-wrap:anywhere}
 .threadtable td.topic{grid-column:1/-1;min-width:0!important;font-size:15px;line-height:1.4;font-weight:700;padding-bottom:4px!important}
 .threadtable td.topic a{color:#fff}
 .threadtable td:nth-child(2){grid-column:1;grid-row:2}
 .threadtable td:nth-child(3){grid-column:2;grid-row:2;text-align:right;color:#c8d0d7}
 .threadtable td:nth-child(4){grid-column:1;grid-row:3;color:#bfc7d0}
 .threadtable td:nth-child(4)::before{content:'Replies: ';color:#8f9da8}
 .threadtable td:nth-child(5){display:none}
 .threadtable td:nth-child(6){grid-column:2;grid-row:3;text-align:right;font-size:11px;white-space:normal}
 .contenthead{flex-wrap:wrap;padding:10px;gap:8px}
 .contenthead h1{font-size:19px}
 .contenthead .pinkbtn{font-size:12px;padding:8px}
 .mobile-newsletter{display:block;clear:both;margin:14px 0 22px}
 .mobile-newsletter .subscribe{width:100%;max-width:100%}
 .home-articles{clear:both}
 .navinner{width:100%}
 .nav a{overflow-wrap:anywhere}
}
