
/*
Theme Name: Tama Senpai Modern Simple
Theme URI: https://example.com/
Author: OpenAI
Description: Tema WordPress sederhana namun modern dengan menu, search yang interaktif, dan daftar game rapi.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tama-senpai-modern-simple
Tags: blog, featured-images, one-column, dark, responsive-layout
*/

:root{
  --bg:#0f1620;
  --bg-2:#111c29;
  --panel:#152130;
  --card:#172230;
  --text:#eef4f9;
  --muted:#92a4b4;
  --line:rgba(255,255,255,.08);
  --accent:#66bff0;
  --shadow:0 10px 28px rgba(0,0,0,.24);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:
    radial-gradient(circle at 20% 0%, rgba(102,191,240,.10), transparent 25%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color:var(--text);
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:var(--accent);text-decoration:none}
a:hover{color:#cfefff}
img{max-width:100%;height:auto;display:block}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(180deg, rgba(10,16,24,.98), rgba(10,16,24,.90));
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(10px);
}
.site-header-inner{
  max-width:1120px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.brand-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.site-title{
  margin:0;
  font-size:22px;
  font-weight:800;
  line-height:1.1;
}
.site-title a{color:var(--text)}
.site-description{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.header-controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.search-form{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:420px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
}
.search-form label{display:none}
.search-field{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
}
.search-field::placeholder{color:rgba(238,244,249,.55)}
.search-submit{
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:8px 14px;
  background:var(--accent);
  color:#082033;
  font-weight:800;
  flex:0 0 auto;
}
.search-submit:active{transform:translateY(1px)}

.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}
.primary-nav{
  display:block;
}
.primary-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.primary-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
}
.primary-nav a:hover{
  background:rgba(102,191,240,.12);
  border-color:rgba(102,191,240,.22);
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a{
  background:rgba(102,191,240,.18);
  border-color:rgba(102,191,240,.30);
}

.site-shell{
  max-width:1120px;
  margin:0 auto;
  padding:18px 16px 40px;
}

.hero{
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(21,34,48,.88), rgba(15,23,34,.88));
  box-shadow:var(--shadow);
}
.hero h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
}
.hero p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.post-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.post-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(22,33,44,.98), rgba(18,27,37,.98));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.post-card:hover{
  transform:translateY(-2px);
  background:linear-gradient(180deg, rgba(27,42,58,.98), rgba(18,27,37,.98));
  border-color:rgba(102,191,240,.22);
}
.post-thumb{
  flex:0 0 76px;
  width:76px;
  height:104px;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(135deg, #30485a, #17212e);
  border:1px solid rgba(255,255,255,.08);
}
.post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-body{
  min-width:0;
  flex:1;
}
.post-link{
  display:block;
  color:var(--text);
  font-size:16px;
  font-weight:800;
  line-height:1.35;
  word-break:break-word;
}
.post-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

.entry{
  max-width:860px;
  margin:22px auto 0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(22,33,44,.98), rgba(18,27,37,.98));
  box-shadow:var(--shadow);
}
.entry-header{
  padding:20px 20px 0;
}
.entry-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.entry-thumb{
  margin-top:16px;
  border-top:1px solid var(--line);
  background:#0e151f;
}
.entry-thumb img{
  width:100%;
  max-height:500px;
  object-fit:cover;
}
.entry-content{
  padding:20px;
  color:#dfeaf2;
}
.entry-content a{color:var(--accent)}
.entry-content h2,
.entry-content h3,
.entry-content h4{color:var(--text)}
.entry-content img{border-radius:14px}

.pagination{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
}
.pagination a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.pagination a:hover{
  background:rgba(102,191,240,.12);
  border-color:rgba(102,191,240,.25);
}

.site-footer{
  max-width:1120px;
  margin:18px auto 0;
  padding:0 16px 24px;
  color:var(--muted);
  font-size:13px;
}
.site-footer-inner{
  padding-top:14px;
  border-top:1px solid var(--line);
}

.no-posts,
.not-found{
  margin:18px 0 0;
  padding:16px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.screen-reader-text{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

@media (max-width: 860px){
  .brand-row{
    flex-direction:column;
    align-items:stretch;
  }
  .header-controls{
    width:100%;
  }
  .search-form{
    max-width:none;
  }
  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .primary-nav{
    display:none;
  }
  .primary-nav.is-open{
    display:block;
  }
  .primary-nav ul{
    flex-direction:column;
  }
  .primary-nav a{
    width:100%;
    justify-content:flex-start;
  }
  .post-thumb{flex-basis:68px;width:68px;height:96px}
  .post-link{font-size:15px}
  .entry-title{font-size:24px}
  .entry-content{padding:16px}
}
