/*
Theme Name: YonoAPKS Blog Theme
Theme URI: https://yonoapks.com
Author: Antigravity
Author URI: https://yonoapks.com
Description: Custom WordPress theme matching the glassmorphism dark-green design of YonoAPKS.com, featuring 5:3 aspect-ratio post thumbnails.
Version: 1.0.0
Text Domain: yonoapks-blog
*/

:root {
  --bg-primary: #020f0a;
  --bg-secondary: #03140e;
  --card-bg: #041c12;
  --card-border: rgba(16, 185, 129, 0.15);
  --accent-green: #10B981;
  --accent-gold: #FCD34D;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.3s;
}

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

/* Header & Navigation */
header {
  background: rgba(2, 15, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper img {
  height: 40px;
  width: auto;
  display: block;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.3s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Sidebar Drawer styling matching main site */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #03140e;
  border-left: 1px solid var(--card-border);
  z-index: 1002;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.close-sidebar-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.3s;
}

.close-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-links {
  list-style: none;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-links a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Layout container */
.main-wrapper {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .main-wrapper {
    grid-template-columns: 8fr 4fr;
  }
  /* Advanced Sticky Sidebar */
  aside {
    position: sticky;
    top: 5.5rem;
    height: fit-content;
  }
}

/* Featured Images 5:3 Aspect Ratio */
.featured-image-wrapper {
  width: 100%;
  aspect-ratio: 5 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s, box-shadow 0.4s;
  height: 100%;
  will-change: transform, box-shadow;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-green);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

.post-card:hover .featured-image-wrapper img {
  transform: scale(1.04);
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-meta i {
  color: var(--accent-green);
}

.post-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.35;
  transition: color 0.3s;
}

.post-card:hover .post-title {
  color: var(--accent-gold);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.read-more-btn {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--accent-green);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 750;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.read-more-btn:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Single Post Page styling (Premium Yono look) */
.single-post-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .single-post-container {
    padding: 3rem 2.5rem;
  }
}

.post-header {
  margin-bottom: 2rem;
}

.post-header-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .post-header-title {
    font-size: 2.5rem;
  }
}

.single-post-container .featured-image-wrapper {
  margin-bottom: 2.5rem;
  border: 1px solid var(--card-border);
}

.post-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Custom dropcap for article first letter */
.post-content > p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 900;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.post-content h2, .post-content h3, .post-content h4 {
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.post-content h2 {
  font-size: 1.75rem;
  border-left: 4px solid var(--accent-green);
  padding-left: 12px;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.6rem;
}

.post-content blockquote {
  background: rgba(252, 211, 77, 0.03);
  border-left: 4px solid var(--accent-gold);
  padding: 1.2rem 1.8rem;
  border-radius: 8px;
  margin: 2.2rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Premium Table design for game data lists */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.post-content th {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-gold);
  font-weight: 750;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--card-border);
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content tr:hover td {
  background: rgba(16, 185, 129, 0.03);
  color: #fff;
}

/* Sidebar Widgets styling */
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
}

/* Premium Sidebar Search */
.sidebar-search-form .search-input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.sidebar-search-form input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.sidebar-search-form input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.sidebar-search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent-green);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.sidebar-search-form button:hover {
  color: var(--accent-gold);
}

/* Recent Posts list with thumbnails */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.recent-post-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-thumb {
  width: 60px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

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

.recent-post-thumb-fallback {
  width: 100%;
  height: 100%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-post-thumb-fallback i {
  font-size: 0.9rem;
  color: var(--accent-green);
  opacity: 0.6;
}

.recent-post-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.recent-post-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.recent-post-item:hover .recent-post-title {
  color: var(--accent-green);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.recent-post-date i {
  margin-right: 4px;
  color: var(--accent-gold);
}

/* Premium Interactive Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s;
}

.category-item:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--accent-green);
  transform: translateX(5px);
  color: #fff;
}

.category-name-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-name-wrapper i {
  color: var(--accent-green);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.category-item:hover .category-name-wrapper i {
  color: var(--accent-gold);
}

.category-count {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 20px;
  transition: all 0.3s;
}

.category-item:hover .category-count {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
}

/* Footer Section */
footer {
  background: #010a07;
  border-top: 1px solid var(--card-border);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content img {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 3rem;
}

.pagination .page-numbers {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #fff;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination .page-numbers.current, .pagination .page-numbers:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs span {
  color: var(--accent-gold);
}