/**
 * Streamzy Custom Page Styles
 * Additional styles for blog, contact, and about pages
 */

/* ===========================
   Navigation Menu Styles
   =========================== */

/* Navigation Menu Container - matching sample design */
#menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    #menu ul {
        flex-direction: row;
    }
}

/* Navigation Menu Items */
#menu ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Navigation Links - matching [&_a]:px-6 from sample */
#menu ul li a {
    display: block;
    padding-left: 1.5rem;  /* px-6 = 1.5rem = 24px */
    padding-right: 1.5rem;
    font-size: 1rem;       /* text-base */
    font-weight: 700;      /* font-bold */
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

#menu ul li a:hover {
    opacity: 0.8;
}

/* Remove WordPress default menu classes styling conflicts */
#menu ul li.current-menu-item a,
#menu ul li.current_page_item a {
    opacity: 1;
}

/* Mobile Menu Adjustments */
@media (max-width: 767px) {
    #menu ul {
        width: 100%;
        padding: 1rem 0;
    }

    #menu ul li {
        width: 100%;
    }

    #menu ul li a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   Blog Archive Styles
   =========================== */

.category-filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(47, 53, 93, 0.3);
  border: 1px solid #2F3555;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: #3756fe;
  border-color: #3756fe;
  transform: translateY(-2px);
}

.blog-card-wrapper {
  transition: transform 0.3s ease;
}

.blog-card-wrapper:hover {
  transform: translateY(-5px);
}

.blog-card-image img {
  transition: transform 0.3s ease;
}

.blog-card-image:hover img {
  transform: scale(1.05);
}

/* ===========================
   Pagination Styles
   =========================== */

.pagination-list {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pagination-list li {
  display: inline-block;
}

.pagination-list a,
.pagination-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(47, 53, 93, 0.3);
  border: 1px solid #2F3555;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-list a:hover {
  background: #3756fe;
  border-color: #3756fe;
  transform: translateY(-2px);
}

.pagination-list .current {
  background: #3756fe;
  border-color: #3756fe;
}

/* ===========================
   Single Post Content Styles
   =========================== */

.post-content {
  color: #b4b7c8;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 2rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.post-content a {
  color: #3756fe;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.post-content a:hover {
  opacity: 0.8;
}

.post-content ul,
.post-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
  color: #b4b7c8;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  border-left: 4px solid #3756fe;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #828cc1;
  background: rgba(55, 86, 254, 0.05);
  padding: 1.5em;
  border-radius: 8px;
}

.post-content code {
  background: rgba(55, 86, 254, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #3756fe;
}

.post-content pre {
  background: #1C164B;
  border: 1px solid #2F3555;
  border-radius: 8px;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #b4b7c8;
  font-size: 0.875rem;
}

.post-content img {
  border-radius: 12px;
  margin: 2em 0;
  width: 100%;
  height: auto;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  border: 1px solid #2F3555;
  border-radius: 8px;
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 12px;
  border: 1px solid #2F3555;
  text-align: left;
}

.post-content th {
  background: rgba(55, 86, 254, 0.1);
  font-weight: 600;
  color: #ffffff;
}

.post-content hr {
  border: none;
  border-top: 1px solid #2F3555;
  margin: 3em 0;
}

/* ===========================
   Line Clamp Utilities
   =========================== */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   Form Styles
   =========================== */

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #8F90A6;
  opacity: 1;
}

/* ===========================
   Animation Utilities
   =========================== */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===========================
   Scroll Behavior
   =========================== */

html {
  scroll-behavior: smooth;
}

/* ===========================
   Comments Styles
   =========================== */

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

.comment {
  padding: 24px;
  border-radius: 16px;
  background: rgba(47, 53, 93, 0.3);
  border: 1px solid #2F3555;
  margin-bottom: 16px;
}

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

.comment-meta {
  font-size: 14px;
  color: #828cc1;
  margin-bottom: 12px;
}

.comment-content p {
  color: #b4b7c8;
  line-height: 1.6;
  margin: 0;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 12px;
  color: #3756fe;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.comment-reply-link:hover {
  opacity: 0.8;
}

.children {
  list-style: none;
  padding-left: 32px;
  margin-top: 16px;
}

/* ===========================
   Responsive Tweaks
   =========================== */

/* ===========================
   Elementor Blog Details Styles
   =========================== */

/* Hover effects for social share buttons */
.elementor-section a[style*="border-radius: 50%"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(55, 86, 254, 0.3);
}

/* Related posts card hover */
.streamzy-blog-card:hover {
  transform: translateY(-8px);
}

.streamzy-blog-card a[style*="object-fit: cover"]:hover {
  transform: scale(1.05);
}

/* CTA Buttons hover effects */
.elementor-section a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(55, 86, 254, 0.5);
}

/* Tag hover effects */
.elementor-section a[href*="tag/"]:hover,
.elementor-section a[style*="border-radius: 20px"]:hover {
  background: rgba(55, 86, 254, 0.2) !important;
  border-color: #3756fe !important;
  color: #ffffff !important;
}

/* Related article title hover */
.streamzy-blog-title a:hover {
  color: #3756fe !important;
}

/* Read more link hover */
.streamzy-blog-content a[href]:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .category-filter-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .blog-card-wrapper .bg-[#2F355D80] {
    padding: 16px !important;
  }

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

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .children {
    padding-left: 16px;
  }

  /* Mobile responsive for Elementor blog details */
  .elementor-section > .container {
    padding: 0 15px !important;
  }

  .elementor-section div[style*="flex"] {
    flex-direction: column !important;
  }

  .elementor-section div[style*="gap: 30px"] {
    gap: 15px !important;
  }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
  .blog-card-image {
    page-break-inside: avoid;
  }

  .post-content {
    color: #000;
  }

  .post-content a {
    color: #000;
    text-decoration: underline;
  }
}

/* ===========================
   404 Page Styles
   =========================== */

.btn-outline {
  padding: 14px 32px;
  border-radius: 50px;
  background: transparent;
  border: 2px solid #3756fe;
  color: #3756fe;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: #3756fe;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===========================
   Search Form Styles
   =========================== */

.search-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Author Page Styles
   =========================== */

.author-bio {
  background: rgba(47, 53, 93, 0.3);
  border: 1px solid #2F3555;
  border-radius: 20px;
  padding: 32px;
}

/* ===========================
   Page Content Styles
   =========================== */

.page-content {
  color: #b4b7c8;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  color: #ffffff;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.page-content h2 {
  font-size: 2rem;
}

.page-content h3 {
  font-size: 1.5rem;
}

.page-content h4 {
  font-size: 1.25rem;
}

.page-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.page-content a {
  color: #3756fe;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.page-content a:hover {
  opacity: 0.8;
}

.page-content ul,
.page-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
  color: #b4b7c8;
}

.page-content li {
  margin-bottom: 0.5em;
}

.page-links span {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(55, 86, 254, 0.1);
  border: 1px solid #3756fe;
  color: #3756fe;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-links span:hover {
  background: #3756fe;
  color: #ffffff;
}

/* ===========================
   Blog Post Comparison Styles
   =========================== */

/* Winner Badge Styling */
.post-content p strong:first-child {
  position: relative;
}

.post-content p:has(strong:contains("Winner")) {
  background: linear-gradient(135deg, rgba(55, 86, 254, 0.1) 0%, rgba(55, 86, 254, 0.05) 100%);
  border-left: 4px solid #3756fe;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  position: relative;
}

.post-content p:has(strong:contains("Winner"))::before {
  content: "🏆";
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

/* Enhanced Table Styling */
.post-content figure:has(table) {
  margin: 2.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.post-content table {
  background: rgba(28, 22, 75, 0.6);
  border: 1px solid #2F3555;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.post-content thead th {
  background: linear-gradient(135deg, rgba(55, 86, 254, 0.2) 0%, rgba(55, 86, 254, 0.1) 100%);
  font-size: 1.1rem;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content tbody tr {
  transition: background 0.2s ease;
}

.post-content tbody tr:hover {
  background: rgba(55, 86, 254, 0.08);
}

.post-content tbody td {
  padding: 1rem;
  vertical-align: top;
}

.post-content tbody td:first-child {
  font-weight: 600;
  color: #ffffff;
}

/* Checkmark styling in tables */
.post-content tbody td:has-text("✅") {
  color: #4ade80;
}

/* Section Divider Enhancement */
.post-content h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3756fe 0%, transparent 100%);
  border-radius: 2px;
}

/* H3 subtle accent */
.post-content h3 {
  position: relative;
  padding-left: 1rem;
  margin-top: 2.5rem;
}

.post-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: calc(100% - 1rem);
  background: #3756fe;
  border-radius: 2px;
}

/* List Style Enhancement */
.post-content ul li strong:first-child {
  color: #3756fe;
  display: block;
  margin-bottom: 0.25rem;
}

.post-content ul {
  list-style: none;
  padding-left: 0;
}

.post-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.post-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3756fe;
  font-weight: bold;
  font-size: 1.2rem;
}

/* CTA Button Styling */
.post-content a[href*="cloud"] {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3756fe 0%, #5b7cff 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(55, 86, 254, 0.3);
  transition: all 0.3s ease;
  margin: 0.5rem 0;
}

.post-content a[href*="cloud"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(55, 86, 254, 0.4);
  opacity: 1 !important;
}

/* FAQ Section Styling */
.post-content h2:has-text("Frequently Asked Questions"),
.post-content h2:has-text("FAQ") {
  margin-top: 4rem;
  margin-bottom: 2rem;
  text-align: center;
}

.post-content h3:has-text("Can I"),
.post-content h3:has-text("Which platform"),
.post-content h3:has-text("Do I need") {
  background: rgba(55, 86, 254, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

.post-content h3:has-text("Can I")::before,
.post-content h3:has-text("Which platform")::before,
.post-content h3:has-text("Do I need")::before {
  content: "Q:";
  position: absolute;
  left: 0.5rem;
  color: #3756fe;
  font-weight: 800;
  background: none;
  width: auto;
  height: auto;
}

/* Pricing Highlight */
.post-content li:has-text("$") strong {
  color: #4ade80;
  font-size: 1.1em;
}

/* Edge/Tie Badge */
.post-content p:has(strong:contains("Edge")),
.post-content p:has(strong:contains("Tie")) {
  background: rgba(180, 183, 200, 0.1);
  border-left: 4px solid #828cc1;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Featured Image Enhancement */
.post-content > img:first-of-type {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  margin: 2.5rem 0;
}

/* Last Updated Badge */
.post-content p:has(strong:contains("Last Updated")) {
  text-align: center;
  padding: 0.75rem;
  background: rgba(47, 53, 93, 0.3);
  border: 1px solid #2F3555;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .post-content p:has(strong:contains("Winner"))::before {
    position: static;
    display: inline-block;
    margin-right: 0.5rem;
    transform: none;
  }

  .post-content figure:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .post-content table {
    min-width: 600px;
  }

  .post-content h2::after {
    width: 40px;
  }
}
