/*
Theme Name: TarinShow Lite
Theme URI: https://tarinshow.com/
Author: TarinShow
Description: Lightweight base theme for TarinShow. The TarinShow Topics plugin provides the site's custom header, footer, topic and subtopic UI.
Version: 0.1.2-test
Text Domain: tarinshow-lite
*/

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #142746;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.7;
}
body > #page { min-height: 100vh; width: 100%; display: flex; flex-direction: column; }
#content { flex: 1 0 auto; width: 100%; }
.site-main { width: 100%; }
.site-footer, #colophon { flex-shrink: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Keep WordPress admin-bar spacing predictable without adding theme chrome. */
body.admin-bar .ts-custom-site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .ts-custom-site-header { top: 46px; }
}


/* Search modal */
.ts-search-modal[hidden] { display: none !important; }
.ts-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 20px 30px;
}
.ts-search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 24, 45, .48);
}
.ts-search-modal-box {
    position: relative;
    width: min(620px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    direction: rtl;
}
.ts-search-modal-box h2 { margin: 0 0 18px; font-size: 22px; color: #142746; }
.ts-search-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #52627a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ts-search-modal-close:hover { background: #f1f4f8; color: #142746; }
.ts-search-modal-form { display: flex; gap: 10px; }
.ts-search-modal-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 16px;
    color: #142746;
    background: #fff;
    outline: none;
}
.ts-search-modal-form input:focus { border-color: #8aa1bf; box-shadow: 0 0 0 3px rgba(75, 105, 145, .10); }
.ts-search-modal-form button {
    height: 48px;
    border: 0;
    border-radius: 9px;
    padding: 0 22px;
    background: #142746;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}
.ts-search-modal-form button:hover { opacity: .9; }
body.ts-search-modal-open { overflow: hidden; }
@media (max-width: 600px) {
    .ts-search-modal { padding: 7vh 14px 20px; }
    .ts-search-modal-box { padding: 24px 16px 18px; border-radius: 12px; }
    .ts-search-modal-form { flex-direction: column; }
    .ts-search-modal-form button { width: 100%; }
}
