/*
Theme Name: Otaku Daily Updates
Theme URI: https://otakudailyupdates.com
Author: Antigravity AI (Converted from TemplatesYard Oxxo Blogger Theme)
Description: A vibrant, high-energy anime blog theme featuring modern Neo-Brutalist design, bold typography (Lexend Exa & Prompt), floating pill navigation, purple background patterns, rounded cards with hard drop-shadows, and responsive layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: otaku-daily-updates
*/

/* ==========================================================================
   Google Fonts & External Libraries
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@300;400;500;600;700;800;900&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

/* ==========================================================================
   CSS Custom Properties (Theme Colors & Tokens)
   ========================================================================== */
:root {
  --bg-purple: #673ab7;
  --accent-pink: #ff6565;
  --accent-yellow: #fbc02d;
  --dark-black: #000000;
  --text-dark: #1b1b25;
  --text-muted: #656565;
  --card-bg: #ffffff;
  --footer-bg: #000000;
  --border-thick: 2px solid #000000;
  --box-shadow-neo: 0 4px 0 0 #000000;
  --box-shadow-hover: 0 6px 0 0 #000000;
  --radius-card: 40px;
  --radius-pill: 40px;
  --font-heading: 'Lexend Exa', sans-serif;
  --font-body: 'Prompt', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-purple);
  background-image: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQpvieIkiPm4uGJYSCRhh0afCrlTEUbR3q7ve4X1xnQw6iaIgBIxvFxIPvO56HWUlhpOfVtP-yXrju9FTAyZLi5jR-V7TFuicKixV4w_tS7ICU9uaOd7o6Ufl58mK1ZYe2nWmiPGGdQXvEF0STdGhrQHTcnujPNiTovey04fU1U4rOfg5rmBbrqmN3obWM/s16000/back-bg.png');
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  word-wrap: break-word;
}

a {
  color: var(--dark-black);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-pink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-black);
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
#header-wrap {
  position: relative;
  width: 100%;
  padding-top: 20px;
}

.header-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}

.top-bar-nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

.top-bar-nav ul li a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.top-bar-nav ul li a:hover {
  color: var(--accent-pink);
}

.header-logo {
  text-align: center;
}

.header-logo a {
  display: inline-block;
}

.header-logo img {
  max-height: 70px;
  width: auto;
}

.header-logo h1 {
  color: #ffffff;
  font-size: 24px;
  text-transform: uppercase;
}

.top-bar-social ul {
  display: flex;
  list-style: none;
  gap: 12px;
}

.top-bar-social ul li a {
  color: #ffffff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar-social ul li a:hover {
  transform: translateY(-2px);
  color: var(--accent-yellow);
}

/* Floating Navigation Pill */
.header-menu {
  margin: 15px 0 25px;
}

.header-menu .block-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: var(--radius-pill);
  border: var(--border-thick);
  box-shadow: var(--box-shadow-neo);
  padding: 0 25px;
  height: 65px;
  position: relative;
}

.sign-line {
  height: 2px;
  width: 40px;
  background: #000;
  position: relative;
}

#main-menu-nav {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

#main-menu-nav > li {
  position: relative;
}

#main-menu-nav > li > a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-black);
  padding: 20px 5px;
  display: block;
}

#main-menu-nav > li:hover > a {
  color: var(--accent-pink);
}

/* Submenu Dropdown */
#main-menu-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 15px;
  box-shadow: var(--box-shadow-neo);
  list-style: none;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  padding: 10px 0;
}

#main-menu-nav li:hover > ul {
  opacity: 1;
  visibility: visible;
}

#main-menu-nav li ul li a {
  padding: 10px 18px;
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark-black);
}

#main-menu-nav li ul li a:hover {
  background: #f4f4f4;
  color: var(--accent-pink);
}

/* Search Trigger & Search Overlay */
.search-trigger {
  cursor: pointer;
  font-size: 16px;
  color: var(--dark-black);
}

.header-search-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-pill);
  z-index: 15;
  align-items: center;
  padding: 0 20px;
}

.header-search-bar.active {
  display: flex;
}

.header-search-bar form {
  width: 100%;
  display: flex;
  align-items: center;
}

.header-search-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  padding: 10px;
}

.header-search-bar .close-search {
  cursor: pointer;
  font-size: 18px;
  padding: 5px 10px;
}

/* ==========================================================================
   Main Content & Layout
   ========================================================================== */
#content-wrapper {
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

#main-wrapper {
  width: 68%;
}

#sidebar-wrapper {
  width: 30%;
}

/* Full width for Single Posts and Pages */
.single #main-wrapper,
.page #main-wrapper {
  width: 100%;
}

/* If single post has active sidebar widgets */
body.single-has-sidebar #main-wrapper {
  width: 68%;
}

body.single-has-sidebar #sidebar-wrapper {
  width: 30%;
  display: block;
}

/* ==========================================================================
   Featured Hero Card (Floating Overlay Box Design - Pixel Perfect Match)
   ========================================================================== */
.featured-hero-card {
  position: relative;
  width: 100%;
  height: 520px;
  background: #ffffff;
  border-radius: 40px;
  border: 2px solid #000000;
  box-shadow: 0 4px 0 0 #000000;
  overflow: hidden;
  margin-bottom: 45px;
}

.featured-hero-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.featured-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-hero-card:hover .featured-hero-image-wrap img {
  transform: scale(1.03);
}

.featured-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Floating White Info Box (Overlay at Center-Bottom) */
.featured-hero-info-floating {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  max-width: 580px;
  background: #ffffff;
  border-radius: 35px;
  border: 2px solid #000000;
  box-shadow: 0 4px 0 0 #000000;
  padding: 25px 30px;
  text-align: center;
  z-index: 5;
  transition: transform 0.3s ease;
}

.featured-hero-card:hover .featured-hero-info-floating {
  transform: translate(-50%, -5px);
}

.featured-hero-info-floating .post-badge {
  display: inline-block;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.featured-hero-info-floating .post-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: #000000;
  margin-bottom: 12px;
}

.featured-hero-info-floating .post-title a {
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-hero-info-floating .post-title a:hover {
  color: var(--accent-pink);
}

.featured-hero-info-floating .post-meta {
  font-size: 11px;
  color: #000000;
  font-weight: 600;
  margin-bottom: 0;
}

/* ==========================================================================
   2-Column Post Grid Layout
   ========================================================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-post-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: var(--border-thick);
  box-shadow: var(--box-shadow-neo);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.grid-post-thumb {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: var(--border-thick);
}

.grid-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-post-card:hover .grid-post-thumb img {
  transform: scale(1.04);
}

.grid-post-info {
  padding: 25px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-post-info .post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: var(--border-thick);
  box-shadow: var(--box-shadow-neo);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget .widget-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

/* Popular Posts Widget Items */
.popular-post-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}

.popular-post-item:last-child {
  margin-bottom: 0;
}

.popular-post-thumb {
  width: 80px;
  height: 70px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #000;
  flex-shrink: 0;
}

.popular-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-details .post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.popular-post-details .post-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrapper {
  margin-top: 35px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: #ffffff;
  border: var(--border-thick);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--dark-black);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background: var(--accent-pink);
  color: #ffffff;
}

/* ==========================================================================
   Single Post Page & Single Card Layout
   ========================================================================== */
.single-post-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: var(--border-thick);
  box-shadow: var(--box-shadow-neo);
  padding: 40px;
  margin-bottom: 30px;
}

.single-post-header {
  text-align: center;
  margin-bottom: 25px;
}

.single-post-header .post-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  margin: 15px 0;
}

.single-post-featured-img {
  width: 100%;
  height: 420px;
  border-radius: 30px;
  border: var(--border-thick);
  overflow: hidden;
  margin-bottom: 30px;
}

.single-post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2b2b2b;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content h2, .single-post-content h3 {
  margin: 25px 0 15px;
}

.single-post-content blockquote {
  background: #f5f5f5;
  border-left: 4px solid var(--accent-pink);
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
  margin: 25px 0;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f9f9f9;
  border: var(--border-thick);
  border-radius: 25px;
  padding: 20px;
  margin-top: 35px;
}

.author-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.author-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

/* ==========================================================================
   Footer Section & Instagram Grid
   ========================================================================== */
#footer-wrapper {
  background: #ffffff;
  position: relative;
  padding-top: 40px;
  margin-top: 50px;
}

/* Zigzag Wave SVG */
.zigzag-divider {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.zigzag-divider svg {
  width: 100%;
  height: 20px;
  fill: var(--bg-purple);
}

.instagram-section-title {
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.insta-card {
  position: relative;
  height: 220px;
  border-radius: 30px;
  border: var(--border-thick);
  box-shadow: var(--box-shadow-neo);
  overflow: hidden;
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-pink);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-footer-bottom {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 20px 0;
  font-size: 12px;
}

.sub-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

.footer-links ul li a {
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
}

.footer-links ul li a:hover {
  color: var(--accent-pink);
}

/* Scroll to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: var(--dark-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 980px) {
  #main-wrapper {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }
  #sidebar-wrapper {
    width: 100%;
  }
  .header-header {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 680px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .instagram-grid {
    grid-template-columns: 1fr;
  }
  .header-menu .block-sign {
    justify-content: center;
  }
  .sign-line {
    display: none;
  }
  #main-menu-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .featured-hero-info .post-title {
    font-size: 22px;
  }
  .single-post-card {
    padding: 20px;
  }
}
