/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #f68e23;
  transition: all 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet & Mobile Navigation */
@media (max-width: 1024px) {
  .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    min-height: 70px;
    align-items: center;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  body[dir="rtl"] .hamburger {
    right: auto;
    left: 2rem;
  }

  body[dir="rtl"] .logo {
    left: auto;
    right: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    gap: 0.5rem;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(15, 15, 35, 0.95);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1.2rem 1.5rem;
    justify-content: center;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background: rgba(246, 142, 35, 0.1);
  }

  .nav-link svg {
    width: 24px;
    height: 24px;
  }

  .nav-link .equalizer {
    display: none;
  }

  .theme-toggle {
    margin: 0;
    width: 100%;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
  }
}

/* Large Desktop (1328px+) */
@media (min-width: 1328px) {
  .nav-container, .radio-container, .search-container, .blog-header {
    max-width: 1280px;
  }

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

/* Desktop (1200px) */
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 2rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tablets (1024px) */
@media (max-width: 1024px) {
  .radio-circle {
    width: 250px;
    height: 250px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .blog-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .blog-title-container {
    flex-direction: column;
    text-align: center;
  }

  .search-icon svg {
    width: 60px;
    height: 60px;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .logo-text {
    height: 50px;
  }

  .radio-section {
    padding: 3rem 1rem;
  }

  .radio-circle {
    width: 220px;
    height: 220px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  #postsGrid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 3rem 1rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .logo-text {
    height: 45px;
  }

  .radio-circle {
    width: 180px;
    height: 180px;
  }

  .play-button svg {
    width: 30px;
    height: 30px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .radio-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .volume-control {
    width: 100%;
  }

  #postsGrid {
    grid-template-columns: 1fr;
  }
}

/* iPad Mini Portrait (768x1024) - Keep controls in one row */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .radio-controls {
    flex-direction: row;
    gap: 2rem;
  }

  .volume-control {
    width: auto;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .search-title {
    font-size: 1.5rem;
  }

  .search-subtitle {
    font-size: 0.9rem;
  }

  .blog-icon svg {
    width: 40px;
    height: 40px;
  }

  .blog-title-container h2 {
    font-size: 1.3rem;
  }

  .blog-subtitle {
    font-size: 0.85rem;
  }

  .content-card {
    padding: 1.2rem;
  }

  .podcast-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .play-btn {
    width: auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }



  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .blog-post {
    cursor: pointer;
  }
}
}

/* Small screens (360px and below) */
@media (max-width: 360px) {
  .content-card > div:first-child {
    height: 180px !important;
  }
}

/* Tablet Portrait - Collapse articles */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-post {
    cursor: pointer;
  }
}

/* iPad Air Portrait (820x1180) */
@media (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-post {
    cursor: pointer;
  }
}

/* iPad Pro Portrait (1024x1366) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-post {
    cursor: pointer;
  }
}

/* iPad Pro Landscape (1024x1366) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .radio-section {
    min-height: 70vh;
  }

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

/* iPad Air Portrait (820x1180) */
@media (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
  .radio-circle {
    width: 240px;
    height: 240px;
  }

  .content-card > div:first-child {
    height: 300px !important;
  }
}

/* iPad Pro 12.9" Portrait (1024x1366) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .radio-circle {
    width: 280px;
    height: 280px;
  }
}

/* Tablet Portrait (921x1368) */
@media (min-width: 921px) and (max-width: 1368px) and (orientation: portrait) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Height-based media query for short screens */
@media (max-height: 695px) {
  .radio-section {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .radio-circle {
    width: 180px;
    height: 180px;
  }

  .hero-content {
    margin-bottom: 1.5rem;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

/* RTL Support for Mobile Menu */
body[dir="rtl"] .nav-links {
  right: auto;
  left: -100%;
}

body[dir="rtl"] .nav-links.active {
  left: 0;
  right: auto;
}
