/* Font Face Definitions */
@font-face {
  font-family: "LobsterCustom";
  src: url("/fonts/Lobster-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoCustom";
  src: url("/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RobotoCustom";
  src: url("/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Default font for entire site */
html, body {
  font-family: "RobotoCustom", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* StoryChain logo text style */
.storychain-logo-text {
  font-family: "LobsterCustom", cursive;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-size: 1.8rem;
  color: #4A2EFF !important;
}

@media (max-width: 640px) {
  .storychain-logo-text {
    font-size: 1.5rem;
  }
}

/* Custom scrollbar for kids */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Theme colors */
.bg-theme-fantastik {
  background-color: #FF6B9D;
}

.bg-theme-gizem {
  background-color: #9B59B6;
}

.bg-theme-bilim {
  background-color: #3498DB;
}

.bg-theme-macera {
  background-color: #F39C12;
}

.bg-theme-sifir {
  background-color: #27AE60;
}

.bg-theme-iklim {
  background-color: #E74C3C;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility classes */
.text-primary {
  color: hsl(221.2, 83.2%, 53.3%);
}

.bg-primary {
  background-color: hsl(221.2, 83.2%, 53.3%);
}

.border-primary {
  border-color: hsl(221.2, 83.2%, 53.3%);
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsl(221.2, 83.2%, 53.3%);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input.error,
textarea.error {
  border-color: #ef4444;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: hsl(221.2, 83.2%, 53.3%);
  color: white;
}

.btn-primary:hover {
  background-color: hsl(221.2, 83.2%, 48%);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #1f2937;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

/* Toast notification styles */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  min-width: 300px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: #6b7280;
}

