/**
 * Pages CSS - Shared styles for static pages
 * Used by: privacy.php, terms.php, dmca.php, about.php, contact.php
 * Extracted from inline styles to reduce duplication
 */

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.page-content {
  padding: 2rem 0 4rem;
  min-height: 80vh;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.header-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Page Container */
.privacy-container,
.terms-container,
.dmca-container,
.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   INTRO SECTIONS
   ============================================ */
.privacy-intro,
.terms-intro,
.dmca-intro,
.about-intro {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.intro-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.intro-content {
  flex: 1;
}

.intro-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.intro-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   MAIN CONTENT AREAS
   ============================================ */
.privacy-content,
.terms-content,
.dmca-content,
.about-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ============================================
   SECTIONS
   ============================================ */
.privacy-section,
.terms-section,
.dmca-section,
.about-section {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.privacy-section:hover,
.terms-section:hover,
.dmca-section:hover,
.about-section:hover {
  background-color: var(--bg-secondary);
}

.privacy-section.last-section,
.terms-section.last-section,
.dmca-section.last-section,
.about-section.last-section {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.privacy-section h2,
.terms-section h2,
.dmca-section h2,
.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.section-content ul {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.5rem;
}

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

/* ============================================
   GRID LAYOUTS
   ============================================ */
.info-types,
.cookies-types,
.rights-grid,
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-types {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sharing-scenarios {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.info-type-card,
.scenario-card,
.right-card,
.cookie-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.info-type-card:hover,
.scenario-card:hover,
.right-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.cookie-item {
  padding: 1.25rem;
}

.type-icon,
.scenario-icon,
.right-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.right-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Scenario Icon Colors */
.scenario-icon.service-provider {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.scenario-icon.legal {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.scenario-icon.business-transfer {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.scenario-icon.affiliates {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* Card Typography */
.info-type-card h4,
.scenario-card h4,
.right-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.right-card h4 {
  font-size: 0.9rem;
}

.info-type-card p,
.scenario-card p,
.right-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.right-card p {
  font-size: 0.75rem;
}

/* Cookie Type Badge */
.cookie-type {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cookie-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   LIST STYLES
   ============================================ */
.purpose-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.purpose-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  align-items: flex-start;
}

.purpose-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.purpose-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.purpose-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Terms List */
.terms-list,
.dmca-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.terms-list li,
.dmca-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.terms-list li i,
.dmca-list li i {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.terms-list .fa-times-circle,
.dmca-list .fa-times-circle {
  color: #ef4444;
  font-size: 1.1rem;
}

.terms-list .fa-check-circle {
  color: var(--success-color);
  font-size: 1.1rem;
}

.terms-list .fa-ban {
  color: #ef4444;
  font-size: 1rem;
}

.check-list,
.safe-harbor-list {
  background: rgba(16, 185, 129, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ============================================
   NOTICE & ALERT BOXES
   ============================================ */
.terms-note,
.cookies-note,
.rights-note {
  background: rgba(249, 115, 22, 0.1);
  border-left: 4px solid #f97316;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.cookies-note {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
}

.rights-note {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1rem;
  border-left: none;
}

.change-notice,
.info-notice {
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.change-notice i,
.info-notice i {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Security Info Box */
.security-info {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  border: 1px solid var(--success-color);
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.security-icon {
  width: 60px;
  height: 60px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.security-text {
  flex: 1;
}

.security-text p {
  margin-bottom: 1rem;
}

.security-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.security-features li i {
  color: var(--success-color);
}

/* Children Notice */
.children-notice {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(248, 113, 113, 0.1)
  );
  border: 1px solid #ef4444;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.children-notice i {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.children-notice p {
  color: var(--text-primary);
  margin: 0;
}

/* ============================================
   CONTACT & LINKS
   ============================================ */
.text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.text-link:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.contact-option i {
  color: var(--primary-color);
}

/* ============================================
   PAGE ACTIONS (CTA)
   ============================================ */
.page-actions {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-light));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.actions-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.actions-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-buttons .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-buttons .btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.action-buttons .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-buttons .btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.action-buttons .btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .header-icon {
    font-size: 2.5rem;
  }

  .privacy-intro,
  .terms-intro,
  .dmca-intro,
  .about-intro {
    flex-direction: column;
    padding: 1.5rem;
  }

  .intro-icon {
    align-self: center;
  }

  .privacy-section,
  .terms-section,
  .dmca-section,
  .about-section {
    padding: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .section-number {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .privacy-section h2,
  .terms-section h2,
  .dmca-section h2,
  .about-section h2 {
    font-size: 1.25rem;
  }

  .info-types,
  .sharing-scenarios {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .rights-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .cookies-types {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .security-info {
    flex-direction: column;
  }

  .security-icon {
    align-self: center;
  }

  .children-notice {
    flex-direction: column;
  }

  .children-notice i {
    align-self: center;
  }

  .page-actions {
    padding: 1.5rem;
  }

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

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .privacy-intro,
  .terms-intro,
  .dmca-intro,
  .about-intro {
    padding: 1.25rem;
  }

  .privacy-section,
  .terms-section,
  .dmca-section,
  .about-section {
    padding: 1.25rem;
  }

  .info-types {
    grid-template-columns: 1fr;
  }

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

  .contact-options {
    flex-direction: column;
  }

  .contact-option {
    justify-content: center;
  }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Contact Info Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-header p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.email-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.chat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.phone-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.method-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.method-content p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.method-content small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* FAQ Section */
.faq-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.faq-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.faq-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.faq-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Contact Form Container */
.contact-form-container {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper {
  max-width: 100%;
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-intro {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-form .label-icon {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-form .form-control.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form .form-actions {
  margin-top: 1.5rem;
}

/* Contact Button Styles */
.btn-contact {
  position: relative;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden;
  min-width: 160px;
}

.btn-contact:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-contact:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-contact .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-contact.loading .btn-content {
  display: none;
}

.btn-contact.loading .btn-loading {
  display: flex;
}

.btn-contact .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact Form Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .btn-contact {
    width: 100%;
  }
}

/* ============================================
   DMCA PAGE STYLES
   ============================================ */
.policy-intro {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(239, 68, 68, 0.1)
  );
  border: 1px solid #f59e0b;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.policy-intro .intro-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.policy-intro .intro-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.policy-intro .intro-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* DMCA Section Headers */
.dmca-section .section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dmca-section .section-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.report-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.submit-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.time-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.counter-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.repeat-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.warning-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.question-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.dmca-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Requirements List */
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.requirements-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  align-items: flex-start;
}

.requirement-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.requirement-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.requirement-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* DMCA Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-method-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-method-card:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-method-card.link-card:hover {
  background: var(--primary-color);
}

.contact-method-card.link-card:hover h4,
.contact-method-card.link-card:hover p {
  color: white;
}

.contact-method-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.email-card {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.phone-card {
  background: linear-gradient(135deg, #10b981, #059669);
}

.mail-card {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.form-card {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.contact-method-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-method-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Response Time Card */
.response-time-card {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  border: 1px solid var(--success-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 1rem;
}

.time-badge i {
  font-size: 1.1rem;
}

/* Counter List */
.counter-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.counter-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.counter-list li i {
  color: var(--success-color);
  flex-shrink: 0;
}

/* Warning Card */
.warning-card {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border: 1px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.warning-card i {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.warning-card p {
  margin: 0;
  color: var(--text-primary);
}

/* DMCA Responsive */
@media (max-width: 768px) {
  .policy-intro {
    flex-direction: column;
    padding: 1.5rem;
  }

  .policy-intro .intro-icon {
    align-self: center;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.story-section {
  margin-bottom: 2rem;
}

.section-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-icon-wrapper .section-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.section-icon-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Values Section */
.values-section {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.values-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

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

.value-item {
  text-align: center;
}

.value-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin: 0 auto 0.75rem;
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: white;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.cta-actions .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cta-actions .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Dark mode: slightly brighter gradient for stat icons */
[data-theme="dark"] .stat-icon {
  background: linear-gradient(135deg, #3b82f6, #10b981);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* About Page Responsive */
@media (max-width: 768px) {
  .about-section {
    padding: 1.5rem;
  }

  .section-icon-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 2rem 1.5rem;
  }

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

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    justify-content: center;
  }

  .stats-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LEGAL DYNAMIC PAGE STYLES
   (Extracted from views/pages/legal-dynamic.php)
   ============================================ */

.legal-page-content {
  margin-top: 2rem;
}

.legal-page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-body-color);
}

.legal-page-content h3,
.legal-page-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--bs-body-color);
}

.legal-page-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

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

.legal-page-content code {
  background: var(--bs-tertiary-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.legal-page-content pre {
  background: var(--bs-tertiary-bg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.legal-page-content blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--bs-secondary-color);
}

/* Support for existing class-based styling in content */
.legal-page-content .privacy-container,
.legal-page-content .terms-container,
.legal-page-content .dmca-container,
.legal-page-content .about-container {
  /* Preserve existing container styles */
}

.contact-form-wrapper {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bs-tertiary-bg);
  border-radius: 12px;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.form-header p {
  color: var(--bs-secondary-color);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ============================================
   GENERIC DETAIL PAGE CLASSES
   Used across PNG, Background, and Photo detail pages
   ============================================ */

/* Detail Page Layout */
.detail-page {
  padding: 2rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

/* Detail Image Column */
.detail-image-column {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* Detail Preview Section */
.detail-preview-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Image Container (base for all types) */
.detail-image-container {
  position: relative;
  width: 100%;
  background: var(--bg-secondary);
}

/* Image Overlay (base) */
.detail-image-overlay {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-image-container:hover .detail-image-overlay {
  opacity: 1;
}

/* Detail Sizes Section */
.detail-sizes-section {
  padding: 1.5rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.detail-sizes-section .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.detail-size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-size-option {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.detail-size-option:hover {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}

.detail-size-option.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

.size-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.size-dimensions {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Detail Details Column */
.detail-details-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-details-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Detail Header */
.detail-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Detail Actions */
.detail-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.detail-actions .btn i {
  font-size: 1.25rem;
}

/* Detail Metadata */
.detail-metadata {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.detail-metadata .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Metadata Grid (shared) */
.metadata-grid {
  display: grid;
  gap: 1rem;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.metadata-item:last-child {
  border-bottom: none;
}

.metadata-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.metadata-label i {
  color: var(--primary-color);
}

.metadata-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Detail Contributor */
.detail-contributor {
  margin-bottom: 1.5rem;
}

.detail-contributor .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Detail Tags */
.detail-tags {
  margin-bottom: 1.5rem;
}

.detail-tags .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Detail Share */
.detail-share {
  margin-bottom: 1.5rem;
}

.detail-share .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Detail Related Section */
.detail-related-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.detail-related-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-image-column {
    position: static;
  }

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

  .detail-actions {
    flex-direction: column;
  }

  .detail-size-options {
    flex-direction: column;
  }

  .detail-size-option {
    width: 100%;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PNG DETAIL PAGE (PNG-specific overrides)
   ============================================ */

/* PNG-specific Image Container */
.png-image-container {
  min-height: 400px;
}

.png-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  /* Default checkerboard pattern for transparency */
  background-image: linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.png-image-wrapper.bg-white {
  background: #ffffff;
}

.png-image-wrapper.bg-black {
  background: #1a1a1a;
}

.png-image-wrapper.bg-gray {
  background: #808080;
}

.png-main-image {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.png-image-overlay {
  top: 1rem;
  right: 1rem;
}

.png-zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-zoom {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-zoom:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* PNG Background Toggle */
.png-background-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.toggle-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.toggle-bg {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.toggle-bg:hover {
  background: var(--bg-tertiary);
}

.toggle-bg.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* PNG-specific Like Button */
#pngLikeButton.liked {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.contributor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.contributor-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.contributor-details {
  flex: 1;
}

.contributor-name a {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.contributor-name a:hover {
  color: var(--primary-color);
}

.contributor-username {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* PNG-specific styles */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.share-btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.share-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
}

.share-btn i {
  font-size: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-secondary {
  background: var(--text-secondary);
  color: white;
}

.contributor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.contributor-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.contributor-details {
  flex: 1;
}

.contributor-name a {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.contributor-name a:hover {
  color: var(--primary-color);
}

.contributor-username {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.related-png-item {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-png-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-link {
  display: block;
  text-decoration: none;
}

.related-png-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.related-png-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-png-info {
  padding: 0.75rem;
}

.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .png-detail-grid {
    grid-template-columns: 1fr;
  }

  .png-image-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .png-detail-page {
    padding: 1rem 0;
  }

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

  .png-actions {
    flex-direction: column;
  }

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

  .png-related-section {
    padding: 2rem 0;
  }

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

  .share-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .png-background-toggle {
    flex-wrap: wrap;
  }

  .toggle-label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .toggle-bg {
    flex: 1;
    min-width: 70px;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

  .png-size-options {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BACKGROUND DETAIL PAGE (Background-specific overrides)
   ============================================ */

/* Background-specific image wrapper */
.background-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.background-main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.background-image-overlay {
  bottom: 1rem;
  right: 1rem;
}

.background-zoom-controls {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.btn-zoom {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-zoom:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Background-specific Like Button */
#backgroundLikeButton.liked {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

/* Background-specific badge */
.badge-info {
  background: #3b82f6;
  color: white;
}

/* Background Color Palette */
.background-colors {
  margin-bottom: 1.5rem;
}

.background-colors .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.color-palette {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.color-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.color-swatch:hover .color-box {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.color-hex {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

/* Background Color Palette */
.background-colors {
  margin-bottom: 1.5rem;
}

.background-colors .section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.color-palette {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

.color-hex {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.related-background-item {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-background-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-background-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.related-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-background-info {
  padding: 0.75rem;
}

.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Background Download Page */
.background-download-page {
  padding: 2.5rem 0;
  min-height: 100vh;
}

.download-header {
  text-align: center;
  margin-bottom: 3rem;
}

.download-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.download-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.download-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.preview-image-wrapper {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.file-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.download-colors {
  margin-bottom: 0;
}

.color-palette-compact {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-dot:hover {
  transform: scale(1.2);
}

.download-options {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.options-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.size-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.size-option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  gap: 1rem;
}

.size-option-card:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
}

.size-option-card.primary {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #f8f9ff 0%, #e9ecff 100%);
}

.size-info {
  flex: 1;
}

.size-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.size-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.125rem;
}

.size-file {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

.btn-download {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn-download.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.btn-download.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-download:not(.btn-primary) {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-download:not(.btn-primary):hover {
  background: var(--primary-color);
  color: white;
}

.license-info {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.license-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.license-details p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.license-note {
  font-style: italic;
}

.download-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat i {
  color: var(--primary-color);
}

.download-footer {
  display: flex;
  justify-content: center;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 1024px) {
  .background-detail-grid {
    grid-template-columns: 1fr;
  }

  .background-image-column {
    position: static;
  }

  .download-content {
    grid-template-columns: 1fr;
  }

  .file-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .background-detail-page {
    padding: 1rem 0;
  }

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

  .background-actions {
    flex-direction: column;
  }

  .background-size-options {
    flex-direction: column;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

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

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

  .size-option-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .background-download-page {
    padding: 1rem 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PHOTO DETAIL PAGE (Photo-specific overrides)
   ============================================ */

/* Photo-specific image container */
.photo-image-container {
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.photo-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
}

.photo-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.photo-image-overlay {
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.photo-zoom-controls {
  display: flex;
  gap: 0.5rem;
}

/* Photo-specific zoom buttons */
.btn-zoom {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-zoom:hover {
  background: white;
  transform: scale(1.1);
}

/* Photo-specific Like Button */
#photoLikeButton.liked {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

/* Photo Metadata */
.photo-metadata {
  margin-bottom: 1.5rem;
}

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

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metadata-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metadata-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* EXIF Metadata Section */
.photo-exif {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.photo-exif .section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.exif-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.exif-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exif-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.exif-gps-badge {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  border: 1px solid var(--success-color);
}

.gps-link {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.gps-link:hover {
  text-decoration: underline;
}

/* Photo-specific tag cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Photo-specific share buttons */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.share-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.share-facebook {
  background: #1877f2;
  color: white;
}

.share-facebook:hover {
  background: #0d65d9;
}

.share-twitter {
  background: #1da1f2;
  color: white;
}

.share-twitter:hover {
  background: #0c85d0;
}

.share-pinterest {
  background: #e60023;
  color: white;
}

.share-pinterest:hover {
  background: #ad001a;
}

.share-link {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.share-link:hover {
  background: var(--bg-tertiary);
}

.related-photo-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-photo-camera {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   PHOTO DOWNLOAD PAGE STYLES
   ============================================ */

.photo-download-page {
  padding: 2rem 0 4rem;
}

.download-header {
  text-align: center;
  margin-bottom: 3rem;
}

.download-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.download-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-bottom: 3rem;
}

.download-preview {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.preview-image-wrapper {
  margin-bottom: 2rem;
}

.preview-image {
  width: 100%;
  border-radius: var(--radius-lg);
}

.file-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.info-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Camera Info in Download */
.download-camera-info {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.camera-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.camera-lens {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* EXIF Summary in Download */
.download-exif-summary {
  margin-bottom: 1rem;
}

.exif-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.exif-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

/* GPS Badge in Download */
.download-gps-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(37, 99, 235, 0.1)
  );
  border: 1px solid var(--success-color);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.gps-view-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}

.gps-view-link:hover {
  text-decoration: underline;
}

/* Download Options */
.download-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.options-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.size-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.size-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  gap: 1rem;
  transition: all 0.2s;
}

.size-option-card:hover {
  border-color: var(--primary-color);
}

.size-option-card.primary {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.size-info {
  flex: 1;
}

.size-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.size-details {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin: 0;
}

.size-file {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

.size-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

.btn-download {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Download Statistics */
.download-stats {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.stats-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* License Information */
.download-license {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.license-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.license-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.license-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.license-permissions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.license-permissions li {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.license-permutations li i {
  color: var(--success-color);
}

/* Download Back Button */
.download-back {
  text-align: center;
}

/* Responsive Styles for Photo Pages */
@media (max-width: 1024px) {
  .photo-detail-grid {
    grid-template-columns: 1fr;
  }

  .photo-image-column {
    position: static;
  }

  .download-content {
    grid-template-columns: 1fr;
  }

  .file-info {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .photo-detail-page {
    padding: 1rem 0;
  }

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

  .photo-actions {
    flex-direction: column;
  }

  .photo-size-options {
    flex-direction: column;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }

  .exif-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

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

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

  .size-option-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .photo-download-page {
    padding: 1rem 0;
  }

  .related-photos-grid {
    grid-template-columns: 1fr;
  }

  .exif-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================

   Generic gallery styles shared across all category gallery pages.
   Each gallery can customize colors using CSS variables.
   */

/* Base Gallery Page */
.gallery-page {
  min-height: 100vh;
  background: #f8f9fa;
}

/* Category-specific gallery pages */
.png-gallery,
.backgrounds-gallery,
.photos-gallery,
.templates-gallery {
  /* Each extends .gallery-page */
  min-height: 100vh;
  background: #f8f9fa;
}

/* Category primary color variable (set on each gallery page) */
.png-gallery {
  --gallery-primary: #11998e;
  --gallery-primary-dark: #0e8a7f;
}

.backgrounds-gallery {
  --gallery-primary: #667eea;
  --gallery-primary-dark: #5568d4;
}

.photos-gallery {
  --gallery-primary: #11998e;
  --gallery-primary-dark: #0e8a7f;
}

.templates-gallery {
  --gallery-primary: #f5576c;
  --gallery-primary-dark: #e04a5f;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-bar-right {
  justify-content: flex-end;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.option-icon {
  font-size: 16px;
}

.filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ============================================
   MORE FILTERS BUTTON & PANEL
   ============================================ */
.more-filters-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  appearance: none;
  font-family: inherit;
}

.more-filters-btn:hover {
  background: #f0f0f0;
  border-color: var(--gallery-primary, #11998e);
}

.more-filters-btn i {
  font-size: 14px;
}

/* More Filters Sticky Panel */
.more-filters-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  z-index: 1000;
  transition: right 0.3s ease;
}

.more-filters-panel.active {
  right: 0;
}

.more-filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: -1;
}

.more-filters-panel.active .more-filters-overlay {
  opacity: 1;
  visibility: visible;
}

.more-filters-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.more-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.more-filters-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.more-filters-close {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #666;
}

.more-filters-close:hover {
  background: #e0e0e0;
  color: #333;
}

.more-filters-close i {
  font-size: 18px;
}

.more-filters-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.more-filters-section {
  margin-bottom: 32px;
}

.more-filters-section:last-child {
  margin-bottom: 0;
}

.more-filters-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.more-filters-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-filters-option {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: all 0.2s;
  display: block;
}

.more-filters-option:hover {
  background: #f0f0f0;
  border-color: var(--gallery-primary, #11998e);
  color: var(--gallery-primary, #11998e);
}

.more-filters-option.active {
  background: var(--gallery-primary, #11998e);
  border-color: var(--gallery-primary, #11998e);
  color: white;
}

.more-filters-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.more-filters-apply {
  width: 100%;
  padding: 14px 24px;
  background: var(--gallery-primary, #11998e);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.more-filters-apply:hover {
  background: var(--gallery-primary-dark, #0e8a7f);
}

/* More Filters Colors */
.more-filters-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.more-filters-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  font-size: 12px;
  transition: all 0.2s;
}

.more-filters-color:hover {
  background: #f0f0f0;
  border-color: var(--gallery-primary, #11998e);
  color: var(--gallery-primary, #11998e);
}

.more-filters-color.active {
  background: var(--gallery-primary, #11998e);
  border-color: var(--gallery-primary, #11998e);
  color: white;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}

.color-all {
  background: linear-gradient(135deg, #ef4444 25%, #f97316 25%, #f97316 37.5%, #eab308 37.5%, #eab308 50%, #22c55e 50%, #22c55e 62.5%, #06b6d4 62.5%, #06b6d4 75%, #3b82f6 75%, #3b82f6 87.5%, #a855f7 87.5%);
}

/* Prevent body scroll when panel is open */
body.panel-open {
  overflow: hidden;
}

/* ============================================
   VIEW TOGGLE (PNG, Templates)
   ============================================ */
.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  padding: 8px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #f0f0f0;
}

.view-btn.active {
  background: var(--gallery-primary, #11998e);
  color: white;
  border-color: var(--gallery-primary, #11998e);
}

/* ============================================
   SUBCATEGORY PILLS
   ============================================ */
.subcategory-pills-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcategory-pill {
  padding: 8px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.subcategory-pill:hover {
  background: #f0f0f0;
  border-color: var(--gallery-primary, #11998e);
  color: var(--gallery-primary, #11998e);
}

.subcategory-pill.active {
  background: var(--gallery-primary, #11998e);
  color: white;
  border-color: var(--gallery-primary, #11998e);
}

.pill-count {
  font-size: 12px;
  opacity: 0.8;
}

/* ============================================
   TRENDING TAGS SECTION (Photos)
   ============================================ */
.trending-tags-section {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

.trending-tags-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-tags-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
}

.trending-tags-wrapper::-webkit-scrollbar {
  height: 4px;
}

.trending-tags-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.trending-tags-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.scroll-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.scroll-arrow:hover {
  background: var(--gallery-primary, #11998e);
  color: white;
  border-color: var(--gallery-primary, #11998e);
}

.trending-tag-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
}

.trending-tag-pill:hover {
  background: var(--gallery-primary, #11998e);
  color: white;
  border-color: var(--gallery-primary, #11998e);
}

/* ============================================
   GALLERY CONTENT & LAYOUT
   ============================================ */
.gallery-content {
  padding: 32px 0;
}

.gallery-layout {
  display: block;
}

.gallery-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-filter {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #333;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 16px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  transition: all 0.2s;
}

.tag-link:hover {
  background: var(--gallery-primary, #11998e);
  color: white;
}

.subcategory-list,
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategory-item,
.filter-item {
  margin-bottom: 8px;
}

.subcategory-link,
.filter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: all 0.2s;
}

.subcategory-link:hover,
.filter-link:hover {
  background: #f0f0f0;
}

.subcategory-link.active,
.filter-link.active {
  background: var(--gallery-primary, #11998e);
  color: white;
}

.count {
  font-size: 12px;
  opacity: 0.8;
}

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

.gallery-main-full {
  width: 100%;
}

.gallery-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================
   ACTIVE FILTERS (PNG, Templates)
   ============================================ */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(17, 153, 142, 0.1);
  border-radius: 8px;
  margin-bottom: 24px;
}

.templates-gallery .active-filters {
  background: rgba(245, 87, 108, 0.1);
}

.active-filters-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
}

.filter-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-remove {
  color: #999;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
}

.filter-remove:hover {
  color: #333;
}

.clear-all-filters {
  color: var(--gallery-primary, #11998e);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.clear-all-filters:hover {
  text-decoration: underline;
}

/* ============================================
   RESULTS HEADER
   ============================================ */
.results-header {
  margin-bottom: 24px;
}

.results-count {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ============================================
   IMAGES GRID
   ============================================ */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
}

.pagination-link {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-link:hover {
  background: #f0f0f0;
}

.pagination-link.current {
  background: var(--gallery-primary, #11998e);
  color: white;
  border-color: var(--gallery-primary, #11998e);
}

.pagination-link.prev,
.pagination-link.next {
  background: white;
}

.pagination-ellipsis {
  padding: 8px 4px;
  color: #999;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 64px 32px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.empty-description {
  color: #666;
  margin: 0 0 24px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gallery-primary, #11998e);
  color: white;
}

.btn-primary:hover {
  background: var(--gallery-primary-dark, #0e8a7f);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .more-filters-panel {
    max-width: 100%;
  }

  .more-filters-content {
    max-width: 100%;
  }

  .gallery-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
