/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/


/*
 * Application-wide CSS
 * This file contains all core styles and utility classes for the application
 * Classes are organized by category for better maintainability
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Brand Colors - GCS Theme */
  --gcs-primary: 108, 155, 195;
  /* #6C9BC3 */
  --gcs-yellow: 229, 202, 44;
  /* #E5CA2C */
  --gcs-blue: 21, 46, 150;
  /* #152E96 */
  --gcs-gray: 229, 230, 231;
  /* #E5E6E7 */

  /* Core Design System Variables */
  --color-primary: #0d6efd;
  --color-text-primary: #2c3e50;
  --color-text-muted: #6c757d;
  --color-background: #ffffff;
  --color-background-muted: #f8f9fa;
  --color-background-hover: #e9ecef;

  /* Shadows */
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 20px;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Typography */
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2.5rem;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-ease: ease;
}

/* ==========================================================================
     Base Styles
     ========================================================================== */

/* Default font stack for the loading state */
.fonts-loading * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Font stack once fonts are loaded */
.fonts-loaded * {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Remove the original font-family declaration since we're handling it with classes */
* {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ==========================================================================
     GCS Color System
     These classes provide background and text colors with opacity variants
     ========================================================================== */

/* Primary Color */
.gcs-primary {
  background-color: rgb(var(--gcs-primary));
}

.gcs-primary-75 {
  background-color: rgba(var(--gcs-primary), 0.75);
}

.gcs-primary-50 {
  background-color: rgba(var(--gcs-primary), 0.50);
}

.gcs-primary-25 {
  background-color: rgba(var(--gcs-primary), 0.25);
}

/* Yellow Color */
.gcs-yellow {
  background-color: rgb(var(--gcs-yellow));
}

.gcs-yellow-75 {
  background-color: rgba(var(--gcs-yellow), 0.75);
}

.gcs-yellow-50 {
  background-color: rgba(var(--gcs-yellow), 0.50);
}

.gcs-yellow-25 {
  background-color: rgba(var(--gcs-yellow), 0.25);
}

/* Blue Color */
.gcs-blue {
  background-color: rgb(var(--gcs-blue));
}

.gcs-blue-75 {
  background-color: rgba(var(--gcs-blue), 0.75);
}

.gcs-blue-50 {
  background-color: rgba(var(--gcs-blue), 0.50);
}

.gcs-blue-25 {
  background-color: rgba(var(--gcs-blue), 0.25);
}

/* Gray Color */
.gcs-gray {
  background-color: rgb(var(--gcs-gray));
}

.gcs-gray-75 {
  background-color: rgba(var(--gcs-gray), 0.75);
}

.gcs-gray-50 {
  background-color: rgba(var(--gcs-gray), 0.50);
}

.gcs-gray-25 {
  background-color: rgba(var(--gcs-gray), 0.25);
}

/* Text Colors */
.text-gcs-primary {
  color: rgb(var(--gcs-primary));
}

.text-gcs-yellow {
  color: rgb(var(--gcs-yellow));
}

.text-gcs-blue {
  color: rgb(var(--gcs-blue));
}

.text-gcs-gray {
  color: rgb(var(--gcs-gray));
}

.text-muted {
  color: var(--color-text-muted);
}

/* ==========================================================================
     Component Styles
     ========================================================================== */

/* Card Styles */
.gradient-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.card-header {
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
}

.card-header--primary {
  background-color: rgb(var(--gcs-primary));
  color: var(--color-background);
}

.card-body {
  background: var(--color-background);
  padding: var(--spacing-md);
}

/* Hover Effects and Interactive Elements */
.hover-lift {
  background-color: var(--color-background);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-speed) var(--transition-ease);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hover-lift--padded {
  padding: var(--spacing-lg);
  margin: var(--spacing-sm);
}

.hover-lift img {
  transition: transform var(--transition-speed) var(--transition-ease);
  max-height: 100px;
  object-fit: contain;
}

.hover-lift:hover img {
  transform: scale(1.05);
}

/* List Items with Hover Effects */
.hover-list-item {
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
  padding: 1.25rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.hover-list-item:hover {
  border-left: 3px solid rgb(var(--gcs-primary));
  transform: translateX(5px);
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.hover-list-item i {
  color: rgb(var(--gcs-primary));
  margin-right: 1rem;
}

/* ==========================================================================
     Typography Components
     ========================================================================== */

/* Heading Styles */
.heading-base {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

.underlined-heading {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #2c3e50;
  display: inline-block;
}

.underlined-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: rgb(var(--gcs-primary));
  border-radius: 2px;
}

.underlined-heading--centered:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.underlined-heading--left:after {
  left: 0;
  width: 60px;
}

/* ==========================================================================
     Utility Components
     ========================================================================== */

/* Pills and Tags */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-item {
  background: var(--color-background-muted);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  transition: all var(--transition-speed) var(--transition-ease);
}

.pill-item:hover {
  background: var(--color-background-hover);
  transform: translateY(-2px);
}

/* Icons */
.icon {
  color: var(--color-primary);
  transition: color var(--transition-speed) var(--transition-ease);
}

.icon--large {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.icon--medium {
  font-size: var(--font-size-lg);
  margin-right: var(--spacing-xs);
}

/* Scrollbar Styles */
.scrollable-container {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.scrollable-container::-webkit-scrollbar {
  width: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ==========================================================================
     Media Queries
     ========================================================================== */

@media (max-width: 768px) {
  .hover-lift--padded {
    padding: var(--spacing-md);
    margin: var(--spacing-xs);
  }

  .hover-lift img {
    max-height: 80px;
  }
}

.metric-container {
  padding: 0.8rem;
  text-align: center;
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--gcs-gray));
}

.metric-container.no-border {
  border: none;
}

.metric-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
}

.metric-description {
  font-size: 1rem;
  color: #6c757d;
}