/*
Theme Name: Aotori
Theme URI: https://github.com/akbulut-io/aotori
Author: Uchuujin
Author URI: https://github.com/akbulut97
Description: Aotori is a feature-rich WordPress theme built for manga, webtoon, and novel reading sites. It includes a built-in chapter management system, volume support, VIP membership, a gamification layer (XP, levels, coins, achievements), an interactive reader with multiple layouts, user library tracking, reading analytics, live chat, custom emoji support, Discord integration, and a fully customizable admin panel — all in one theme.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aotori
Domain Path: /languages
Tags: manga, webtoon, novel, reading, custom-post-type, responsive-layout, theme-options, membership, gamification, dark-mode
*/

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --ao-primary: #6c5ce7;
  --ao-primary-hover: #5a4bd1;
  --ao-secondary: #00cec9;
  --ao-secondary-hover: #00b5b0;
  --ao-accent: #fd79a8;
  --ao-success: #00b894;
  --ao-warning: #fdcb6e;
  --ao-danger: #d63031;
  --ao-info: #0984e3;

  /* Background */
  --ao-bg: #ffffff;
  --ao-bg-alt: #f5f6fa;
  --ao-bg-dark: #1e1e2e;
  --ao-bg-card: #ffffff;

  /* Text */
  --ao-text: #2d3436;
  --ao-text-light: #636e72;
  --ao-text-muted: #b2bec3;
  --ao-text-inverse: #ffffff;

  /* Borders */
  --ao-border: #dfe6e9;
  --ao-border-light: #f0f0f0;

  /* Spacing */
  --ao-spacing-xs: 4px;
  --ao-spacing-sm: 8px;
  --ao-spacing-md: 16px;
  --ao-spacing-lg: 24px;
  --ao-spacing-xl: 32px;
  --ao-spacing-2xl: 48px;

  /* Typography */
  --ao-font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ao-font-heading:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ao-font-mono: "Fira Code", monospace;

  --ao-text-xs: 0.75rem;
  --ao-text-sm: 0.875rem;
  --ao-text-base: 1rem;
  --ao-text-lg: 1.125rem;
  --ao-text-xl: 1.25rem;
  --ao-text-2xl: 1.5rem;
  --ao-text-3xl: 1.875rem;
  --ao-text-4xl: 2.25rem;

  /* Layout */
  --ao-container: 1200px;
  --ao-container-wide: 100%;
  --ao-sidebar-width: 300px;
  --ao-header-height: 80px;

  /* Effects */
  --ao-radius-sm: 4px;
  --ao-radius: 8px;
  --ao-radius-lg: 12px;
  --ao-radius-xl: 16px;
  --ao-radius-full: 9999px;
  --ao-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --ao-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --ao-shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.16);
  --ao-transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --ao-bg: #1e1e2e;
  --ao-bg-alt: #2a2a3e;
  --ao-bg-card: #2a2a3e;
  --ao-text: #e0e0e0;
  --ao-text-light: #a0a0b0;
  --ao-text-muted: #6c6c7e;
  --ao-border: #3a3a4e;
  --ao-border-light: #333348;
  --ao-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --ao-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   CSS Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ao-font-primary);
  font-size: var(--ao-text-base);
  line-height: 1.6;
  color: var(--ao-text);
  background-color: var(--ao-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ao-font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ao-text);
  margin-bottom: var(--ao-spacing-md);
}

h1 {
  font-size: var(--ao-text-4xl);
}
h2 {
  font-size: var(--ao-text-3xl);
}
h3 {
  font-size: var(--ao-text-2xl);
}
h4 {
  font-size: var(--ao-text-xl);
}
h5 {
  font-size: var(--ao-text-lg);
}
h6 {
  font-size: var(--ao-text-base);
}

a {
  color: var(--ao-primary);
  text-decoration: none;
  transition: var(--ao-transition);
}

a:hover {
  color: var(--ao-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.ao-container {
  width: 100%;
  max-width: var(--ao-container);
  margin: 0 auto;
  margin-top: 50px;
  padding: 0 var(--ao-spacing-md);
}

@media (max-width: 576px) {
  .ao-container {
    padding: 0 var(--ao-spacing-sm);
    margin-top: 24px;
  }
}

.ao-container-wide {
  max-width: var(--ao-container-wide);
  /*margin: 0 150px;*/
  width: 100%;
}

.ao-flex {
  display: flex;
}

.ao-grid {
  display: grid;
}

.ao-hidden {
  display: none !important;
}

.ao-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Components
   ============================================ */

/* Buttons */
.ao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ao-spacing-sm);
  padding: 10px 20px;
  font-weight: 500;
  font-size: var(--ao-text-sm);
  border-radius: var(--ao-radius);
  transition: var(--ao-transition);
  border: none;
  cursor: pointer;
  line-height: 1.5;
}

.ao-btn-primary {
  background-color: var(--ao-primary);
  color: var(--ao-text-inverse);
}

.ao-btn-primary:hover {
  background-color: var(--ao-primary-hover);
  color: var(--ao-text-inverse);
}

.ao-btn-secondary {
  background-color: var(--ao-secondary);
  color: var(--ao-text-inverse);
}

.ao-btn-secondary:hover {
  background-color: var(--ao-secondary-hover);
  color: var(--ao-text-inverse);
}

.ao-btn-outline {
  background-color: transparent;
  border: 1px solid var(--ao-border);
  color: var(--ao-text);
}

.ao-btn-outline:hover {
  border-color: var(--ao-primary);
  color: var(--ao-primary);
}

.ao-btn-sm {
  padding: 6px 12px;
  font-size: var(--ao-text-xs);
}

.ao-btn-lg {
  padding: 14px 28px;
  font-size: var(--ao-text-lg);
}

/* Badges */
.ao-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: var(--ao-text-xs);
  font-weight: 500;
  border-radius: var(--ao-radius-full);
  line-height: 1.5;
}

.ao-badge-primary {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--ao-primary);
}

.ao-badge-success {
  background-color: rgba(0, 184, 148, 0.1);
  color: var(--ao-success);
}

.ao-badge-warning {
  background-color: rgba(253, 203, 110, 0.2);
  color: #e17055;
}

.ao-badge-danger {
  background-color: rgba(214, 48, 49, 0.1);
  color: var(--ao-danger);
}

/* Cards */
.ao-card {
  background-color: var(--ao-bg-card);
  border-radius: var(--ao-radius-lg);
  box-shadow: var(--ao-shadow);
  overflow: hidden;
  transition: var(--ao-transition);
}

.ao-card:hover {
  box-shadow: var(--ao-shadow-lg);
  transform: translateY(-2px);
}

/* Form Elements */
.ao-input {
  width: 100%;
  padding: 10px 16px;
  font-size: var(--ao-text-sm);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  background-color: var(--ao-bg);
  color: var(--ao-text);
  transition: var(--ao-transition);
  outline: none;
}

.ao-input:focus {
  border-color: var(--ao-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.ao-select {
  padding: 10px 36px 10px 16px;
  font-size: var(--ao-text-sm);
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  background-color: var(--ao-bg);
  color: var(--ao-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  outline: none;
}

.ao-select:focus {
  border-color: var(--ao-primary);
}

.ao-reading-list-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ao-reading-list-control__label {
  font-size: var(--ao-text-xs);
  font-weight: 700;
  color: var(--ao-text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ao-reading-list-control .ao-reading-list-select {
  width: 100%;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius);
  min-height: 40px;
  padding: 8px 12px;
  background-color: var(--ao-bg-card);
  color: var(--ao-text);
  font-size: var(--ao-text-sm);
  font-weight: 600;
}

.ao-reading-list-control__hint {
  font-size: var(--ao-text-xs);
  font-weight: 600;
  color: var(--ao-text-light);
}

/* Rating Stars */
.ao-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ao-warning);
}

.ao-rating .star-empty {
  color: var(--ao-border);
}

/* Pagination */
.ao-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ao-spacing-sm);
  padding: var(--ao-spacing-xl) 0;
}

.ao-pagination a,
.ao-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ao-radius);
  font-size: var(--ao-text-sm);
  font-weight: 500;
  border: 1px solid var(--ao-border);
  color: var(--ao-text);
  transition: var(--ao-transition);
}

.ao-pagination a:hover,
.ao-pagination .current {
  background-color: var(--ao-primary);
  border-color: var(--ao-primary);
  color: var(--ao-text-inverse);
}

/* ============================================
   Layout
   ============================================ */
.ao-site-content {
  min-height: calc(100vh - var(--ao-header-height) - 200px);
  /*padding: var(--ao-spacing-xl) 0;*/
}

.ao-layout {
  display: grid;
  grid-template-columns: 1fr var(--ao-sidebar-width);
  gap: var(--ao-spacing-xl);
}

.ao-layout-full {
  grid-template-columns: 1fr;
}

.ao-main-content {
  min-width: 0;
}

.ao-sidebar {
  min-width: 0;
}

/* Widget */
.ao-widget {
  background-color: var(--ao-bg-card);
  border-radius: var(--ao-radius-lg);
  box-shadow: var(--ao-shadow);
  padding: var(--ao-spacing-lg);
  margin-bottom: var(--ao-spacing-lg);
}

.ao-widget-title {
  font-size: var(--ao-text-lg);
  font-weight: 600;
  margin-bottom: var(--ao-spacing-md);
  padding-bottom: var(--ao-spacing-sm);
  border-bottom: 2px solid var(--ao-primary);
}
/* ============================================
   404
   ============================================ */
.ao-404-v2 {
  padding: 80px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ao-404__illustration {
  margin-bottom: 30px;
}

.ao-404__title {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  background: linear-gradient(
    45deg,
    #ff4d4d,
    #f9cb28
  ); /* Temanıza göre renkleri değiştirin */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.ao-404__subtitle {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--ao-text-color);
}

.ao-404__description {
  font-size: 18px;
  color: #888;
  margin-bottom: 40px;
}

.ao-404__search-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
  border: 2px solid #eee;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}

.ao-404__search-form input {
  flex: 1;
  border: none;
  padding: 15px 25px;
  outline: none;
}

.ao-404__search-form button {
  background: var(--ao-primary-color);
  color: #fff;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  transition: 0.3s;
}

.ao-404__buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media (max-width: 768px) {
  .ao-404__title {
    font-size: 100px;
  }
  .ao-404__subtitle {
    font-size: 26px;
  }
  .ao-404__description {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .ao-404__title {
    font-size: 72px;
  }
  .ao-404__subtitle {
    font-size: 22px;
  }
  .ao-404__buttons {
    flex-direction: column;
    align-items: center;
  }
  .ao-404-v2 {
    padding: 40px 16px;
  }
}
