/* ==============================================
   ITC CUSTOM STYLES
   Non-Tailwind project-specific styles
   ============================================== */

/* CSS VARIABLES */
:root {
  --color-dark-blue: #0E1420;
  --color-light-blue: #1C2947;
  --color-grey: #929292;
  --color-black: #000000;
  --color-yellow: #ff9600;
  --gold-button: #C6A75E;
  --gold-button-hover: #B79A55;
  --gold-text: #B79A55;
  --gold-button-text: #1B2430;
}

/* Brand Colors */
.bg-dark-blue { background-color: var(--color-dark-blue); }
.bg-light-blue { background-color: var(--color-light-blue); }
.bg-grey { background-color: var(--color-grey); }
.bg-black { background-color: var(--color-black); }
.bg-black-modal { background-color: rgba(0, 0, 0, 0.7); }
.bg-yellow { background-color: var(--color-yellow); }

/* Max Width Utilities */
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }

.text-dark-blue { color: var(--color-dark-blue) !important; }
.text-light-blue { color: var(--color-light-blue) !important; }
.text-grey { color: var(--color-grey) !important; }
.text-black { color: var(--color-black) !important; }
.text-yellow { color: var(--color-yellow) !important; font-weight: 100 !important; }
.text-golden { 
  background: linear-gradient(180deg, #e8c89a 0%, #c5a677 50%, #b8935f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: bold;
}
h1,h2,h3,h4,h5,h6 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold !important;
}
/* Brand Text Styling */
.text-brand {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.125rem;
  .text-golden {font-weight:normal;}
}

.text-brand-international {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 1.35rem;
  line-height: 1.5rem;
}

.text-brand-taekwondo-council {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
}

@media (min-width: 640px) {
  .text-brand {
    font-size: 1.5rem;
    line-height: 1.625rem;
  }
  
  .text-brand-international {
    font-size: 2.35rem;
  }
}

.bg-dark-blue .text-gray-900 { color: #fff !important; }
/* Button Gradients */
.bg-yellow-700 {
  background: linear-gradient(180deg, #d4b17e 0%, #c5a370 50%, #b89560 100%) !important;
  color: var(--color-dark-blue) !important;
}

.hover\:bg-yellow-800:hover {
  background: linear-gradient(180deg, #c5a370 0%, #b89560 50%, #a88550 100%) !important;
  color: var(--color-dark-blue) !important;
}

/* Ensure h1 line-height override */
h1.text-4xl.md\:text-5xl.lg\:text-6xl.font-bold.text-gray-900.tracking-tight.font-normal.mb-16.leading-tight {
  line-height: 1.25 !important;
}

/* Blockquote styling */
blockquote {
  display: block;
  margin-block-start: 3em;
  margin-block-end: 3em;
  margin-inline-start: 40px;
  border-left: 5px solid #ccc;
  padding-left: 40px;
}

/* Navigation Specific Styles */
nav, .fixed.bg-dark-blue {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.fixed.bg-dark-blue > .grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Hamburger Menu */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  padding: 4px;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu:hover span {
  background-color: #c5a677;
}

.hamburger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 13rem;
  background-color: #ffffff;
  color: #1f2937;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.hamburger-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.hamburger-dropdown a {
  display: block;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.hamburger-dropdown a:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

.hamburger-dropdown a:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.hamburger-dropdown a:last-child {
  border-bottom: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.hamburger-dropdown hr {
  margin: 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.relative {
  position: relative;
}

/* Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Code blocks */
.code-block {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  background-color: #e5e7eb;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  font-weight: 600;
}

/* Transitions & Animations */
.animate-fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Button focus states */
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Form elements */
input:focus, textarea:focus, select:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 0;
}

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

/* Print styles */
@media print {
  nav {
    display: none;
  }
  
  .no-print {
    display: none;
  }
}

.text-mobile-hero {
  font-size: 3rem !important;
  line-height: 3rem !important;
}