/* Project AARNA - Optimized styles.css (Tailwind complement) */

/* Base & Theme Variables */
html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

.bg-texture {
  background-image: radial-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 20px 20px;
}

.dark .bg-texture {
  background-image: radial-gradient(#374151 1px, transparent 1px);
}

/* Material Icons Styling */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.icon-filled {
  font-variation-settings: 'FILL' 1;
}

/* Enhanced Hover Effects */
.hover-float {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.hover-float:hover {
  transform: translateY(-4px);
}

/* Experiments Grid */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.experiment-card {
  position: relative;
  background: var(--tw-prose-body);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
}

.experiment-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
}

.experiment-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  margin-bottom: 0.75rem;
}

/* Carousel Styles */
.exp-carousel {
  position: relative;
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.exp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.exp-track::-webkit-scrollbar {
  display: none;
}

.exp-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.exp-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.exp-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.exp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.exp-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #3b82f6;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: white;
  color: #1f2937;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #10b981;
  color: white;
  border-color: #059669;
}

.toast-error {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
}

html.dark .toast {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.3);
}

/* Admin Styles */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.admin-tab.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.admin-panel {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
}

html.dark .admin-panel {
  background: rgba(30, 41, 59, 0.5);
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

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

.admin-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
  color: #1f2937;
}

html.dark .admin-table th {
  color: #f1f5f9;
}

.admin-table td {
  padding: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.form-info {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.8);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Contact Form Enhancements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .experiments-grid {
    grid-template-columns: 1fr;
  }
  
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar (for supported browsers) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

html.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

html.dark ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}
