/* Enhanced UI Styles for YourReviews website */

:root {
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --neutral-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Enhanced Hero Section */
.page-header {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255, 255, 255, 0.05)" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,170.7C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.5;
  z-index: 0;
  animation: wave 15s infinite linear;
}

@keyframes wave {
  0% {
    background-position: 0 bottom;
  }
  100% {
    background-position: 1440px bottom;
  }
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: white;
  font-size: 3.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
}

/* Review breadcrumb navigation - fixing contrast issue */
.review-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.review-breadcrumb a {
  color: white;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.review-breadcrumb a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.review-breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Review meta information contrast fixes */
.review-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-rating .stars {
  color: #FFD700; /* Gold color for stars */
  display: flex;
}

.review-rating .rating-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.review-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Enhanced Section Styling */
section {
  padding: 5rem 0;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

section h2:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* About Page Styling */
.about-section {
  margin-bottom: 4rem;
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-section h2:after {
  left: 0;
  transform: none;
  width: 60px;
  bottom: -0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--neutral-gradient);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Contact Page Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

.contact-form-container, .contact-info-container {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-form-container:hover, .contact-info-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, 
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.note {
  color: var(--light-text);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--neutral-gradient);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Categories Page Styling */
.categories-content {
  padding-bottom: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.category-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
  width: 70px;
  height: 70px;
  margin: 2rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--neutral-gradient);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.subcategory-list {
  list-style: none;
  padding: 0 2rem 1.5rem;
  margin-top: 1.5rem;
}

.subcategory-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}

.subcategory-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.subcategory-list li:hover:before {
  left: 0.25rem;
}

.subcategory-list a {
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.subcategory-list a:hover {
  color: var(--primary-color);
}

.view-all {
  margin-top: auto;
  padding: 0.75rem;
  background: var(--neutral-gradient);
  text-align: center;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all:hover {
  background: var(--accent-gradient);
  color: white;
}

.category-search-section {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 3rem;
}

.search-box {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 2rem 0 0 2rem;
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-box button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0 2rem 2rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-box button:hover {
  filter: brightness(1.1);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--neutral-gradient);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  background: var(--primary-gradient);
  color: white;
}

/* Enhanced Navigation */
.main-nav .nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.main-nav .nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
  width: 80%;
}

/* Enhanced Footer */
.site-footer {
  background: var(--secondary-color);
  color: white;
  padding-top: 4rem;
  position: relative;
}

/* The orange line is now handled by an inline div in the HTML */
/*
.site-footer {
  border-top: 10px solid #f59e0b;
}
*/

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--accent-gradient);
  bottom: -0.5rem;
  left: 0;
  border-radius: 3px;
}

.footer-section p {
  color: white !important;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Add styling for footer links */
.footer-section a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary-darker);
}

/* Keep social icons with white text */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
  color: white;
}

/* Email capture section */
.email-capture-section {
  background: var(--neutral-gradient);
  border-radius: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  padding: 4rem 0;
}

.email-capture-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.email-form {
  display: flex;
  margin: 2rem 0 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 2rem 0 0 2rem;
  font-size: 1rem;
}

.email-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.email-form button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 2rem 2rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-form button:hover {
  filter: brightness(1.1);
}

.form-disclaimer {
  font-size: 0.875rem;
  color: var(--light-text);
}

.subscriber-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Animated elements */
.animated-element {
  transition: all 0.5s ease;
}

.animated-element:hover {
  transform: translateY(-5px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Helper class */
.text-center {
  text-align: center;
}

/* Responsive Styling */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input {
    border-radius: 2rem;
    margin-bottom: 1rem;
  }
  
  .email-form button {
    border-radius: 2rem;
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .category-search-section {
    padding: 2rem 1rem;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box input {
    border-radius: 2rem;
    margin-bottom: 1rem;
  }
  
  .search-box button {
    border-radius: 2rem;
  }
}

/* Sample categories notice */
.sample-categories-notice {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  margin-bottom: 30px;
  width: 100%;
}

.sample-categories-notice i {
  color: #856404;
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 3px;
}

.sample-categories-notice h3 {
  color: #856404;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.sample-categories-notice p {
  color: #856404;
  margin: 0;
  font-size: 0.95rem;
}

.sample-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffc107;
  color: #856404;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sample-category {
  position: relative;
  border: 1px dashed #ffc107;
}

.category-post-count {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 5px;
  display: block;
}

.loading-categories {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.loading-categories i {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 15px;
}

.loading-categories p {
  color: #6c757d;
  font-size: 1rem;
}

.no-categories-message {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 30px 0;
}

.no-categories-message i {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 15px;
}

.no-categories-message h3 {
  font-size: 1.5rem;
  color: #343a40;
  margin-bottom: 10px;
}

.no-categories-message p {
  color: #6c757d;
  max-width: 500px;
  margin: 0 auto;
}

/* Performance optimizations for scrolling - modified to preserve animations */
/* We selectively manage pointer events instead of disabling all interactions during scroll */

.is-scrolling .animated-element {
  pointer-events: none;
}

.is-scrolling .site-header,
.is-scrolling .site-footer,
.is-scrolling .back-to-top,
.is-scrolling button,
.is-scrolling a {
  pointer-events: auto !important;
}

/* Prevent height recalculations during scroll */
img, video, iframe {
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* Prevent layout shifts from lazy-loaded images */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 1px;
}

img.lazy-load.loaded {
  opacity: 1;
}

/* Improve responsiveness of fixed elements */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  
  .scrolling-down .site-header {
    transform: translateY(-100%);
  }
  
  .scrolling-up .site-header {
    transform: translateY(0);
  }
}

/* Restore animations during scroll */
[data-aos] {
  transform: translateZ(0);
  will-change: transform, opacity;
  /* Removed pointer-events: none to allow animations */
} 