/* Custom styles beyond Bootstrap and Tailwind */

/* Animation for loading spinner */
@keyframes spinner {
  to {transform: rotate(360deg);}
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: currentColor;
  animation: spinner .8s linear infinite;
}

/* Image hover effect */
.art-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Frame preview styles */
.frame-preview {
  position: relative;
  padding: 20px;
  transition: all 0.3s ease;
}

.frame-black {
  background: #111;
  border: solid 10px #111;
}

.frame-white {
  background: #f8f9fa;
  border: solid 10px #f8f9fa;
}

.frame-natural {
  background: #f5f2e9;
  border: solid 10px #d2bc8b;
}

.frame-gold {
  background: #f5f2e9;
  border: solid 10px #d4af37;
}

/* Hero section background gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Material display */
.material-museum {
  border: 1px solid rgba(100, 100, 100, 0.2);
}

.material-canvas {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="rgba(100,100,100,0.1)" d="M0 0h10v10H0zm10 10h10v10H10z"/></svg>');
  background-size: 10px 10px;
}

/* Extras badges */
.extra-badge {
  position: relative;
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  background-color: rgba(108, 117, 125, 0.1);
  margin-right: 0.5rem;
}

/* Size indicators */
.size-indicator {
  display: inline-block;
  padding: 4px 8px;
  margin-right: 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Order Modal Selection States */
.btn-check:checked + .btn-outline-dark {
  background-color: #C4A572 !important;
  border-color: #C4A572 !important;
  color: white !important;
}

.btn-check:focus + .btn-outline-dark {
  box-shadow: 0 0 0 0.25rem rgba(196, 165, 114, 0.25) !important;
}

.form-select:focus {
  border-color: #C4A572 !important;
  box-shadow: 0 0 0 0.25rem rgba(196, 165, 114, 0.25) !important;
}

/* Selected state styling */
.btn-outline-dark:hover {
  background-color: #C4A572;
  border-color: #C4A572;
  color: white;
}

/* Format selection highlighting */
.format-option.selected {
  background-color: #C4A572 !important;
  color: white !important;
  border-color: #C4A572 !important;
}

.format-option:hover {
  background-color: #E5D4B8;
  border-color: #C4A572;
}

/* Orientation selection highlighting */
.orientation-choice.selected {
  border: 3px solid #C4A572 !important;
  background-color: rgba(196, 165, 114, 0.1) !important;
}

.orientation-choice:hover {
  border-color: #C4A572 !important;
  background-color: rgba(196, 165, 114, 0.05);
}

.size-indicator.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* Price summary */
.price-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.price-total {
  font-weight: bold;
  border-top: 1px solid #dee2e6;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Admin dashboard specific styles */
.stat-card {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Animation for success page */
@keyframes success-checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-checkmark {
  animation: success-checkmark 0.6s ease-in-out;
}

/* Style selection buttons */
.style-option {
  position: relative;
}

.style-option input[type="radio"] {
  display: none;
}

.style-option label {
  display: block;
  width: 100%;
  padding: 12px 8px;
  border: 2px solid #E8E0D0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #2C2C2C;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.2;
}

.style-option label:hover {
  border-color: #B8860B;
  background: rgba(184, 134, 11, 0.05);
}

.style-option input[type="radio"]:checked + label {
  border-color: #B8860B;
  background: linear-gradient(135deg, #B8860B 0%, #996F0A 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* Responsive adjustments for style buttons */
@media (max-width: 640px) {
  .style-option label {
    font-size: 0.75rem;
    padding: 8px 4px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .style-option label {
    font-size: 0.7rem;
    padding: 6px 3px;
    min-height: 45px;
  }
}
