/* Dymages Custom Styles */

/* CSS Variables for theming */
:root {
  --primary: 142 69% 58%;
  --primary-foreground: 355 7% 97%;
  --secondary: 142 5% 96%;
  --secondary-foreground: 142 5% 11%;
  --muted: 142 5% 96%;
  --muted-foreground: 142 4% 46%;
  --accent: 142 5% 96%;
  --accent-foreground: 142 5% 11%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 355 7% 97%;
  --border: 142 6% 93%;
  --input: 142 6% 93%;
  --ring: 142 69% 58%;
  --background: 0 0% 100%;
  --foreground: 142 5% 6%;
  --card: 0 0% 100%;
  --card-foreground: 142 5% 6%;
  --popover: 0 0% 100%;
  --popover-foreground: 142 95% 6%;
}

.dark {
  --primary: 142 69% 58%;
  --primary-foreground: 142 5% 6%;
  --secondary: 142 4% 16%;
  --secondary-foreground: 142 5% 96%;
  --muted: 142 4% 16%;
  --muted-foreground: 142 4% 63%;
  --accent: 142 4% 16%;
  --accent-foreground: 142 5% 96%;
  --destructive: 0 62% 30%;
  --destructive-foreground: 142 5% 96%;
  --border: 142 4% 16%;
  --input: 142 4% 16%;
  --ring: 142 69% 58%;
  --background: 142 4% 6%;
  --foreground: 142 5% 96%;
  --card: 142 4% 6%;
  --card-foreground: 142 5% 96%;
  --popover: 142 4% 6%;
  --popover-foreground: 142 5% 96%;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tab Navigation */
.tab-button {
  border-bottom: 2px solid transparent;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--muted));
}

.tab-button.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--foreground));
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Image hover effects */
.gallery-image {
  transition: transform 0.2s ease;
}

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

/* Button styles */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
input, textarea, select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

/* Card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Success and error states */
.success {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.error {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Responsive design */
@media (max-width: 768px) {
  .tab-button {
    font-size: 0.875rem;
    padding: 0.5rem 0.25rem;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode utilities */
.dark-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
}

/* Image placeholder */
.image-placeholder {
  background: linear-gradient(45deg, hsl(var(--muted)) 25%, transparent 25%),
              linear-gradient(-45deg, hsl(var(--muted)) 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, hsl(var(--muted)) 75%),
              linear-gradient(-45deg, transparent 75%, hsl(var(--muted)) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Logo styles */
.logo-dymages {
  background: linear-gradient(135deg, #10b981, #059669);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}