/*
Theme Name: TLTStudio
Theme URI: https://tltstudio.local
Author: Dark Corners
Version: 1.0
Text Domain: tltstudio
*/

body {background: #111111; color: #C4C4C4;}
html, body {margin: 0;}
.page-bg {position: fixed; inset: 0; z-index: -1; overflow: hidden;}
.page-image {position: absolute; inset: -50px; will-change: transform;}
.page-image img {width: 100%; height: 100%; object-fit: cover;}
.page-overlay {position: absolute; inset: 0; background: rgba(19, 23, 34, 0.7); z-index: 2;}

/* =========================
   HEADER LAYOUT
========================= */
.site-header {background: #0000009e; position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); height: 80px; border-radius: 10px; z-index: 1000; display: flex; align-items: center;}
.header-inner {max-width: 1200px; padding: 0 30px; width: 100%; display: flex; align-items: center; justify-content: space-between;}
.site-header a {color: #fff; text-decoration: none;}
.site-logo {font-size: 22px; font-weight: bold; color: #fff; text-decoration: none;}
.main-nav .menu {display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;}
.main-nav .menu > li {position: relative;}
.main-nav .menu > li > a {color: #fff; text-decoration: none; font-size: 15px; padding: 10px 0; display: inline-block;}
.main-nav .menu li a:hover {opacity: 0.7;}
.main-nav .sub-menu {position: absolute; top: 100%; left: 0; min-width: 200px; background: rgba(0,0,0,0.95); backdrop-filter: blur(6px); list-style: none; padding: 10px 0; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease;}
.main-nav .menu > li:hover > .sub-menu {opacity: 1; visibility: visible; transform: translateY(0);}
.main-nav .sub-menu li a {display: block; padding: 8px 20px; color: #fff; text-decoration: none; font-size: 14px; transition: background 0.3s ease;}
.main-nav .sub-menu li a:hover {background: rgba(255,255,255,0.1);}
.main-nav .sub-menu .sub-menu {top: 0; left: 100%;}
.main-nav .menu-item-has-children > a::after {content: " ▾"; font-size: 12px;}
.search-icon {font-size: 18px; color: #fff; text-decoration: none; transition: opacity 0.3s ease;}
.search-icon:hover {opacity: 0.7;}
.archive main, .blog main, .search main, .error404 main {padding-top: 80px;}

/* =========================
   FOOTER LAYOUT
========================= */
.tlt-footer {background: #111; color: #ccc; padding: 30px; margin-top: 20px;}
.tlt-footer-top {display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px;}
.tlt-footer-col h3 {color: #fff; margin-bottom: 20px; font-size: 18px;}
.tlt-footer-posts {list-style: none; padding: 0; margin: 0;}
.tlt-footer-posts li {display: flex; gap: 10px; margin-bottom: 15px;}
.tlt-footer-thumb img {width: 60px; height: 60px; object-fit: cover; border-radius: 6px;}
.tlt-footer-posts a {color: #ccc; font-size: 14px; text-decoration: none; line-height: 1.4;}
.tlt-footer-posts a:hover {color: #fff;}
.tlt-footer-bottom {margin-top: 40px; padding-top: 20px; border-top: 1px solid #222; max-width: 1200px; margin-left: auto; margin-right: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px;}
.tlt-footer-bottom-left {font-size: 14px; color: #aaa;}
.tlt-footer-menu {list-style: none; display: flex; gap: 20px; margin: 0; padding: 0;}
.tlt-footer-menu li a {font-size: 14px; color: #aaa; text-decoration: none; transition: color 0.3s ease;}
.tlt-footer-menu li a:hover {color: #fff;}

/* =========================
   TIMELINE FIXED BY AXIS
========================= */
.tlt-timeline {position: relative; margin: 100px 0;}
/* Vertical line */
.tlt-timeline::before {content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #444; transform: translateX(-50%);}
/* Item wrapper */
.tlt-item {position: relative; min-height: 280px; margin-bottom: 100px;}
/* CARD BASE */
.tlt-card {position: absolute; width: 360px; background: #f63131; border: 1px solid #222; border-radius: 12px; padding: 10px;}
/* ===== Connector line ===== */
.tlt-card::after {content: ""; position: absolute; top: 45px; width: 70px; height: 2px; background: #444;}
.tlt-item.left .tlt-card::after {right: -70px;}
.tlt-item.right .tlt-card::after {left: -70px;}
.tlt-item.left .tlt-card {right: calc(50% + 70px);}
.tlt-item.right .tlt-card {left: calc(50% + 70px);}
/* Image */
.tlt-card img {width: 100%; height: 350px; object-fit: cover; border-radius: 8px;}
/* Title */
.tlt-card h2 {margin-top: 10px; font-size: 18px;}
.tlt-card a {color: #fff; text-decoration: none;}
/* DOT */
.tlt-dot {position: absolute; left: 50%; top: 40px; width: 14px; height: 14px; background: #ff4444; border-radius: 50%; transform: translateX(-50%); z-index: 3;}
/* DATE */
.tlt-date {position: absolute; left: 50%; transform: translateX(-50%); background: #1a1a1a; padding: 6px 16px; border-radius: 20px; border: 1px solid #333; font-size: 13px; color: #aaa; z-index: 4;}
/* Mobile */
@media (max-width: 768px) {
    .tlt-timeline::before {left: 20px;}
    .tlt-item {min-height: auto; padding-left: 70px;}
    .tlt-card {position: relative; left: 0 !important; right: 0 !important; width: 100%;}
    .tlt-dot, .tlt-date {left: 20px; transform: none;}
}
.tlt-loadmore-wrap{text-align: center; margin-top: 220px;}
#tlt-loadmore {display: inline-block; background: #f63131; color: #fff; position: relative; overflow: hidden; z-index: 0; padding: 14px 35px; border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: color 0.4s ease;}
#tlt-loadmore::before {content: ""; position: absolute; inset: 0; width: 0; margin: auto; background-color: #ffffff; transition: width 0.4s ease; z-index: -1;}
#tlt-loadmore:hover::before {width: 120%;}
#tlt-loadmore:hover {color: #f63131; text-decoration: none;}

/* =========================
   SINGLE LAYOUT
========================= */
.tlt-single-title {background: #0000009e; padding: 10px; margin: 100px 20px 20px 20px; color: #E86200; text-align: center; border-radius: 8px;}
.tlt-single-layout {display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px; margin: 20px;}
/* LEFT */
.tlt-single-left {background: #0000009e; padding: 20px; border-radius: 8px;}
.tlt-single-image img {width: 100%; max-height: 400px; border-radius: 5px;}
.tlt-single-meta {background: #E86200; border-radius: 8px;}
.tlt-single-meta p {font-size: 14px; color: #fff; padding: 10px;}
/* CENTER */
.tlt-single-content {background: #0000009e; padding: 20px; border-radius: 8px; max-height: 600px; overflow-y: auto; overflow-x: hidden;}
.tlt-single-body {line-height: 1.8; overflow-wrap: break-word; word-break: break-word;}
.tlt-single-body img {max-width: 100%; height: auto; display: block;}
.tlt-single-body iframe {max-width: 100%;}
.tlt-single-body table {width: 100%; display: block; overflow-x: auto;}
.tlt-single-body pre {max-width: 100%; overflow-x: auto; white-space: pre; background: #0d0d0d; padding: 20px; border-radius: 8px; border: 1px solid #222;}
.tlt-single-body pre code {white-space: pre;}
.tlt-single-body a {word-break: break-all;}
.tlt-single-body > * {max-width: 100%;}
/* SIDEBAR */
.tlt-single-sidebar {background: #0000009e; padding: 20px; border-radius: 8px;}
.tlt-widget {margin-bottom: 30px;}
.tlt-widget-title {margin-bottom: 15px;}
/* COMMENTS */
.tlt-comments {background: #0000009e; margin: 20px 20px; padding: 20px; border-radius: 8px;}
.tlt-comments h2, .tlt-comments h3 {margin-bottom: 30px;}
.tlt-comments .logged-in-as {font-size: 14px; color: #aaa; margin-bottom: 20px;}
.tlt-comments textarea {width: 100%; background: #0d0d0d; border: 1px solid #222; border-radius: 8px; color: #fff; resize: vertical; min-height: 100px;}
.tlt-comments input[type="text"], .tlt-comments input[type="email"], .tlt-comments input[type="url"] {width: 100%; background: #0d0d0d; border: 1px solid #222; border-radius: 8px; padding: 12px; color: #fff; margin-bottom: 20px;}
.tlt-comments label {display: block; margin-bottom: 8px; font-size: 14px; color: #aaa;}
.tlt-comments .g-recaptcha {margin: 10px 0;}
.tlt-comments input[type="submit"] {background: linear-gradient(135deg, #ff4444, #cc0000); color: #fff; border: none; padding: 12px 35px; border-radius: 30px; cursor: pointer; font-size: 14px; transition: all .3s ease;}
.tlt-comments input[type="submit"]:hover {transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,0,0,0.3);}
/* RELATED POSTS */
.tlt-related {background: #0000009e; margin: 0 20px; padding: 25px; border-radius: 12px;}
.tlt-related h2 {margin-bottom: 20px;}
.tlt-related-grid {display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px;}
.tlt-related-item {background: #111; border: 1px solid #222; border-radius: 10px; overflow: hidden; transition: transform .3s ease, border-color .3s ease;}
.tlt-related-item:hover {transform: translateY(-4px); border-color: #333;}
.tlt-related-item .tlt-thumb {width: 100%; aspect-ratio: 16 / 9; overflow: hidden;}
.tlt-related-item .tlt-thumb img {width: 100%; height: 100%; object-fit: cover; display: block;}
.tlt-related-item h4 {padding: 12px; margin: 0; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.tlt-related-item a, .tlt-related-item a:visited {text-decoration: none; color: #fff;}
/* Responsive */
@media (max-width: 1024px) {
    .tlt-single-layout {grid-template-columns: 1fr;}
    .tlt-related-grid {grid-template-columns: 1fr;}
}

/* =========================
   PAGE LAYOUT
========================= */
.page-hero {position: relative; height: 80vh; min-height: 400px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;}
.page-hero-bg img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;}
.page-hero-overlay {position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);}
.page-hero-content {position: relative; z-index: 2; color: #fff; padding: 0 20px;}
.page-title {font-size: 42px; margin: 0;}
.page-content-section {padding: 20px;}
.page-container {margin: 20px;}

/* =========================
   ARCHIVE LAYOUT
========================= */
.archive-title {background: #0000009e; padding: 10px; margin: 20px; color: #E86200; text-align: center; border-radius: 8px;}
.archive-container {display: grid; grid-template-columns: 3fr 1fr; gap: 10px; margin: 20PX;}
.archive-content {background: #0000009e; padding: 20px; border-radius: 8px;}
.archive-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;}
.archive-item {display: block;}
.archive-card {display: block; background: #646464; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid rgba(255,255,255,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease;}
.archive-card:hover {transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4);}
.archive-thumb {width: 100%; aspect-ratio: 16 / 9; overflow: hidden;}
.archive-thumb img {width: 100%; height: 100%; object-fit: cover; display: block;}
.archive-card .archive-content {min-height: 20px; display: flex; align-items: center;}
.archive-item-title {font-size: 15px; font-weight: 600; color: #fff; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;}
.archive-card, .archive-card:visited {color: #fff;}
.archive-pagination {margin-top: 40px; display: flex; justify-content: center;}
.archive-pagination .nav-links {display: flex; gap: 10px; padding: 10px 15px; background: #111; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);}
.archive-pagination a, .archive-pagination span {padding: 8px 14px; border-radius: 6px; text-decoration: none; font-size: 14px; color: #fff; background: rgba(255,255,255,0.05); transition: background 0.3s ease;}
.archive-pagination a:hover {background: rgba(255,255,255,0.15);}
.archive-pagination .current {background: #E86200; color: #fff;}
@media (max-width: 992px) {
    .archive-container {grid-template-columns: 1fr;}
    .archive-grid {grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 600px) {
    .archive-grid {grid-template-columns: 1fr;}
}

/* =========================
   SEARCH LAYOUT
========================= */
.search-layout {padding: 0 20px;}
.search-header {text-align: center; margin-bottom: 20px;}
.search-form-wrapper {display: flex; justify-content: center; background: #0000009e; padding: 20px; border-radius: 8px;}
.search-field {max-width: 100%; width: 800px;}
.search-form {display: flex; gap: 10px;}
.search-form input[type="search"] {flex: 1; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: #111; color: #fff; font-size: 15px;}
.search-form input[type="search"]::placeholder {color: #888;}
.search-form input[type="submit"] {padding: 14px 25px; border-radius: 10px; border: none; background: #E86200; color: #fff; font-weight: 600; cursor: pointer; transition: opacity 0.3s ease;}
.search-form input[type="submit"]:hover {opacity: 0.85;}
.search-results {margin-top: 40px;}
.search-message {text-align: center; padding: 60px 20px; background: #111; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); color: #ccc; font-size: 16px;}
