
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #160909;
    color: #eee;
    font-family: Arial, sans-serif;
}

.topbar {
    background: #101116;
    border-bottom: 1px solid #444;
    min-height: 48px;
    padding: 8px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    color: #ff3333;
    font-weight: 900;
    text-decoration: none;
}

.search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search input {
    width: 200px;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    box-sizing: border-box;
}

input, textarea, select {
    background: #171922;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    margin: 7px 0 15px;
}

button {
    cursor: pointer;
}

.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border-radius:8px;border:1px solid transparent;cursor:pointer;text-decoration:none;font-weight:600}
.back{background:#2b2d36;color:#fff;border:1px solid var(--line);margin:18px 0;display:inline-block}

.search button {
    width: 42px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #292b34;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

.heading {
    text-align: center;
}

.welcome {
    background: #191b24;
    text-align: center;
    padding: 12px;
    border: 1px solid #393943;
    border-radius: 7px;
    margin-bottom: 15px;
    color: #bbb;
    overflow: hidden;
    white-space: nowrap;
}

.welcome-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.post-card {
    background: #292b34;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #393943;
}

.post-card img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    object-fit: cover;
    display: block;
}

.no-image {
    aspect-ratio: 1.65 / 1;
    background: #511414;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.post-info {
    padding: 12px;
}

.post-info h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.post-info small {
    color: #aaa;
}

.post-info p {
    color: #ccc;
    font-size: 12px;
    line-height: 1.5;
    min-height: 36px;
}

.read-btn {
    display: block;
    background: #2860ed;
    color: white;
    padding: 12px;
    border: 0;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.read-btn:hover {
    background: #1748c9;
}

.article, .admin-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.article {
    background: #292b34;
    border-radius: 10px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin: 20px 0;
}

.article-content {
    line-height: 1.8;
    white-space: normal;
    margin: 20px 0;
}

.description {
    color: #ccc;
}

.back {
    color: #80aaff;
    text-decoration: none;
}

.login-box {
    width: min(400px, 90%);
    margin: 100px auto;
    background: #292b34;
    padding: 25px;
    border-radius: 10px;
}

.login-box h2 {
    text-align: center;
}

.error {
    color: #ff6666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stats div {
    background: #292b34;
    padding: 20px;
    border-radius: 8px;
}

.stats strong {
    display: block;
    font-size: 28px;
    color: #ff4444;
    margin-top: 10px;
}

.add-btn {
    max-width: 200px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    background: #292b34;
}

th, td {
    padding: 13px;
    border-bottom: 1px solid #444;
    text-align: left;
}

td a {
    color: #80aaff;
}

.delete-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 7px;
    border-radius: 5px;
}

.empty {
    text-align: center;
    color: #aaa;
}

@media(max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 500px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .post-info {
        padding: 8px;
    }

    .post-info h3 {
        font-size: 12px;
    }

    .post-info p {
        font-size: 11px;
    }

    .topbar {
        padding: 10px;
    }

    .search input {
        width: 120px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.bt-bottom{max-width:980px;margin:36px auto 56px;line-height:1.75;color:#e9eaee}
.bt-divider{height:1px;border:0;margin:0 0 24px;background:
  linear-gradient(90deg,transparent,#ffd86b,transparent)}
.bt-badge{
  width:84px;height:84px;margin:4px auto 10px;border-radius:50%;
  background:
    url("https://blogger.googleusercontent.com/img/a/AVvXsEj2uNBxpYpkpk3zBrv5U5pPyWoEdEE8rDhBlhvs3L8TYUbIpN2vYJTNg1uwJzzdEYmpvS_9JgsKmpyU3xjOnCgMUGNO72Mmhrbm-Je5LAXmpDx9_xeBLMI01wOXXsrSogdpbGjVZHwtOVYAorwGD7QNCqIzyGlIlWsh__CO4Bu1TyyEnuxybDSCUzwJQEuM")
      center/contain no-repeat,
    radial-gradient(60px 60px at 50% 50%, #1b1e27, #0f1117);
  border:3px solid var(--gold);
  box-shadow:0 0 16px rgba(225,182,76,.55), inset 0 0 6px rgba(0,0,0,.45)
}
.bt-h2{margin:0 0 10px;text-align:center;font-size:22px;font-weight:800;letter-spacing:.3px}
.bt-list{margin:0 0 18px 0;padding:0;list-style:none}
.bt-list li{margin:6px 0;padding-left:26px;position:relative}
.bt-list li::before{content:"•";position:absolute;left:10px;top:-1px;color:var(--gold);font-weight:900}
.bt-title{margin:18px 0 6px;font-size:26px;font-weight:900;letter-spacing:.2px}
.bt-lead{color:#cbd0dc;margin:0 0 12px}
.bt-sub{margin:18px 0 6px;font-size:20px;font-weight:800}
.bt-copy{
  margin-top:24px;padding-top:16px;border-top:1px solid var(--line);
  text-align:center;color:#9aa0ae;font-size:12px
}
