/* rivo.gr — Custom styles beyond Tailwind */

/* Greek-optimized typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Solar accent gradient — combined with pattern overlay in one rule to avoid cascade conflicts */
.solar-gradient {
  background-color: #1a365d;
  background-image: linear-gradient(135deg, #1a365d 0%, #2d4a7a 50%, #1a365d 100%);
}

.solar-accent-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Hero pattern overlay — uses ::before pseudo-element so it layers on top of the gradient */
.hero-pattern {
  position: relative;
}
.hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Brand card hover */
.brand-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Comparison table */
.comparison-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table tr:hover td {
  background-color: #fffbeb;
}

/* Sort indicators */
.sortable {
  cursor: pointer;
  user-select: none;
}
.sortable:hover {
  background-color: #1e3a5f;
}
.sortable::after {
  content: ' ↕';
  opacity: 0.4;
  font-size: 0.75em;
}
.sortable.asc::after {
  content: ' ↑';
  opacity: 1;
}
.sortable.desc::after {
  content: ' ↓';
  opacity: 1;
}

/* Pros/Cons styling */
.pro-item::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
  margin-right: 0.5rem;
}
.con-item::before {
  content: '✗';
  color: #dc2626;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Breadcrumb separator */
.breadcrumb-sep::before {
  content: '›';
  margin: 0 0.5rem;
  color: #9ca3af;
}

/* Sun SVG icon animation */
.sun-icon {
  animation: sun-pulse 3s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Mobile nav toggle */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
}

/* Dropdown */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  nav, footer, .no-print { display: none; }
  body { font-size: 12pt; }
}
