/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: #f2f4f7;
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
}
img { max-width: 100%; height: auto; }
a { color: #1c7ed6; }

h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    color: #1a202c;
    font-weight: 700;
    margin: 1.2em 0 0.5em;
}
h1 { font-size: 34px; line-height: 1.4; margin-top: 0; }
h2 { font-size: 28px; line-height: 1.4; }
h3 { font-size: 24px; line-height: 1.4; }
h4 { font-size: 22px; line-height: 1.4; }

.page-container { max-width: 824px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.site-header {
    background: #17142e;
    padding: 16px 0;
}
.site-header .page-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1024px;
}
.site-header .logo img { width: 112px; height: auto; display: block; }
.about-btn {
    background: #7e47f3;
    color: #fff;
    border: none;
    border-radius: 500px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Main content card ===== */
.site-main {
    padding: 32px 0 48px;
}
.entry {
    background: #f2f4f7;
}
.entry-content {
    padding: 0 0 1rem;
}

/* ===== Search ===== */
.search-form {
    color: #1c7ed6;
    border: 3px solid #1c7ed6;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    font-size: 16px;
    border-radius: 25px;
    background: #fff;
    margin: 0 auto 20px;
}
#post-search {
    color: #1c7ed6;
    flex: 1;
    height: 100%;
    margin: 0 5px 0 10px;
    background: transparent;
    border: none;
    font-size: 15px;
    padding: 10px 0;
}
#post-search::placeholder { color: #1c7ed6; }
#post-search:focus { outline: none; }
#search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 15px;
    margin: 5px;
    padding: 0 14px;
    background: #1c7ed6;
    border-radius: 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Script cards (post-item) ===== */
.post-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.title-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.title { font-size: 24px; margin: 0; color: #333; font-weight: bold; line-height: normal; }
.date-icon { display: flex; align-items: center; gap: 8px; }
.clock-icon { width: 13px; height: 13px; fill: #999; }
.date-text { color: #999; font-size: 14px; }

.features { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #444; }
.tick-icon { width: 14px; height: 14px; fill: #1c7ed6; flex-shrink: 0; }

.script-cont { background: #f9f9f9; padding: 15px; border: 1px solid #ddd; border-radius: 8px; position: relative; color: #333; }
.script-cont .script-text {
    font-size: 15px; white-space: pre-wrap; word-break: break-word; margin: 0 0 12px;
    background: #f4f4f4; padding: 10px; border-radius: 5px; color: #000;
    font-family: 'Courier New', monospace; max-height: 150px; overflow: auto;
}
.script-cont .copy-script {
    background: #007bff; color: #fff; border: none; padding: 8px 12px;
    border-radius: 5px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.script-cont .copy-script:hover { background: #0056b3; }
.s-status {
    position: absolute; top: -10px; left: 15px; font-size: 14px; color: green; font-weight: bold;
    display: none; background: #d4edda; border: 1px solid #c3e6cb; padding: 5px 10px; border-radius: 5px;
}
.s-status.visible { display: block; }

#post-count { text-align: center; margin-top: 10px; color: #666; font-size: 15px; }
.pagination { display: flex; justify-content: center; margin-top: 16px; }
#load-more {
    background: #1c7ed6; color: #fff; border: none; border-radius: 65px;
    padding: 10px 28px; font-size: 15px; cursor: pointer; font-family: inherit;
}

/* ===== Support list (single-script pages) ===== */
.support-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* ===== Category listing (blog / scripts) ===== */
.category-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.category-card {
    display: block; background: #fff; padding: 20px; border-radius: 10px;
    text-decoration: none; color: inherit; transition: box-shadow 0.15s ease;
}
.category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.category-card h2 { margin: 0 0 6px; font-size: 22px; color: #1c7ed6; }
.category-card p { margin: 0; font-size: 15px; color: #444; }

/* ===== Article body ===== */
.article-body p { margin: 0 0 28px; }

/* ===== Icon list (how-to steps) ===== */
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 15px; color: #2d3748;
}
.icon-list svg { width: 15px; height: 15px; fill: #2d3748; flex-shrink: 0; margin-top: 4px; }

/* ===== Gallery / carousel ===== */
.gallery-carousel { position: relative; margin-bottom: 24px; border-radius: 4px; overflow: hidden; }
.gallery-carousel .slide { display: none; }
.gallery-carousel .slide.active { display: block; }
.gallery-carousel .slide img { width: 100%; display: block; }
.gallery-carousel .arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
}
.gallery-carousel .arrow.prev { left: 12px; }
.gallery-carousel .arrow.next { right: 12px; }
.gallery-carousel .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-carousel .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.3); }
.gallery-carousel .dots span.active { background: rgba(0,0,0,0.8); }

/* ===== FAQ accordion ===== */
.faq-accordion { margin: 16px 0; }
.faq-item { margin-bottom: 4px; }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: #08003a; color: #fff; border: none; text-align: left;
    padding: 20px 14px; font-size: 18px; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.faq-item.open .faq-question { border-radius: 6px 6px 0 0; }
.faq-question .faq-icon { font-size: 20px; margin-left: 12px; flex-shrink: 0; }
.faq-answer { display: none; background: #fff; padding: 20px; border-radius: 0 0 6px 6px; font-size: 16px; }
.faq-item.open .faq-answer { display: block; }

/* ===== Footer ===== */
.site-footer { background: #111827; padding: 24px 0; margin-top: 32px; }
.site-footer .page-container {
    max-width: 980px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer .copyright { color: #9ca3af; font-size: 14px; margin: 0; }
.site-footer .footer-nav { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-nav a { color: #9ca3af; font-size: 14px; text-decoration: none; }
.site-footer .footer-nav a:hover { color: #fff; }
.site-footer .social-links { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.site-footer .social-links a { color: #fff; display: flex; }
.site-footer .social-links svg { width: 24px; height: 24px; fill: currentColor; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .site-main { padding: 20px 0 32px; }
    .features { gap: 8px; }
}
