/* NATO Alphabet Learning - Custom Web Styles */

/* Custom Scrollbar Styling - WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2d5016;
  border-radius: 10px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d6820;
}

/* Hide scrollbar arrows/buttons - Using width/height method (more reliable) */
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}

::-webkit-scrollbar-button:increment,
::-webkit-scrollbar-button:decrement {
  width: 0px;
  height: 0px;
}

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

/* Base body styling */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Enhanced Button Interactions */
button,
[role="button"],
a {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover:not(:disabled),
[role="button"]:hover:not([aria-disabled="true"]),
a:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
[role="button"]:active:not([aria-disabled="true"]),
a:active {
  transform: translateY(0px);
}

/* Enhanced Card Depth */
[data-card="true"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-card="true"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 80, 22, 0.15) !important;
}

/* Subtle glow effect on primary buttons */
[data-primary-button="true"]:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(45, 80, 22, 0.3),
              0 0 20px rgba(45, 80, 22, 0.15);
}

/* Smooth transitions for all interactive elements */
input,
select,
textarea {
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Enhanced list item hover */
[data-list-item="true"] {
  transition: all 0.2s ease;
}

[data-list-item="true"]:hover {
  background-color: rgba(45, 80, 22, 0.05);
  transform: translateX(4px);
}

/* Accordion animation */
[data-accordion="true"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal/overlay backdrop blur */
[data-modal-backdrop="true"] {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Ripple effect container */
[data-ripple="true"] {
  position: relative;
  overflow: hidden;
}

[data-ripple="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

[data-ripple="true"]:active::after {
  width: 200px;
  height: 200px;
}

/* Responsive Photo Banner */
@media (max-width: 768px) {
  /* Mobile: show 2 photos in a row */
  [data-banner-photo="true"] {
    flex: 0 0 48% !important;
    min-width: 48% !important;
  }
}

/* Bottom Button Hover Effects */
[data-bottom-button="true"]:hover {
  background-color: rgba(45, 80, 22, 0.05) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
