/**
 * Header Actions Styles - Clean & Professional
 * TCL Website - Better Design
 */

/* Header Actions Container */
.tcl-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1000;
  margin-left: auto;
}

/* Base Button Styles - Clean & Simple */
.tcl-search-btn,
.tcl-shop-btn,
.tcl-menu-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(27, 67, 50, 0.3);
  color: #1B4332;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  min-height: 36px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Hover States - Clean Green */
.tcl-search-btn:hover,
.tcl-shop-btn:hover,
.tcl-menu-btn:hover {
  background: #1B4332;
  color: white;
  border-color: #1B4332;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(27, 67, 50, 0.2);
}

/* Button Focus States */
.tcl-search-btn:focus,
.tcl-shop-btn:focus,
.tcl-menu-btn:focus {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
  background: #1B4332;
  color: white;
  border-color: #1B4332;
}

/* Button Active States */
.tcl-search-btn:active,
.tcl-shop-btn:active,
.tcl-menu-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Icons */
.tcl-search-btn svg,
.tcl-shop-btn svg,
.tcl-menu-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Icon hover animation */
.tcl-search-btn:hover svg,
.tcl-shop-btn:hover svg,
.tcl-menu-btn:hover svg {
  transform: scale(1.05);
}

/* Button Text */
.tcl-search-btn span,
.tcl-shop-btn span,
.tcl-menu-btn span {
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Hamburger Menu Button Specific Styles */
.tcl-menu-btn .tcl-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
  height: 18px;
  justify-content: center;
  align-items: center;
}

.tcl-menu-btn .tcl-hamburger span {
  width: 16px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger Animation on Hover */
.tcl-menu-btn:hover .tcl-hamburger span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.tcl-menu-btn:hover .tcl-hamburger span:nth-child(2) {
  opacity: 0;
}

.tcl-menu-btn:hover .tcl-hamburger span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Shopping Cart Badge */
.tcl-shop-btn {
  position: relative;
}

.tcl-shop-btn::after {
  content: attr(data-cart-count);
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.tcl-shop-btn[data-cart-count]:not([data-cart-count="0"])::after {
  opacity: 1;
  transform: scale(1);
}

/* Search Button - Special styling */
.tcl-search-btn {
  background: linear-gradient(135deg, #1B4332 0%, #2d5a47 100%);
  color: white;
  border-color: #1B4332;
}

.tcl-search-btn:hover {
  background: linear-gradient(135deg, #0f2a1f 0%, #1B4332 100%);
  border-color: #0f2a1f;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tcl-header-actions {
    gap: 8px;
  }
  
  .tcl-search-btn,
  .tcl-shop-btn,
  .tcl-menu-btn {
    padding: 6px 12px;
    min-height: 32px;
    font-size: 13px;
  }
  
  .tcl-search-btn span,
  .tcl-shop-btn span,
  .tcl-menu-btn span {
    display: none; /* Hide text on smaller screens */
  }
  
  .tcl-search-btn svg,
  .tcl-shop-btn svg,
  .tcl-menu-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Hide menu button on desktop */
@media (min-width: 1025px) {
  .tcl-menu-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .tcl-header-actions {
    flex-direction: row;
    gap: 6px;
    margin-left: auto;
    margin-top: 0;
  }
  
  .tcl-search-btn,
  .tcl-shop-btn,
  .tcl-menu-btn {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 6px 10px;
    min-height: 30px;
    border-width: 1px;
    font-size: 12px;
  }
  
  .tcl-search-btn svg,
  .tcl-shop-btn svg,
  .tcl-menu-btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Hide text on mobile for space */
  .tcl-search-btn span,
  .tcl-shop-btn span,
  .tcl-menu-btn span {
    display: none;
  }
}

@media (max-width: 480px) {
  .tcl-header-actions {
    gap: 4px;
  }
  
  .tcl-search-btn,
  .tcl-shop-btn,
  .tcl-menu-btn {
    padding: 5px 8px;
    min-height: 28px;
    font-size: 11px;
  }
  
  .tcl-search-btn svg,
  .tcl-shop-btn svg,
  .tcl-menu-btn svg {
    width: 12px;
    height: 12px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .tcl-search-btn,
  .tcl-shop-btn,
  .tcl-menu-btn {
    border-width: 2px;
    box-shadow: none;
  }
  
  .tcl-search-btn:focus,
  .tcl-shop-btn:focus,
  .tcl-menu-btn:focus {
    outline: 3px solid #1B4332;
    outline-offset: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .tcl-search-btn,
  .tcl-shop-btn,
  .tcl-menu-btn {
    transition: none;
  }
  
  .tcl-search-btn:hover,
  .tcl-shop-btn:hover,
  .tcl-menu-btn:hover {
    transform: none;
  }
  
  .tcl-search-btn:hover svg,
  .tcl-shop-btn:hover svg,
  .tcl-menu-btn:hover svg {
    transform: none;
  }
  
  .tcl-menu-btn:hover .tcl-hamburger span {
    transform: none;
  }
}

/* Focus Visible for Better Accessibility */
.tcl-search-btn:focus-visible,
.tcl-shop-btn:focus-visible,
.tcl-menu-btn:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
}

/* Loading States */
.tcl-search-btn.loading,
.tcl-shop-btn.loading,
.tcl-menu-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Disabled States */
.tcl-search-btn:disabled,
.tcl-shop-btn:disabled,
.tcl-menu-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .tcl-header-actions {
    display: none;
  }
} 