/* Main Stylesheet
   ===================================
   Global styles, theme variables, and reusable CSS classes
   ===================================
*/

/* Light Mode (Default) */
:root {
  /* Primary Colors */
  --color-primary: #33f;

  /* Text Colors */
  --color-text: #333;
  --color-text-secondary: #666;

  /* Background Colors */
  --color-bg: #fff;
  --color-bg-secondary: #f5f5f5;

  /* Border Colors */
  --color-border: #ddd;

  /* Semantic Colors */
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
}

/* Dark Mode Explicit Class (Manual Override) */
html.dark-mode {
  --color-primary: #33f;
  --color-text: #e4e4e7;
  --color-text-secondary: #a1a1a1;
  --color-bg: #101014;
  --color-bg-secondary: #1f2028;
  --color-border: #333;
  --color-success: #28a745;
  --color-error: #dc3545;
  --color-warning: #ffc107;
  --color-info: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
button {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-separator {
  margin-top: 35px;
}

/* ===================================
   Reusable Button Styles
   =================================== */

/* View All Button - Animated button with text shift on hover */
.view-all-btn {
  background: #2f57ef21;
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 45px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 115px;
  position: relative;
  transition: all 0.3s ease;
}

.view-all-btn::after {
  content: attr(data-text);
  position: absolute;
  white-space: nowrap;
  top: 50%;
  left: 100%;
  transform: translate(50%, -50%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.65s, transform 0.85s;
  transition-timing-function: cubic-bezier(0.15, 0.85, 0.31, 1);
}

.view-all-btn span {
  display: inline-flex;
  position: relative;
  z-index: 3;
  transition: opacity 0.65s, transform 0.85s;
  transition-timing-function: cubic-bezier(0.15, 0.85, 0.31, 1);
  white-space: nowrap;
}

.view-all-btn:hover {
  background: var(--color-primary);
  color: white;
}

.view-all-btn:hover span {
  opacity: 0;
  transform: translateX(-100%);
}

.view-all-btn:hover::after {
  opacity: 1;
  left: 50%;
  transform: translate(-50%, -50%);
}

.links {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
}