/* ==========================================================================
   RIGAS BERKELEY LLC - Premium Custom CSS Stylesheet
   ========================================================================== */

/* --- Custom CSS Variables --- */
:root {
  --color-primary: #148062;
  --color-primary-hover: #10674E;
  --color-accent: #ff6a00;
  --color-accent-hover: #e05d00;
  --color-bg-dark: #050B15;
  --color-bg-card: #0a0f1a;
  --color-border: #1e293b;
  --color-text-bright: #ffffff;
  --color-text-dim: #94a3b8;
}

/* --- Smooth Scroll and Scrollbar customization --- */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-dark);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Custom Background Grid Mesh Pattern --- */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.45) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(15, 23, 42, 0.45) 1px, transparent 1px);
}

/* --- Base Typography Overrides --- */
body, button, input, select, textarea, p, span, h1, h2, h3, h4, h5, h6, a, div {
  font-family: Arial, Helvetica, sans-serif !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* --- Custom Interactive Animations & Keyframes --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* --- CSS Utility Classes --- */
.view-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-panel.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(4px);
}

/* --- Custom SVG Map Glow --- */
.map-glow-filter {
  filter: drop-shadow(0 0 4px rgba(20, 128, 98, 0.4));
}

.map-glow-orange {
  filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.6));
}

/* --- Custom Glassmorphic Cards --- */
.glass-panel {
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Shimmer Skeleton Loader --- */
.shimmer-bg {
  position: relative;
  overflow: hidden;
  background-color: #0c1424;
}

.shimmer-bg::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  content: '';
}

/* --- Responsive Table Fixes --- */
.table-scroll {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Interactive Ripple Ring Effect --- */
.ripple-ring {
  position: relative;
}

.ripple-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  animation: pulseGlow 1.8s cubic-bezier(0.25, 0, 0, 1) infinite;
  pointer-events: none;
}
