/* =========================
   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:#f5f5f5;
    color:#111;
    -webkit-font-smoothing:antialiased;
}

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

main{
    background:#f5f5f5;
    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;
}

/* =========================
   CATEGORY (NEW ADD)
========================= */
.category{
    margin:10px 0;
}

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

.category a i{
    color:#ff9800;
}

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

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

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

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

.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:#eee;
    padding:5px 10px;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
    color:#333;
    transition:0.3s;
}

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

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

.comment-box input,
.comment-box textarea{
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:1px solid #ccc;
    border-radius:5px;
    outline:none;
}

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

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

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

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

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

.comment p{
    margin:8px 0;
}

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

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

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

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

.reply-form input,
.reply-form textarea{
    width:100%;
    padding:8px;
    margin-bottom:8px;
    border:1px solid #ccc;
    border-radius:5px;
    outline:none;
}

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

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

button:hover{
    opacity:0.9;
}

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

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

.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:0.3s;
}

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

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

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

/* =========================
   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:#111;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,0.3);
}

.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,0.2);
    transition:0.3s;
}

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

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

/* =========================
   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;
    }
}