/* Common styles for datax.cash website */

:root {
  /* Logo size - change this one value to resize all logos */
  --logo-height: 1.05rem; /* ~17px - reduced by 30% from 24px */
  
  /* Brand colors */
  --brand-primary: #0b2747;
  --brand-secondary: #6b7280;
}

/* Global font size adjustment - 90% of default */
html {
  font-size: 90%;
}

/* Logo styles */
.logo {
  height: var(--logo-height);
  width: auto;
  /* Ensure logo is visible in dark theme */
  filter: brightness(0) invert(1);
}

/* Alternative logo sizes for special cases */
.logo-small {
  height: 0.875rem; /* ~14px - 30% smaller than original small */
  width: auto;
}

.logo-large {
  height: 1.4rem; /* ~22px - 30% smaller than original large */
  width: auto;
}

/* Brand text styles */
.brand-text {
  color: var(--brand-primary);
}

.brand-secondary {
  color: var(--brand-secondary);
}

/* 
  To change logo size globally, just modify --logo-height in :root
  Examples (all reduced by 30% from original):
  - Extra Small: --logo-height: 0.875rem; (~14px)
  - Small: --logo-height: 1.05rem; (~17px) - Current
  - Medium: --logo-height: 1.4rem; (~22px) 
  - Large: --logo-height: 1.75rem; (~28px)
*/

/* Gallery Section Styles */
.gallery-container {
  perspective: 1000px;
}

.gallery-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-item img {
  transition: transform 0.3s ease, filter 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}

/* Image loading states */
img.loading {
  background-color: #1e293b;
  opacity: 0.7;
  filter: blur(2px);
}

img.loaded {
  opacity: 1;
  filter: blur(0);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scale-up-on-hover {
  transition: transform 0.3s ease;
}

.scale-up-on-hover:hover {
  transform: scale(1.03);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #94a3b8;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1001;
}

.lightbox-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.1rem;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Gallery filter styles */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Improved mobile menu styles */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced scrollbar for better UX */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}