/**
 * A7la7ayat Podcast RSS - Brand Identity Theme (RTL First)
 * Brand Colors: Pink (#ED217C), Green (#8CC63F), White (#FFFFFF)
 * Version: 1.2.1
 */

:root {
  --a7pr-brand-pink: #ED217C;
  --a7pr-brand-pink-hover: #d01768;
  --a7pr-brand-pink-light: #fef0f6;
  
  --a7pr-brand-green: #8CC63F;
  --a7pr-brand-green-hover: #79b132;
  --a7pr-brand-green-light: #f3faec;

  --a7pr-white: #FFFFFF;
  --a7pr-dark: #1e293b;
  --a7pr-text-main: #2d3748;
  --a7pr-text-muted: #718096;
  
  --a7pr-bg-card: #FFFFFF;
  --a7pr-bg-subtle: #f8fafc;
  --a7pr-border: #edf2f7;
  
  --a7pr-radius: 16px;
  --a7pr-radius-sm: 8px;
  --a7pr-radius-pill: 9999px;
  
  --a7pr-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  --a7pr-shadow-hover: 0 12px 24px rgba(237, 33, 124, 0.12);
  --a7pr-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide theme metadata (author, date, byline) on podcast and show pages */
.single-podcast .entry-meta,
.single-podcast .post-meta,
.single-podcast .byline,
.single-podcast .posted-on,
.single-podcast .author,
.single-podcast .entry-date,
.single-podcast .post-date,
.single-a7pr_show .entry-meta,
.single-a7pr_show .post-meta,
.single-a7pr_show .byline,
.single-a7pr_show .posted-on,
.single-a7pr_show .author,
.single-a7pr_show .entry-date,
.single-a7pr_show .post-date {
  display: none !important;
}

/* Base Wrapper & RTL */
.a7pr-show-container,
.a7pr-single-episode-container,
.a7pr-grid-wrapper {
  direction: rtl;
  text-align: right;
  font-family: inherit;
  color: var(--a7pr-text-main);
  box-sizing: border-box;
}

.a7pr-show-container *,
.a7pr-single-episode-container *,
.a7pr-grid-wrapper * {
  box-sizing: border-box;
}

/* ==========================================================================
   Show Page: Header Section
   ========================================================================== */
.a7pr-show-header {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--a7pr-white);
  border: 1px solid var(--a7pr-border);
  border-right: 5px solid var(--a7pr-brand-pink);
  border-radius: var(--a7pr-radius);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--a7pr-shadow);
}

.a7pr-show-cover-box {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.a7pr-show-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.a7pr-show-details {
  flex-grow: 1;
}

.a7pr-show-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--a7pr-dark);
  line-height: 1.3;
}

.a7pr-show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.a7pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--a7pr-radius-pill);
  font-size: 13px;
  font-weight: 700;
  background: var(--a7pr-brand-pink-light);
  color: var(--a7pr-brand-pink);
  border: 1px solid rgba(237, 33, 124, 0.15);
}

.a7pr-badge-green {
  background: var(--a7pr-brand-green-light);
  color: var(--a7pr-brand-green);
  border-color: rgba(140, 198, 63, 0.2);
}

.a7pr-show-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--a7pr-text-muted);
  margin: 0;
}

/* ==========================================================================
   Filter Toolbar: Live Search & Category Tabs
   ========================================================================== */
.a7pr-toolbar {
  background: var(--a7pr-white);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius);
  padding: 22px;
  margin-bottom: 30px;
  box-shadow: var(--a7pr-shadow);
}

.a7pr-search-box {
  position: relative;
  margin-bottom: 18px;
}

.a7pr-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--a7pr-text-muted);
  font-size: 18px;
  pointer-events: none;
}

.a7pr-search-input {
  width: 100%;
  padding: 12px 46px 12px 40px !important;
  background: var(--a7pr-bg-subtle) !important;
  border: 1px solid var(--a7pr-border) !important;
  border-radius: var(--a7pr-radius-pill) !important;
  font-size: 15px !important;
  color: var(--a7pr-text-main) !important;
  transition: var(--a7pr-transition);
}

.a7pr-search-input:focus {
  background: #ffffff !important;
  border-color: var(--a7pr-brand-pink) !important;
  box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.15) !important;
  outline: none !important;
}

.a7pr-search-clear {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--a7pr-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  display: none;
  transition: var(--a7pr-transition);
}

.a7pr-search-clear:hover {
  color: var(--a7pr-brand-pink);
}

/* Category Tabs (Pills) */
.a7pr-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.a7pr-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--a7pr-bg-subtle);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--a7pr-text-main);
  text-decoration: none;
  cursor: pointer;
  transition: var(--a7pr-transition);
}

.a7pr-cat-pill:hover {
  background: var(--a7pr-brand-pink-light);
  border-color: var(--a7pr-brand-pink);
  color: var(--a7pr-brand-pink);
}

.a7pr-cat-pill.active {
  background: var(--a7pr-brand-pink);
  border-color: var(--a7pr-brand-pink);
  color: var(--a7pr-white);
  box-shadow: 0 4px 12px rgba(237, 33, 124, 0.25);
}

.a7pr-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--a7pr-radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.a7pr-cat-pill.active .a7pr-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--a7pr-white);
}

/* ==========================================================================
   Episodes Grid & Fully Visible Image Cards
   ========================================================================== */
.a7pr-episodes-grid,
.a7pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.2s ease;
}

.a7pr-loading-overlay {
  opacity: 0.45;
  pointer-events: none;
}

.a7pr-card {
  display: flex;
  flex-direction: column;
  background: var(--a7pr-bg-card);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius);
  overflow: hidden;
  box-shadow: var(--a7pr-shadow);
  transition: var(--a7pr-transition);
  position: relative;
}

.a7pr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--a7pr-shadow-hover);
  border-color: var(--a7pr-brand-pink);
}

/* Full Uncropped Image Container (aspect-ratio: 1/1 with contain) */
.a7pr-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--a7pr-border);
}

.a7pr-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.a7pr-card:hover .a7pr-card-thumb {
  transform: scale(1.02);
}

.a7pr-card-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--a7pr-brand-pink);
  color: var(--a7pr-white);
  padding: 4px 12px;
  border-radius: var(--a7pr-radius-pill);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(237, 33, 124, 0.3);
}

.a7pr-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.a7pr-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a7pr-card-title a {
  color: var(--a7pr-dark);
  text-decoration: none;
  transition: var(--a7pr-transition);
}

.a7pr-card-title a:hover {
  color: var(--a7pr-brand-pink);
}

.a7pr-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--a7pr-text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a7pr-audio-box {
  margin-top: auto;
  margin-bottom: 14px;
  background: var(--a7pr-bg-subtle);
  border-radius: var(--a7pr-radius-sm);
  padding: 8px;
  border: 1px solid var(--a7pr-border);
}

.a7pr-audio {
  width: 100%;
  height: 38px;
  outline: none;
}

.a7pr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--a7pr-border);
}

.a7pr-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--a7pr-brand-pink);
  color: var(--a7pr-white) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--a7pr-radius-pill);
  transition: var(--a7pr-transition);
}

.a7pr-listen-btn:hover {
  background: var(--a7pr-brand-pink-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 33, 124, 0.3);
}

.a7pr-listen-btn-green {
  background: var(--a7pr-brand-green);
}
.a7pr-listen-btn-green:hover {
  background: var(--a7pr-brand-green-hover);
  box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
}

/* ==========================================================================
   Numbered Pagination (1, 2, 3...)
   ========================================================================== */
.a7pr-pagination-wrapper {
  text-align: center;
  margin-top: 40px;
}

.a7pr-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.a7pr-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--a7pr-text-main);
  background: var(--a7pr-white);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--a7pr-transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.a7pr-page-btn:hover {
  border-color: var(--a7pr-brand-pink);
  color: var(--a7pr-brand-pink);
  background: var(--a7pr-brand-pink-light);
}

.a7pr-page-btn.active {
  background: var(--a7pr-brand-pink) !important;
  border-color: var(--a7pr-brand-pink) !important;
  color: var(--a7pr-white) !important;
  box-shadow: 0 4px 10px rgba(237, 33, 124, 0.3);
  cursor: default;
}

.a7pr-page-prev,
.a7pr-page-next {
  gap: 6px;
  font-weight: 700;
  color: var(--a7pr-brand-pink);
}

.a7pr-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  font-weight: 700;
  color: var(--a7pr-text-muted);
}

/* Empty State */
.a7pr-no-results,
.a7pr-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--a7pr-white);
  border: 1px dashed var(--a7pr-border);
  border-radius: var(--a7pr-radius);
  grid-column: 1 / -1;
  color: var(--a7pr-text-muted);
}

.a7pr-no-results .dashicons {
  font-size: 42px;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--a7pr-brand-pink);
  opacity: 0.8;
}

.a7pr-no-results p {
  font-size: 16px;
  margin: 0;
}

/* ==========================================================================
   Single Episode Page Layout
   ========================================================================== */
.a7pr-single-episode-container {
  margin: 0 0 35px;
}

.a7pr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--a7pr-text-muted);
  margin-bottom: 20px;
}

.a7pr-breadcrumb a {
  color: var(--a7pr-text-muted);
  text-decoration: none;
  transition: var(--a7pr-transition);
}

.a7pr-breadcrumb a:hover {
  color: var(--a7pr-brand-pink);
}

.a7pr-single-card {
  background: var(--a7pr-white);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius);
  padding: 30px;
  box-shadow: var(--a7pr-shadow);
  margin-bottom: 30px;
}

.a7pr-single-header-grid {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 25px;
}

.a7pr-single-thumb {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 12px;
  object-fit: contain;
  background: #fbfbfb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.a7pr-single-info {
  flex-grow: 1;
}

.a7pr-single-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--a7pr-dark);
}

.a7pr-single-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

/* Single Audio Player Box */
.a7pr-single-player-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--a7pr-white);
  padding: 22px;
  border-radius: 14px;
  margin-top: 15px;
  border-left: 5px solid var(--a7pr-brand-green);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.a7pr-player-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--a7pr-brand-green);
}

.a7pr-single-player-section audio {
  width: 100%;
}

.a7pr-single-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--a7pr-text-main);
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--a7pr-border);
}

/* Social Share Bar */
.a7pr-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--a7pr-border);
}

.a7pr-share-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--a7pr-text-main);
  margin-left: 8px;
}

.a7pr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--a7pr-radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--a7pr-white) !important;
  transition: var(--a7pr-transition);
}

.a7pr-share-whatsapp { background: #25d366; }
.a7pr-share-whatsapp:hover { background: #20ba59; }

.a7pr-share-x { background: #000000; }
.a7pr-share-x:hover { background: #262626; }

.a7pr-share-fb { background: #1877f2; }
.a7pr-share-fb:hover { background: #1464cc; }

.a7pr-share-telegram { background: #229ed9; }
.a7pr-share-telegram:hover { background: #1d88bb; }

.a7pr-copy-link-btn {
  background: var(--a7pr-brand-pink);
  border: none;
  cursor: pointer;
}
.a7pr-copy-link-btn:hover { background: var(--a7pr-brand-pink-hover); }
.a7pr-copy-link-btn.copied { background: var(--a7pr-brand-green); }

/* Episode Navigation (Next/Previous) */
.a7pr-episode-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.a7pr-nav-item {
  background: var(--a7pr-white);
  border: 1px solid var(--a7pr-border);
  border-radius: var(--a7pr-radius-sm);
  padding: 16px;
  text-decoration: none !important;
  color: var(--a7pr-text-main) !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--a7pr-transition);
}

.a7pr-nav-item:hover {
  border-color: var(--a7pr-brand-pink);
  transform: translateY(-2px);
  box-shadow: var(--a7pr-shadow);
}

.a7pr-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--a7pr-brand-pink);
}

.a7pr-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--a7pr-dark);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .a7pr-episodes-grid,
  .a7pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .a7pr-show-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .a7pr-show-cover-box {
    width: 120px;
    height: 120px;
  }
  .a7pr-show-meta {
    justify-content: center;
  }
  .a7pr-single-header-grid {
    flex-direction: column;
    text-align: center;
  }
  .a7pr-single-thumb {
    width: 140px;
    height: 140px;
  }
  .a7pr-single-meta-row {
    justify-content: center;
  }
  .a7pr-episodes-grid,
  .a7pr-grid {
    grid-template-columns: 1fr;
  }
  .a7pr-episode-nav {
    grid-template-columns: 1fr;
  }
}
