/* ================= COMMUNITY CONTROLS ================= */

.create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff5a36, #ff7b29);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 16px 32px rgba(255, 90, 54, 0.22);
}

.create-btn:hover {
    transform: translateY(-2px);
}

.community-layout{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(280px,0.8fr);
    gap:24px;
    align-items:start;
}

.community-main{
    min-width:0;
}

.community-sidebar{
    position:sticky;
    top:110px;
}

.community-interactive-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.community-stat-card{
    padding:24px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,0.08);
    background:linear-gradient(160deg,#101010,#171717);
    box-shadow:0 18px 44px rgba(0,0,0,0.22);
}

.community-stat-card span{
    display:block;
    margin-bottom:10px;
    color:#ff9a9a;
    font-size:12px;
    letter-spacing:0.18em;
    text-transform:uppercase;
}

.community-stat-card strong{
    display:block;
    font-size:30px;
    color:#fff;
    margin-bottom:8px;
}

.community-stat-card p{
    margin:0;
    color:#c5c5c5;
    line-height:1.7;
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.filter-bar input {
    background: #1c1c1c;
    color: white;
    border: 1px solid #333;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    width: min(320px, 100%);
}

.filter-bar button {
    background: linear-gradient(135deg, #ff5a36, #ff7b29);
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.community-quick-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:14px;
}

.community-quick-chip{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:9px 13px;
    border-radius:999px;
    color:#d9d9d9;
    text-decoration:none;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    font-size:13px;
    transition:0.25s;
}

.active-community-chip{
    color:#fff;
    border-color:rgba(255,90,54,0.78);
    background:rgba(255,90,54,0.14);
}

.community-quick-chip:hover{
    color:#fff;
    border-color:#ff5a36;
    transform:translateY(-1px);
}

.sort-btn {
    background: #222;
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.sort-btn:hover {
    background: #ff3b3b;
}

.active-sort {
    background: #ff3b3b !important;
    color: white !important;
}

.community-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.community-topic-row,
.community-topic-stack{
    display:grid;
    gap:12px;
}

.community-topic-row{
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
}

.community-topic-chip,
.community-starter-card,
.community-contributor-card{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.03);
    color:#fff;
    text-decoration:none;
    transition:0.25s;
}

.community-topic-chip:hover,
.community-starter-card:hover,
.community-contributor-card:hover{
    transform:translateY(-2px);
    border-color:#ff3b3b;
}

.community-topic-chip strong,
.community-contributor-card h3{
    margin:0;
    font-size:16px;
}

.community-topic-chip span,
.community-contributor-card p{
    color:#bdbdbd;
    font-size:13px;
}

.community-starter-card{
    display:block;
    color:#d9d9d9;
    line-height:1.7;
}

.community-starter-card strong,
.community-starter-card span{
    display:block;
}

.community-starter-card span{
    margin-top:4px;
    color:#a9a9a9;
    font-size:13px;
}

.community-contributor-score{
    white-space:nowrap;
    color:#ffcc66;
    font-weight:700;
}

.reply-card{
    display:block;
}

.nested-reply{
    margin-top:12px;
    margin-left:18px;
    border-left:3px solid rgba(255,90,54,0.55);
}

.inline-reply-form{
    display:grid;
    gap:10px;
    margin-top:14px;
}

.inline-reply-form textarea{
    min-height:72px;
    resize:vertical;
}

.video-reply-stack{
    display:grid;
    gap:12px;
    margin:18px 0;
}

/* ================= COMMUNITY POSTS ================= */

.post-card{
background:linear-gradient(180deg,#141414,#0c0c0c);
border:1px solid #222;
border-radius:20px;
padding:22px;
margin-bottom:20px;
transition:all 0.3s ease;
}

.post-card:hover{
border-color:#ff3b3b;
box-shadow:0 0 20px rgba(255,59,59,0.25);
}

.post-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:14px;
}

.author-left{
display:flex;
align-items:center;
gap:12px;
}

.author-avatar{
width:44px;
height:44px;
border-radius:50%;
object-fit:cover;
border:2px solid #ff3b3b;
}

.author-avatar-letter{
width:44px;
height:44px;
border-radius:50%;
background:#ff3b3b;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-weight:600;
}

.author-info{
display:flex;
flex-direction:column;
}

.author-name{
font-weight:600;
color:white;
display:flex;
gap:8px;
}

.author-badge{
background:#1f1f1f;
padding:2px 8px;
border-radius:10px;
font-size:12px;
color:#aaa;
}

.author-location{
font-size:12px;
color:#888;
}

.author-reputation{
margin-left:6px;
color:#ffcc66;
}

.post-title{
margin:6px 0 10px 0;
font-size:20px;
}

.post-title a{
color:white;
text-decoration:none;
}

.post-title a:hover{
color:#ff3b3b;
}

.post-preview{
color:#aaa;
font-size:14px;
line-height:1.7;
}

.post-community-pill{
display:inline-flex;
align-items:center;
gap:8px;
width:max-content;
max-width:100%;
margin-bottom:10px;
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.09);
color:#ffd0c5;
font-size:13px;
font-weight:700;
text-decoration:none;
}

.post-community-pill:hover{
border-color:#ff5a36;
color:#fff;
}

.reply-preview-stack{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
margin-top:14px;
}

.top-reply{
padding:12px;
background:#0f0f0f;
border-radius:12px;
border-left:3px solid #ff3b3b;
min-width:0;
}

.top-reply-label{
font-size:12px;
color:#ff3b3b;
font-weight:600;
}

.post-actions{
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

.vote-btn{
background:#1a1a1a;
padding:8px 14px;
border-radius:999px;
text-decoration:none;
color:#aaa;
font-size:14px;
display:inline-flex;
align-items:center;
gap:8px;
min-height:40px;
}

.ampyan-boost-btn{
background:linear-gradient(135deg,rgba(255,90,54,0.14),rgba(255,204,102,0.1));
border:1px solid rgba(255,204,102,0.22);
color:#ffcc66;
font-weight:800;
}

.vote-btn:hover,
.vote-btn.voted{
background:linear-gradient(135deg,#ff5a36,#ffcc66);
color:white;
}

.reply-count{
color:#888;
font-size:14px;
text-decoration:none;
display:inline-flex;
align-items:center;
gap:8px;
min-height:40px;
}

.reply-count:hover{
color:white;
}

.community-icon-action{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:42px;
padding:10px 14px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.12);
background:#141414;
color:#f5f5f5;
font-size:14px;
font-weight:800;
text-decoration:none;
cursor:pointer;
white-space:nowrap;
}

.community-icon-action:hover{
border-color:#ff5a36;
background:#1c1c1c;
color:#fff;
}

.danger-action{
border-color:rgba(255,59,59,0.34);
background:rgba(255,59,59,0.1);
color:#ffd4d4;
}

.danger-action:hover{
background:rgba(255,59,59,0.2);
}

.social-share-panel{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
margin:18px 0 22px;
padding:12px;
border-radius:16px;
border:1px solid rgba(255,255,255,0.08);
background:rgba(255,255,255,0.035);
}

.social-share-label{
color:#f1f1f1;
font-size:13px;
font-weight:800;
text-transform:uppercase;
letter-spacing:0.08em;
margin-right:2px;
}

.social-share-action{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:40px;
padding:9px 12px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.1);
background:#111;
color:#fff;
font-size:13px;
font-weight:800;
line-height:1;
text-decoration:none;
cursor:pointer;
}

.social-share-action:hover{
transform:translateY(-1px);
border-color:rgba(255,255,255,0.22);
}

.facebook-share{
background:#1877f2;
}

.whatsapp-share{
background:#1da851;
}

.x-share{
background:#050505;
}

.instagram-share{
background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af);
}

.copy-share-btn{
background:#1f1f1f;
}

.story-card-share{
background:linear-gradient(135deg,#ff5a36,#ffb347);
}

.car-community-form{
display:grid;
gap:10px;
}

.car-community-form input{
width:100%;
padding:12px 14px;
border-radius:10px;
border:1px solid #333;
background:#151515;
color:#fff;
}

.car-community-form button{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
border:0;
border-radius:12px;
padding:12px 14px;
background:linear-gradient(135deg,#ff5a36,#ff7b29);
color:#fff;
font-weight:800;
cursor:pointer;
}

/* ================= CREATE POST PREMIUM ================= */

.create-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.create-card {
    width: 100%;
    max-width: 700px;
    background: #111;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.08);
}

.create-card h2 {
    margin-bottom: 5px;
    font-size: 28px;
}

.create-sub {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 30px;
}

.create-label{
display:block;
margin-bottom:8px;
color:#cfcfcf;
font-size:13px;
font-weight:700;
}

.create-card input,
.create-card textarea,
.create-card select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
}

@media(max-width:768px){
.community-layout,
.community-interactive-grid{
grid-template-columns:1fr;
}

.community-sidebar{
position:static;
}

.filter-bar{
flex-direction:column;
align-items:stretch;
}

.filter-bar input,
.filter-bar button,
.sort-btn{
width:100%;
margin-left:0;
text-align:center;
}

.author-name{
flex-wrap:wrap;
}

.reply-preview-stack{
grid-template-columns:1fr;
}

.community-icon-action span{
display:none;
}
}
