/*
Theme Name: Anime Toon Drive
Theme URI: https://animetoondrive.online
Description: Custom Professional Anime Streaming and Downloading Theme
Version: 1.0
Author: Custom Developer
*/

:root {
  --bg-deep: #080c14;
  --surface-dark: #0f172a;
  --surface-card: #1e293b;
  --border-color: #334155;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  background-image: 
    radial-gradient(circle 800px at 0% 0%, rgba(99, 102, 241, 0.1), transparent 70%),
    radial-gradient(circle 600px at 100% 100%, rgba(6, 182, 212, 0.08), transparent 70%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

.notice-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  color: #fff;
  padding: 6px 4%;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.notice-bar a { text-decoration: underline; color: #fff; }

header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}
.logo span { color: var(--accent-cyan); }
.logo .accent-orange { color: var(--accent-orange); }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
}
.search-bar form { display: flex; width: 100%; align-items: center; }
.search-bar input {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-size: 13px;
  flex: 1;
  min-width: 0;
}
.search-bar button {
  padding: 8px 16px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.nav-menu {
  background: var(--surface-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.nav-menu a.active { box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }

.main-wrapper {
  max-width: 1320px;
  margin: 20px auto 50px;
  padding: 0 4%;
  flex: 1;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--primary), var(--accent-orange));
  border-radius: 4px;
  margin-right: 10px;
}
.section-title span { color: var(--accent-cyan); margin-left: 6px; }

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 10px;
  align-items: start;
}

.post-outer {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-outer:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}
.post-outer > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-dark);
  flex-shrink: 0;
}
.post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-outer:hover .post-thumbnail { transform: scale(1.06); }

.watch-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(99, 102, 241, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}
.quality-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(249, 115, 22, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.post-title {
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  background: var(--surface-card);
  word-break: break-word;
  white-space: normal !important;
  flex-grow: 1;
}

.single-post-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px clamp(16px, 3vw, 36px);
  max-width: 960px;
  margin: 0 auto;
}
.single-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}
.post-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.floating-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.float-btn {
  background: #0088cc;
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #0088cc;
}

footer {
  background: #090d16;
  border-top: 1px solid #1e293b;
  padding: 40px 5% 20px;
  color: #94a3b8;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (min-width: 768px) {
  .footer-container { display: grid; grid-template-columns: 1.2fr 0.9fr 1fr; gap: 40px; }
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.footer-logo span { color: #f97316; }
.footer-logo span.cyan { color: #06b6d4; }
.brand-desc { font-size: 13.5px; line-height: 1.6; margin: 12px 0 18px; color: #94a3b8; }
.footer-tg-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.tg-icon {
  width: 38px; height: 38px; background: #0088cc; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.tg-info h4 { color: #ffffff; font-size: 13.5px; font-weight: 700; margin: 0; }
.tg-info p { color: #94a3b8; font-size: 11.5px; margin: 2px 0 0; }
.footer-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; color: #ffffff; text-transform: uppercase; margin-bottom: 16px; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu li a { color: #cbd5e1; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.footer-menu li a:hover { color: #06b6d4; }
.disclaimer-text { font-size: 13.5px; line-height: 1.6; color: #94a3b8; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 16px; text-align: center; font-size: 12px; color: #64748b; }