/* ============================================
   Blog Posts
   ============================================ */
.ao-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--ao-spacing-lg);
}

.ao-post-card {
  display: flex;
  gap: var(--ao-spacing-lg);
  background-color: var(--ao-bg-card);
  border-radius: var(--ao-radius-lg);
  box-shadow: var(--ao-shadow);
  overflow: hidden;
  transition: var(--ao-transition);
}

.ao-post-card:hover {
  box-shadow: var(--ao-shadow-lg);
}

.ao-post-card__thumbnail {
  flex-shrink: 0;
  width: 300px;
}

.ao-post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ao-post-card__content {
  flex: 1;
  padding: var(--ao-spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ao-post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--ao-spacing-md);
  margin-bottom: var(--ao-spacing-sm);
  font-size: var(--ao-text-xs);
  color: var(--ao-text-light);
}

.ao-post-card__category a {
  color: var(--ao-primary);
  font-weight: 500;
}

.ao-post-card__title {
  font-size: var(--ao-text-xl);
  margin-bottom: var(--ao-spacing-sm);
}

.ao-post-card__title a {
  color: var(--ao-text);
}

.ao-post-card__title a:hover {
  color: var(--ao-primary);
}

.ao-post-card__excerpt {
  color: var(--ao-text-light);
  font-size: var(--ao-text-sm);
  margin-bottom: var(--ao-spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Footer (Premium UI)
   ============================================ */
.ao-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--ao-bg-card), var(--ao-bg));
  border-top: 1px solid var(--ao-border-light);
  margin-top: 3rem;
}

.ao-footer__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ao-footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse-footer 4s ease-in-out infinite;
}

.ao-footer__orb--1 {
  top: -10rem;
  left: -10rem;
  width: 20rem;
  height: 20rem;
  background: rgba(var(--ao-primary-rgb), 0.15);
}

.ao-footer__orb--2 {
  top: 5rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(var(--ao-primary-rgb), 0.1);
  animation-delay: 1s;
}

.ao-footer__orb--3 {
  bottom: 0;
  left: 33%;
  width: 18rem;
  height: 18rem;
  background: rgba(var(--ao-primary-rgb), 0.08);
  animation-delay: 2s;
}

.ao-footer__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ao-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--ao-border-light) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.3;
}

.ao-footer__border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--ao-primary),
    transparent
  );
  opacity: 0.5;
}

.ao-footer__content {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 1;
}

.ao-footer__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Brand Section */
.ao-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ao-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ao-footer__logo-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    var(--ao-primary),
    var(--ao-primary-hover)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(var(--ao-primary-rgb), 0.25);
  overflow: hidden;
}

.ao-footer__logo-icon img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.ao-footer__logo-icon span {
  color: white;
  font-weight: 900;
  font-size: 1.125rem;
  text-transform: uppercase;
}

.ao-footer__logo-status {
  display: none;
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  border: 2px solid var(--ao-bg);
  animation: pulse-footer 2s ease-in-out infinite;
}

.ao-footer__logo-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ao-text);
  margin: 0;
}

.ao-footer__logo-text p {
  font-size: 0.75rem;
  color: var(--ao-text-light);
  font-weight: 500;
  margin: 0;
}

.ao-footer__desc {
  color: var(--ao-text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 24rem;
  margin: 0;
}

.ao-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--ao-bg-alt);
  border: 1px solid var(--ao-border-light);
  width: fit-content;
}

.ao-footer__status-dot {
  position: relative;
  display: flex;
  width: 0.625rem;
  height: 0.625rem;
}

.ao-footer__status-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  animation: ping-footer 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.ao-footer__status-core {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  width: 0.625rem;
  height: 0.625rem;
  background: #10b981;
}

.ao-footer__status span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ao-text-light);
}

/* Social Links */
.ao-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.ao-footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--ao-bg-alt);
  border: 1px solid var(--ao-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ao-text-light);
  transition: all 0.3s ease;
}

.ao-footer__social-link:hover {
  background: var(--ao-primary);
  border-color: var(--ao-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px -5px rgba(var(--ao-primary-rgb), 0.3);
}

.ao-footer__social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Links Section */
.ao-footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ao-footer__section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Override existing widget styles inside footer */
.ao-footer__section .ao-widget {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ao-footer__section .ao-widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ao-text) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1rem !important;
}

/* Dot icon before title */
.ao-footer__section .ao-widget-title::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  background: linear-gradient(
    135deg,
    var(--ao-primary),
    var(--ao-primary-hover)
  );
  border-radius: 3px;
  margin-right: 0.3rem;
}

.ao-footer__section .ao-widget-title::after {
  display: none !important;
}

.ao-footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ao-footer__section a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ao-text-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ao-footer__section a:hover {
  color: var(--ao-text);
  transform: translateX(4px);
}

.ao-footer__section a::before {
  content: "";
  display: inline-block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--ao-border-light);
  transition: all 0.2s ease;
}

.ao-footer__section a:hover::before {
  background: var(--ao-primary);
  width: 0.5rem;
}

/* Bottom Bar */
.ao-footer__bottom {
  position: relative;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ao-border-light);
  background: transparent;
  z-index: 1;
}

.ao-footer__bottom-line {
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--ao-primary),
    transparent
  );
  opacity: 0.3;
}

.ao-footer__bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ao-footer__copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ao-text-light);
  font-size: 0.75rem;
}

.ao-footer__made {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ao-footer__note {
  color: var(--ao-text-light);
  font-size: 0.75rem;
  opacity: 0.7;
}

.ao-footer__heart-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--ao-bg-alt);
  border: 1px solid var(--ao-border-light);
}

.ao-footer__heart-badge span {
  font-size: 0.75rem;
  color: var(--ao-text-light);
}

.ao-footer__heart-badge svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #ef4444;
  animation: heartbeat-footer 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes pulse-footer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes ping-footer {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes heartbeat-footer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Responsive Overrides */
@media (min-width: 640px) {
  .ao-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
  .ao-footer__bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .ao-footer__links {
    grid-template-columns: repeat(4, 1fr);
  }
  .ao-footer__content {
    padding: 4rem 0;
  }
  .ao-footer__layout {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}
