/*
Theme Name: Aazra AI Academy
Theme URI: https://aazrauniversity.com
Author: Rihan Rajput
Author URI: https://aazrauniversity.com
Description: A modern, responsive WordPress theme for AI tools and tech news blog. Features emerald green and sky blue color scheme with clean card-style layouts, perfect for showcasing AI content, tutorials, and technology insights.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aazra-ai-academy
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout
*/

/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

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

:root {
  --emerald: #10b981;
  --dark-green: #047857;
  --mint: #d1fae5;
  --soft-mint: #ecfdf5;
  --sky-blue: #0ea5e9;
  --indigo: #4f46e5;
  --light-blue: #e0f2fe;
  --text-dark: #111827;
  --text-gray: #374151;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--indigo);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  margin-bottom: 1rem;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-content {
  padding: 40px 0;
  min-height: 60vh;
}

/* ===================================
   HEADER
   =================================== */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--emerald);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.site-logo span {
  color: var(--emerald);
}

.custom-logo-link img {
  max-height: 50px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
}

.main-navigation a {
  color: var(--text-gray);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--emerald);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

.header-search {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--emerald);
}

.search-form button {
  padding: 10px 20px;
  background: var(--emerald);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background: var(--dark-green);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===================================
   CONTENT AREA
   =================================== */

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 40px;
}

.main-content {
  min-width: 0;
}

/* ===================================
   POST CARDS
   =================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft-mint);
}

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

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content {
  padding: 24px;
}

.post-category {
  display: inline-block;
  background: var(--mint);
  color: var(--dark-green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.post-card .entry-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.post-card .entry-title a {
  color: var(--text-dark);
}

.post-card .entry-title a:hover {
  color: var(--emerald);
}

.entry-excerpt {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.read-more {
  color: var(--sky-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover {
  color: var(--indigo);
  gap: 10px;
}

.read-more::after {
  content: '→';
  font-size: 18px;
}

/* ===================================
   SINGLE POST
   =================================== */

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

.single-post-header .entry-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.single-post-header .entry-meta {
  justify-content: center;
  font-size: 16px;
}

.single-featured-image {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content img {
  border-radius: 8px;
  margin: 2rem 0;
}

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

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--emerald);
  padding-left: 24px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.widget {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--emerald);
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-gray);
  display: block;
}

.widget ul li a:hover {
  color: var(--emerald);
  padding-left: 8px;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination .page-numbers {
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-gray);
  font-weight: 600;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

/* ===================================
   COMMENTS
   =================================== */

.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border);
}

.comments-title {
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
}

.comment {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 8px;
}

.comment-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.comment-content {
  color: var(--text-gray);
}

.comment-reply-link {
  font-size: 14px;
  color: var(--sky-blue);
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
}

.comment-form input[type="submit"] {
  padding: 12px 32px;
  background: var(--emerald);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background: var(--dark-green);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 12px;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
  color: var(--mint);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-bottom a {
  color: var(--mint);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: var(--sky-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--indigo);
  transform: translateY(-2px);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--border);
  }

  .main-navigation a {
    display: block;
    padding: 16px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .header-search {
    order: 2;
  }

  .search-form input[type="search"] {
    min-width: 150px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .single-post-header .entry-title {
    font-size: 32px;
  }

  .entry-content {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .site-content {
    padding: 24px 0;
  }

  .search-form {
    flex-direction: column;
    width: 100%;
  }

  .search-form input[type="search"] {
    width: 100%;
  }
}
