/* =========================
   RESET (VERY IMPORTANT)
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body{
    overflow-x:hidden;
    scroll-behavior:smooth;
}

/* =========================
   GENERAL
========================= */
body{
    font-family:Arial,sans-serif;
    background:#0f172a;
    color:#e2e8f0;
    -webkit-font-smoothing:antialiased;
}

.container{
    width:100%;
    max-width:1100px;
    margin:auto;
    padding:15px;
}

main{
    background:#0f172a;
    padding:20px;
    border-radius:0;
    width:100%;
}

/* =========================
   POST
========================= */
.post-thumb img{
    width:100%;
    max-height:450px;
    object-fit:cover;
    border-radius:0;
    display:block;
}

h1{
    font-size:26px;
    margin-top:15px;
    word-break:break-word;
    line-height:1.3;
    color:#f8fafc;
}

/* =========================
   CATEGORY
========================= */
.category{
    margin:10px 0;
}

.category a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#1e293b;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
    color:#cbd5e1;
    transition:.3s;
}

.category a i{
    color:#f59e0b;
}

.category a:hover{
    background:#334155;
}

/* =========================
   META
========================= */
.meta{
    font-size:14px;
    color:#94a3b8;
    margin-top:5px;
}

.meta i{
    margin-right:5px;
}

/* =========================
   CONTENT
========================= */
.content{
    line-height:1.8;
    margin-top:15px;
    word-break:break-word;
    font-size:16px;
    color:#e2e8f0;
}

.content img{
    max-width:100%;
    height:auto;
    border-radius:6px;
}

/* =========================
   TAGS
========================= */
.tags{
    margin-top:15px;
}

.tags a{
    display:inline-block;
    margin:5px 5px 0 0;
    background:#1e293b;
    padding:5px 10px;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
    color:#60a5fa;
    transition:.3s;
}

.tags a:hover{
    background:#334155;
}

/* =========================
   COMMENT BOX
========================= */
.comment-box{
    margin-top:30px;
    padding:20px;
    border:1px solid #334155;
    border-radius:10px;
    background:#1e293b;
}

.comment-box input,
.comment-box textarea{
    width:100%;
    padding:10px;
    margin-bottom:10px;
    background:#0f172a;
    color:#e2e8f0;
    border:1px solid #334155;
    border-radius:5px;
    outline:none;
}

.comment-box button{
    background:#2563eb;
    color:#fff;
    padding:10px 15px;
    border:none;
    cursor:pointer;
    border-radius:5px;
}

/* =========================
   COMMENTS
========================= */
.comments{
    margin-top:25px;
}

.comment{
    background:#1e293b;
    border-bottom:1px solid #334155;
    padding:12px 0;
    word-break:break-word;
}

.comment strong{
    font-size:14px;
    color:#f8fafc;
}

.comment small{
    font-size:12px;
    color:#94a3b8;
}

.comment p{
    margin:8px 0;
    color:#e2e8f0;
}

/* =========================
   REPLIES
========================= */
.replies{
    margin-left:15px;
    margin-top:10px;
    border-left:2px solid #334155;
    padding-left:10px;
}

.comment.reply{
    background:#334155;
    padding:10px;
    border-radius:6px;
    margin-top:10px;
}

/* =========================
   REPLY FORM
========================= */
.reply-form{
    display:none;
    margin-top:10px;
    background:#1e293b;
    padding:10px;
    border-radius:8px;
    border:1px solid #334155;
}

.reply-form.active{
    display:block;
}

.reply-form input,
.reply-form textarea{
    width:100%;
    padding:8px;
    margin-bottom:8px;
    background:#0f172a;
    color:#e2e8f0;
    border:1px solid #334155;
    border-radius:5px;
    outline:none;
}

.reply-form button{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:7px 12px;
    border-radius:5px;
    cursor:pointer;
}

/* =========================
   BUTTONS
========================= */
button{
    cursor:pointer;
    transition:.3s;
}

button:hover{
    opacity:.9;
}

/* =========================
   RELATED POSTS
========================= */
.related-posts{
    margin-top:30px;
}

.related-posts h3{
    margin-bottom:10px;
    color:#f8fafc;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:15px;
}

.related-grid a{
    text-decoration:none;
}

.related-grid a:hover{
    transform:translateY(-2px);
    transition:.3s;
}

.related-item,
.related-grid a{
    background:#1e293b;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 6px rgba(0,0,0,.4);
}

.related-grid img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
}

.related-grid p{
    padding:8px;
    font-size:14px;
    color:#e2e8f0;
}

/* =========================
   SHARE BUTTON
========================= */
.share-wrapper{
    position:fixed;
    right:15px;
    bottom:30px;
    z-index:9999;
}

.share-main{
    width:55px;
    height:55px;
    border-radius:50%;
    border:none;
    background:#2563eb;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.5);
}

.floating-share{
    position:absolute;
    bottom:70px;
    right:0;
    display:none;
    flex-direction:column;
    gap:10px;
}

.floating-share.active{
    display:flex;
}

.fs{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    text-decoration:none;
    font-size:18px;
    box-shadow:0 3px 10px rgba(0,0,0,.4);
    transition:.3s;
}

.fs:hover{
    transform:scale(1.1);
}

.wa{background:#25D366;}
.fb{background:#1877F2;}
.tw{background:#1DA1F2;}
.copy{
    background:#475569;
    border:none;
    cursor:pointer;
}

/* LINKS */
a{
    color:#60a5fa;
}

a:hover{
    color:#93c5fd;
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .container{
        padding:8px;
    }

    h1{
        font-size:20px;
    }

    .post-thumb img{
        max-height:250px;
    }

    .related-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .category a{
        font-size:12px;
        padding:5px 10px;
    }
}