/* ============================================================
   AO App — style.css
   Premium glassmorphism içerik platformu
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---- TOKENS ---- */
.ao-app {
  --bg:          #f5f7ff;
  --card:        rgba(255,255,255,0.72);
  --blur:        blur(20px);
  --r-xl:        24px;
  --r-lg:        18px;
  --r-md:        12px;
  --primary:     #6c5ce7;
  --primary-lt:  #a29bfe;
  --accent:      #81ecec;
  --text:        #2d3436;
  --muted:       #888;
  --shadow:      0 10px 40px rgba(0,0,0,0.06);

  font-family:   'Poppins', sans-serif;
  background:    var(--bg);
  position:      relative;
  padding:       20px;
  min-height:    100vh;
  box-sizing:    border-box;
}
.ao-app *, .ao-app *::before, .ao-app *::after { box-sizing: inherit; }

/* ---- FLOATING BLOBS ---- */
.ao-app::before,
.ao-app::after {
  content: "";
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.ao-app::before { background: var(--primary-lt); top: -100px; left: -100px; }
.ao-app::after  { background: var(--accent);     bottom: -100px; right: -100px; }

/* ---- HEADER ---- */
.ao-header {
  position: relative; z-index: 2;
  margin-bottom: 20px;
  padding: 18px 30px;
  border-radius: var(--r-xl);
  background: var(--card);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ao-logo { font-weight: 700; font-size: 20px; color: var(--primary); }
.ao-menu a {
  margin: 0 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.ao-menu a:hover { color: var(--primary); }

/* ---- LAYOUT ---- */
.ao-container {
  position: relative; z-index: 1;
  display: flex;
  gap: 20px;
}

/* ---- SIDEBAR ---- */
.ao-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--card);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  height: max-content;
}
.ao-sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 20px 0 10px;
}
.ao-sidebar h4:first-child { margin-top: 0; }
.ao-filter-item {
  padding: 9px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 14px;
  transition: background .18s, color .18s;
  margin-bottom: 3px;
}
.ao-filter-item:hover  { background: #eef1ff; }
.ao-filter-item.active { background: #e3e8ff; color: #4c56d7; font-weight: 600; }

/* ---- CARD GRID ---- */
.ao-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
}
.ao-cards.loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ---- CARD ---- */
.ao-card {
  position: relative;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--card);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: aoFadeUp .5s ease both;
}
.ao-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(108,92,231,.15);
}

/* subtle glow blob inside card */
.ao-card::before {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--primary-lt), transparent);
  top: -30px; right: -30px;
  opacity: .35;
  pointer-events: none;
}

/* ---- CARD IMAGE ---- */
.ao-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  display: block;
}

/* ---- CARD ICON ---- */
.ao-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #f1f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.ao-card-icon svg { width: 22px; height: 22px; stroke: var(--primary); stroke-width: 2; }

/* ---- CARD TEXTS ---- */
.ao-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); line-height: 1.3; }
.ao-card p  { margin: 0; font-size: 13px; color: #5a6166; line-height: 1.6; }

/* ---- TAGS ---- */
.ao-tags { margin-top: 10px; }
.ao-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 5px;
}
.ao-tag.yellow { background: #ffeaa7; color: #7c6000; }
.ao-tag.blue   { background: #dfe6ff; color: #2c3ecc; }

/* ---- META ---- */
.ao-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.ao-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---- ACTIONS ---- */
.ao-actions { display: flex; gap: 10px; margin-top: 12px; }
.ao-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-md);
  border: none;
  background: #eef1ff;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: background .2s, transform .15s;
  display: inline-block;
  line-height: 1.4;
}
.ao-btn:hover { background: #dde3ff; transform: translateY(-1px); }
.ao-fav-btn.active {
  background: #ffe3ea;
  box-shadow: 0 6px 18px rgba(255,90,130,.18);
}

/* ---- EMPTY / ERROR ---- */
.ao-no-result {
  background: rgba(255,255,255,.75);
  padding: 20px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  font-size: 14px; color: var(--muted);
}

/* ---- ANIMATION ---- */
@keyframes aoFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .ao-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ao-header { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .ao-menu   { flex-wrap: wrap; }
  .ao-menu a { margin: 4px 10px 0 0; }
  .ao-container { flex-direction: column; }
  .ao-sidebar   { width: 100%; }
}
