/* Custom Styles for Holy Smokes Engraving */

:root {
  --primary: #1a1a1a;
  --accent: #8b4513;
  --light: #f5f3f0;
  --gold: #d4a574;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #d4a574;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #8b4513;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b3410;
}

/* Transitions */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shadow Effects */
.shadow-sm-custom {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-md-custom {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Toast Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast-slide-in {
  animation: slideIn 0.3s ease-out;
}

.toast-slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

/* Text Section Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(212, 165, 116, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.8);
  }
}

.fade-in-title {
  animation: fadeInDown 0.8s ease-out;
}

.fade-in-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Text Styling for Better Readability */
.lead {
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.display-5,
.display-6 {
  letter-spacing: -0.5px;
  font-weight: 600;
}

/* Variation Button Styles */
.variation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.variation-btn.active {
  border-color: #b45309;
  background-color: rgba(217, 119, 6, 0.1);
}

/* Gallery Thumbnail */
.gallery-thumb.active {
  border-color: #b45309;
}


/* Floating Live Stream Window */
.floating-stream-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  animation: slideInWindow 0.4s ease-out;
}

@keyframes slideInWindow {
  from {
    opacity: 0;
    transform: translateY(100px) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

.floating-stream-window.closing {
  animation: slideOutWindow 0.3s ease-in forwards;
}

@keyframes slideOutWindow {
  to {
    opacity: 0;
    transform: translateY(100px) translateX(50px);
  }
}

.floating-stream-window.minimized {
  height: 50px;
}

.floating-stream-window.minimized .floating-stream-body,
.floating-stream-window.minimized .floating-stream-footer {
  display: none;
}

.floating-stream-header {
  background: linear-gradient(135deg, #8b4513 0%, #6b3410 100%);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.floating-stream-header:hover {
  background: linear-gradient(135deg, #a0541a 0%, #7d3c12 100%);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: scale(1.2);
}

.floating-stream-body {
  flex: 1;
  overflow: hidden;
}

.floating-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.floating-stream-footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 8px;
  text-align: center;
}

.expand-btn {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 12px;
  background: #8b4513;
  border-radius: 4px;
  transition: background 0.3s;
  display: inline-block;
}

.expand-btn:hover {
  background: #a0541a;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-stream-window {
    width: 320px;
    height: 240px;
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .floating-stream-window {
    width: 280px;
    height: 200px;
  }
}