﻿/* GLOCK TRADES PAGE STYLES */

/* Background video */
#flag-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.08;
  pointer-events: none;
}

/* FFL Banner */
.ffl-banner {
  background-color: #cc0000;
  text-align: center;
  padding: 1rem;
}

.ffl-banner p {
  margin: 0 auto;
  font-weight: bold;
  font-size: 1.2rem;
  display: inline-block;
  color: #fff;
}

.ffl-banner a {
  color: #fff;
  text-decoration: underline;
}

/* Description box at top */
.description-box {
  max-width: 1500px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  background: #fdfbe6;
  border: 5px solid #f4d57e; /* Wider gold frame all around */
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.description-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.3) 45%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(255, 215, 0, 0.3) 55%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translate(-100%, -100%);
  }
  100% {
    transform: translate(100%, 100%);
  }
}

.description-box p {
  margin: 0 0 1rem 0;
  color: #444;
  position: relative;
  z-index: 1;
}

.description-box p:last-child {
  margin-bottom: 0;
}

/* Brand logos */
.brand-logo {
  text-align: center;
  margin: 3rem auto 2rem auto;
  max-width: 400px; /* Much narrower - was 1500px */
  background: #fff; /* White background so logos show */
  padding: 20px;
  border-radius: 8px;
}

.brand-logo img {
  max-width: 300px;
  height: auto;
}

/* Fade-in animation */
.fade-in-logo {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: opacity, transform;
}

.fade-in-logo.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glock card styles */
.glock-card {
  max-width: 1500px;
  margin: 1rem auto;
  padding: 1.5rem;
  background: #fdfbe6;
  border-left: 5px solid #f4d57e;
  display: flex;
  align-items: flex-start; /* Align to top so button can position properly */
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: 'Playfair Display', serif;
  position: relative; /* For button positioning */
}

.glock-card-image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px;
}

.glock-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.glock-card-content {
  flex-grow: 1;
  text-align: left;
  min-width: 300px; /* Keep content from collapsing */
}

.glock-card-content h3 {
  font-family: 'Oswald', sans-serif;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #333;
}

.glock-card-content p {
  margin: 0.25rem 0;
  color: #555;
  font-size: 1rem;
}

.glock-card-content p strong {
  color: #000;
}

.glock-card-content .price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #cc0000;
  margin-top: 0.5rem;
}

.glock-card button {
  position: absolute; /* Take out of flex flow */
  right: 1.5rem; /* Position from right edge */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Perfect center */
  background: var(--accent-red, #ff0000); /* Red like rest of site */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 1rem;
}

.glock-card button:hover {
  background: #cc0000;
  transform: translateY(-50%) translateY(-2px); /* Keep centered while lifting */
}

.glock-card button.out-of-stock {
  background: #666;
  color: #999;
  cursor: not-allowed;
}

.glock-card button.out-of-stock:hover {
  background: #666;
  transform: translateY(-50%); /* No lift on hover */
}

/* Info box at bottom */
.info-box {
  max-width: 1500px;
  margin: 2rem auto 1rem auto;
  padding: 1.5rem;
  background: #fdfbe6;
  border-left: 5px solid #f4d57e;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-box h2 {
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
  color: #333;
  font-family: 'Oswald', sans-serif;
}

.info-box p {
  color: #555;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .glock-card {
    flex-direction: column;
    text-align: center;
  }
  
  .glock-card-content {
    text-align: center;
  }
  
  .glock-card button {
    width: 100%;
  }
  
  .glock-card-image {
    width: 150px;
    height: 150px;
  }
  
  .brand-logo img {
    max-width: 200px;
  }
  
  .description-box {
    font-size: 0.95rem;
  }
}