/* 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;
}

/* 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;
}

.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.6);
  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.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

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

.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: background 0.3s;
}

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

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

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}