/* Custom Styles for PicTime */

/* Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Story Cards */
.story-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

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

.story-image {
  height: 200px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.story-card-small {
  transition: transform 0.2s;
}

.story-card-small:hover {
  transform: translateY(-1px);
}

.story-image-small {
  height: 120px;
  object-fit: cover;
  background-color: #f8f9fa;
}

/* Story Book Display */
.story-book {
  max-width: 1000px;
  margin: 0 auto;
}

.story-page {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

.story-page-image {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.story-text {
  font-family: 'Georgia', serif;
  color: #2c3e50;
}

.page-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Forms */
.example-card {
  transition: border-color 0.2s;
  cursor: pointer;
}

.example-card:hover {
  border-color: #0d6efd !important;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Loading States */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 10px;
}

/* Tables */
.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    text-align: center;
  }

  .story-page .row {
    flex-direction: column-reverse;
  }

  .story-page-image {
    height: 250px;
  }

  .display-4 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .card-body {
    padding: 1rem;
  }
}

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

.story-page {
  animation: fadeIn 0.5s ease-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #343a40 !important;
    color: white;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .card-footer,
  footer,
  .dropdown,
  nav {
    display: none !important;
  }

  .story-page {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}