/* ============================
   assets/style.css
   BrandJi — refined theme
   ============================ */

:root{
  --bg:#f5f6fa;
  --card:#ffffff;
  --border:#e2e4ec;
  --text:#1e2430;
  --muted:#7a8190;
  --accent:#5e5ce6;
  --accent-dark:#4946d1;
  --accent-light:#a29bfe;
  --shadow: 0 6px 24px rgba(0,0,0,0.04);
  --max-width:1200px;
  --radius:12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* ====== Base ====== */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:15px;
  scroll-behavior:smooth;
}

/* Utility */
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}

/* ====== Header ====== */
.header {
  background:#fff;
  border-bottom:1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.header .wrap{
  max-width:var(--max-width);
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand-raw{
  display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;cursor:pointer;
}
.brand-raw .logo{
  width:44px;height:44px;border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-light));
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px;
  box-shadow:0 6px 18px rgba(108,92,231,0.15);
}
.brand-raw .title{font-weight:700;font-size:1.08rem;}

/* ====== Hero ====== */
.hero{text-align:center;padding:48px 20px 36px;}
.hero .headline{font-size:2.2rem;font-weight:800;margin:0;color:var(--text);}
.hero .subtext{font-size:1.05rem;color:var(--muted);margin-top:8px;}

/* ====== Sticky Search ====== */
.sticky-search{
  position:sticky;top:0;z-index:999;
  background:rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding:12px 0;
  border-bottom:1px solid #eef1f5;
  transition:padding .18s ease;
  will-change:padding;
}
.search-form{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
  max-width:var(--max-width);margin:0 auto;align-items:center;
}
.search-form input[type="text"]{
  padding:12px 16px;border:1px solid var(--border);
  border-radius:10px;font-size:1rem;
  width:380px;max-width:calc(100% - 200px);
}
.search-controls{display:flex;gap:8px;align-items:center;}
.search-form select{
  padding:9px 10px;border-radius:8px;
  border:1px solid var(--border);background:#fff;
}

/* Buttons */
.btn{
  padding:10px 16px;border-radius:10px;border:0;
  background:var(--accent);color:#fff;font-weight:700;
  cursor:pointer;box-shadow:0 10px 28px rgba(108,92,231,0.12);
  transition:.25s ease;
}
.btn:hover{background:var(--accent-dark);transform:translateY(-1px);}
.btn-ghost{
  padding:10px 16px;border-radius:10px;border:1px solid var(--border);
  background:#fff;color:var(--text);cursor:pointer;transition:.25s;
}
.btn-ghost:hover{background:#f8f9ff;color:var(--accent);}

/* ====== Domain Grid ====== */
.grid{
  max-width:var(--max-width);margin:30px auto;padding:0 20px 20px;
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.card{
  background:var(--card);border-radius:12px;padding:20px;
  border:1px solid var(--border);
  box-shadow:0 6px 24px rgba(0,0,0,0.04);
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;color:inherit;font-weight:600;text-align:center;
  min-height:90px;transition:transform .2s,box-shadow .2s;
}
.card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 40px rgba(108,92,231,0.08);
  border-color:var(--accent);
}

/* Featured */
.featured-card{
  border:2px solid var(--accent);
  animation:glowPurple 3s infinite ease-in-out;
}
@keyframes glowPurple{
  0%{box-shadow:0 8px 20px rgba(108,92,231,0.1);}
  50%{box-shadow:0 16px 36px rgba(108,92,231,0.18);}
  100%{box-shadow:0 8px 20px rgba(108,92,231,0.1);}
}

/* ====== Pagination ====== */
.pager{
  display:flex;justify-content:center;align-items:center;gap:10px;
  margin:10px 0 40px;
}
.pager a,.pager span{
  background:#fff;border:1px solid var(--border);
  padding:8px 14px;border-radius:8px;
  color:var(--text);text-decoration:none;font-weight:600;
  transition:.2s;
}
.pager a:hover{background:#f0f2fb;}
.pager .active{background:var(--accent);color:#fff;border-color:var(--accent);}

/* ====== Footer ====== */
.site-footer{
  background:#fff;border-top:1px solid var(--border);
  padding:26px 20px;margin-top:30px;
}
.site-footer .wrap{
  max-width:var(--max-width);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;
}
.site-footer .links{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.site-footer a{color:var(--accent);text-decoration:none;font-weight:600;}
.site-footer a:hover{text-decoration:underline;}

/* ====== Back to Top ====== */
#goTop{
  position:fixed;bottom:28px;right:28px;width:48px;height:48px;
  display:none;align-items:center;justify-content:center;
  background:var(--accent);color:#fff;border-radius:50%;border:0;
  font-size:22px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,0.12);
  z-index:1200;transition:.2s;
}
#goTop:hover{transform:translateY(-3px);background:var(--accent-dark);}
#goTop i{position:relative;top:1px;}

/* ====== Admin Area ====== */
.admin-wrap{display:flex;min-height:100vh;gap:24px;}
.admin-sidebar{
  width:240px;background:#fff;border-radius:10px;
  padding:18px;box-shadow:var(--shadow);
  flex-shrink:0;height:calc(100vh - 48px);
  position:sticky;top:24px;overflow:auto;
}
.admin-sidebar nav{display:flex;flex-direction:column;gap:8px;margin-top:12px;}
.admin-sidebar a{
  padding:10px 12px;border-radius:8px;color:var(--text);
  text-decoration:none;font-weight:700;transition:.2s;
}
.admin-sidebar a.active,.admin-sidebar a:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent-light));
  color:#fff;
}
.admin-main{flex:1;padding:28px 20px;min-height:100vh;background:transparent;}

/* Table */
.table{
  width:100%;border-collapse:collapse;background:#fff;
  border-radius:10px;overflow:hidden;box-shadow:var(--shadow);
}
.table thead th{
  padding:12px 14px;background:#f9faff;color:var(--muted);
  text-align:left;font-weight:700;border-bottom:1px solid var(--border);
}
.table tbody td{
  padding:10px 14px;border-bottom:1px solid #f3f6fa;
  color:var(--text);vertical-align:middle;
}
.table tbody tr:last-child td{border-bottom:0;}
.table tbody tr:hover{background:#f8f9ff;}

/* Inputs */
.admin-main input[type="text"], .admin-main input[type="number"], 
.admin-main textarea, .admin-main select{
  width:100%;padding:10px 12px;border:1px solid var(--border);
  border-radius:8px;margin-top:6px;margin-bottom:10px;font-size:14px;
}
.admin-main form{margin:0;}
.badge{background:var(--accent);color:#fff;padding:4px 10px;
  border-radius:20px;font-weight:700;font-size:0.85rem;}

/* Chart / Analytics */
.chart-section{
  background:#fff;border:1px solid var(--border);
  border-radius:12px;box-shadow:var(--shadow);
  padding:18px;margin-bottom:20px;
}
.chart-section h3{margin:0 0 10px;font-size:1.05rem;color:var(--text);}
.chart-section canvas{width:100%!important;height:400px!important;}

/* Responsive adjustments */
@media (max-width:1024px){
  .grid{grid-template-columns:repeat(3,1fr);}
  .search-form input[type="text"]{width:300px;}
  .admin-sidebar{width:200px;height:auto;position:relative;top:auto;}
}
@media (max-width:768px){
  .grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .search-form input[type="text"]{width:220px;}
  .admin-wrap{flex-direction:column;gap:12px;}
  .admin-sidebar{width:100%;display:flex;overflow-x:auto;padding:12px;}
  .admin-main{padding:16px;}
}
@media (max-width:480px){
  .grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .card{padding:14px;font-size:0.95rem;min-height:72px;}
  .search-form input[type="text"]{width:calc(100% - 120px);max-width:100%;}
}

/* Helpers */
.small-muted{color:var(--muted);font-size:0.95rem;}
.center{text-align:center;}
.hidden{display:none;}
a:focus,button:focus,input:focus{
  outline:3px solid rgba(108,92,231,0.14);outline-offset:2px;
}


/* Domain grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Mobile: single column with spacing */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
    padding: 15px;
  }
  .card {
    font-size: 1.3rem;
    padding: 16px;
  }
}
