/**
 * AroundManchester.com - Technical Pages Stylesheet
 * Page-specific styles for /technical/*.html (360-tours, galleries, details)
 * 
 * @charset UTF-8
 * @author AroundManchester.com Development Team
 * @version 1.0
 */

@charset "UTF-8";

/* ===== COMPACT HEADER DESCRIPTION ===== */
.site-header__description {
  line-height: 1.3;
  padding: 4px 12px;
  margin: 4px auto 0;
}

.site-header__description > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}

/* ===== TECHNICAL PAGES (360-tours, galleries, details) ===== */
.technical-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f5f5f5;
}

.technical-page__header {
  background: linear-gradient(135deg, #4a6bb5, #3a5a95);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 8px;
}

.technical-page__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.technical-page__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.technical-page__section {
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.technical-page__section h2 {
  color: #4a6bb5;
  font-size: 1.8rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.technical-page__section h3 {
  color: #3a5a95;
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.technical-page__section p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333;
}

.technical-page__section ul,
.technical-page__section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.technical-page__section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.technical-page__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.technical-page__feature-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #4a6bb5;
}

.technical-page__feature-card h4 {
  color: #4a6bb5;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.technical-page__feature-card p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

.technical-page__demo-box {
  background: #e8f4f8;
  border: 2px dashed #4a6bb5;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 25px 0;
}

.technical-page__demo-box-title {
  color: #4a6bb5;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.technical-page__demo-box-text {
  color: #555;
  margin-bottom: 20px;
}

/* Demo box links should use class="button" in HTML */
/* Legacy fallback for any remaining .technical-page__demo-box-link elements */
.technical-page__demo-box-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-sm, 8px) + 2px) var(--spacing-xl, 32px);
  border-radius: 0;
  background: var(--color-white, #ffffff);
  color: var(--color-primary, #4a6bb5);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.12));
  transition: var(--transition-base, all 0.2s ease);
  border: none;
  cursor: pointer;
}

.technical-page__demo-box-link:hover,
.technical-page__demo-box-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.15));
}

.technical-page__future-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.technical-page__coming-soon {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

.technical-page__coming-soon h3 {
  color: white;
  margin-bottom: 15px;
}

.technical-page__coming-soon ul {
  color: rgba(255,255,255,0.95);
}

.technical-page__back-link {
  text-align: center;
  margin-top: 30px;
}

/* ===== GALLERIES PAGE SPECIFIC ===== */
.gallery-type {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  border-left: 5px solid #4a6bb5;
}

.gallery-type--menu {
  border-left-color: #28a745;
}

.gallery-type--products {
  border-left-color: #17a2b8;
}

.gallery-type--promotions {
  border-left-color: #ffc107;
}

.gallery-type__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.gallery-type__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.gallery-type__icon--menu {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.gallery-type__icon--products {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

.gallery-type__icon--promotions {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.gallery-type__title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
}

.gallery-type__description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.gallery-type__uses {
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.gallery-type__uses h4 {
  color: #4a6bb5;
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.gallery-type__uses ul {
  margin: 0;
  padding-left: 20px;
}

.gallery-type__uses li {
  color: #555;
  margin-bottom: 6px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
  background: #4a6bb5;
  color: white;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.comparison-table tr:hover {
  background: #e8f4f8;
}

.tip-box {
  background: #e8f4f8;
  border-left: 4px solid #17a2b8;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.tip-box__title {
  color: #17a2b8;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.tip-box__text {
  color: #333;
  margin: 0;
}

/* ===== DETAILS PAGE SPECIFIC ===== */
.element-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 4px solid #4a6bb5;
}

.element-card--preset {
  border-left-color: #28a745;
}

.element-card--optional {
  border-left-color: #17a2b8;
}

.element-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.element-card__title {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
}

.element-card__badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.element-card__badge--preset {
  background: #d4edda;
  color: #155724;
}

.element-card__badge--optional {
  background: #d1ecf1;
  color: #0c5460;
}

.element-card__description {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.element-card__why {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.element-card__why strong {
  color: #4a6bb5;
}

.section-divider {
  text-align: center;
  padding: 20px 0;
  color: #888;
  font-size: 0.9rem;
}

.section-divider hr {
  border: none;
  border-top: 2px dashed #ddd;
  margin-bottom: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.category-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.category-item__icon {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #4a6bb5;
  background: #e8f4f8;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

.category-item__name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.category-item__examples {
  font-size: 0.85rem;
  color: #666;
}

.info-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-box--blue {
  background: #e8f4f8;
  border-left-color: #17a2b8;
}

.info-box__title {
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.info-box--blue .info-box__title {
  color: #0c5460;
}

.info-box__text {
  color: #333;
  margin: 0;
}

.back-link {
  text-align: center;
  margin-top: 30px;
}

/* ===== TECHNICAL PAGES RESPONSIVE ===== */
@media (max-width: 768px) {
  .technical-page__title {
    font-size: 2rem;
  }

  .technical-page__section h2 {
    font-size: 1.5rem;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }

  .element-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === WCAG 2.2 AA FOCUS INDICATORS === */
.technical-page :focus {
  outline: 3px solid #4a6bb5;
  outline-offset: 2px;
}

.technical-page :focus:not(:focus-visible) {
  outline: none;
}

.technical-page :focus-visible {
  outline: 3px solid #4a6bb5;
  outline-offset: 2px;
}

/* Focus on dark backgrounds (coming-soon section) */
.technical-page__coming-soon :focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Button focus */
.technical-page .button:focus-visible,
.technical-page__demo-box .button:focus-visible {
  outline: 3px solid #3a5a95;
  outline-offset: 2px;
}

/* Table cell focus for keyboard navigation */
.comparison-table a:focus-visible {
  outline: 3px solid #4a6bb5;
  outline-offset: 1px;
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  .technical-page,
  .technical-page * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
/*
 * High contrast overrides for accessibility and e-ink devices.
 * Applied when .high-contrast class is on <html> element.
 */
.high-contrast .technical-page {
  background: #ffffff;
}

.high-contrast .technical-page__header {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .technical-page__title {
  color: #ffffff;
}

.high-contrast .technical-page__subtitle {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .technical-page__section {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .technical-page__section h2 {
  color: #000000;
  border-bottom-color: #000000;
}

.high-contrast .technical-page__section h3 {
  color: #000000;
}

.high-contrast .technical-page__section p {
  color: #000000;
}

.high-contrast .technical-page__section ul,
.high-contrast .technical-page__section ol,
.high-contrast .technical-page__section li {
  color: #000000;
}

.high-contrast .technical-page__section a {
  color: #000000;
  text-decoration: underline;
}

.high-contrast .technical-page__feature-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-left-width: 4px;
}

.high-contrast .technical-page__feature-card h4 {
  color: #000000;
}

.high-contrast .technical-page__feature-card p {
  color: #000000;
}

.high-contrast .technical-page__demo-box {
  background: #ffffff;
  border: 2px dashed #000000;
}

.high-contrast .technical-page__demo-box-title {
  color: #000000;
}

.high-contrast .technical-page__demo-box-text {
  color: #000000;
}

.high-contrast .technical-page__future-badge {
  background: #000000;
  color: #ffffff;
}

.high-contrast .technical-page__coming-soon {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .technical-page__coming-soon h3 {
  color: #ffffff;
}

.high-contrast .technical-page__coming-soon ul {
  color: #ffffff;
}

/* Gallery type cards */
.high-contrast .gallery-type {
  background: #ffffff;
  border: 2px solid #000000;
  border-left-width: 5px;
}

.high-contrast .gallery-type--menu,
.high-contrast .gallery-type--products,
.high-contrast .gallery-type--promotions {
  border-left-color: #000000;
}

.high-contrast .gallery-type__icon {
  background: #000000;
  color: #ffffff;
}

.high-contrast .gallery-type__title {
  color: #000000;
}

.high-contrast .gallery-type__description {
  color: #000000;
}

.high-contrast .gallery-type__uses {
  background: #ffffff;
  border: 1px solid #000000;
}

.high-contrast .gallery-type__uses h4 {
  color: #000000;
}

.high-contrast .gallery-type__uses li {
  color: #000000;
}

/* Comparison table */
.high-contrast .comparison-table th {
  background: #000000;
  color: #ffffff;
}

.high-contrast .comparison-table td {
  color: #000000;
  border-bottom-color: #000000;
}

.high-contrast .comparison-table tr:nth-child(even) {
  background: #f5f5f5;
}

.high-contrast .comparison-table tr:hover {
  background: #e8e8e8;
}

/* Tip and info boxes */
.high-contrast .tip-box,
.high-contrast .info-box,
.high-contrast .info-box--blue {
  background: #ffffff;
  border: 2px solid #000000;
  border-left-width: 4px;
}

.high-contrast .tip-box__title,
.high-contrast .info-box__title,
.high-contrast .info-box--blue .info-box__title {
  color: #000000;
}

.high-contrast .tip-box__text,
.high-contrast .info-box__text {
  color: #000000;
}

/* Element cards */
.high-contrast .element-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-left-width: 4px;
}

.high-contrast .element-card--preset,
.high-contrast .element-card--optional {
  border-left-color: #000000;
}

.high-contrast .element-card__title {
  color: #000000;
}

.high-contrast .element-card__badge {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

.high-contrast .element-card__description {
  color: #000000;
}

.high-contrast .element-card__why {
  background: #ffffff;
  border: 1px solid #000000;
}

.high-contrast .element-card__why strong {
  color: #000000;
}

/* Category grid */
.high-contrast .category-item {
  background: #ffffff;
  border: 2px solid #000000;
}

.high-contrast .category-item__icon {
  background: #f0f0f0;
  color: #000000;
  border: 1px solid #000000;
}

.high-contrast .category-item__name {
  color: #000000;
}

.high-contrast .category-item__examples {
  color: #000000;
}

.high-contrast .section-divider {
  color: #000000;
}

.high-contrast .section-divider hr {
  border-top-color: #000000;
}

/* High contrast focus indicators */
.high-contrast .technical-page :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

.high-contrast .technical-page__header :focus-visible,
.high-contrast .technical-page__coming-soon :focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}
