* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #eaeaea;
    min-height: 100vh;
}
.header {
    padding: 20px;
    text-align: center;
}
.header input {
    width: 60%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 15px;
}
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 20px;
}
.sidebar {
    width: 260px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: fit-content;
}
.tag {
    background: #1abc9c;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}
.tag:hover,
.tag.active {
    background: #1234f3;
}
.posts {
    flex: 1;
}
.post {
    background: #ffffff;
    color: #222;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.post h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.post p {
    font-size: 13px;
    line-height: 1.5;
}
.post-tags {
    margin-top: 8px;
}
.post-tags span {
    font-size: 11px;
    margin-right: 4px;
    color: #16a085;
}
.actions {
    margin-top: 8px;
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #555;
}
.actions i {
    color: #1abc9c;
}
.footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
}
@media (max-width: 992px) {
    .layout {
        grid-template-columns: 200px 1fr;
    }
.header input {
        width: 80%;
    }
}
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 100%;
        justify-content: center;
    } 
    .header input {
        width: 95%;
    }
    .post {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    .actions {
        font-size: 12px;
    }
}
