/* Custom styles that complement Tailwind */

/* Story link underline animation */

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #f8fafc;
  --primary-foreground: #1e293b;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #1e293b;
  --destructive: #ef4444;
  --destructive-foreground: #f8fafc;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0f172a;
  --radius: 0.5rem;
}
.story-link {
  position: relative;
  display: inline-block;
}


/* News Section */
.news-section {
  padding: 3rem 0 6rem;
}

.news-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.news-header p {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* News Card */
.news-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--border), 0.4);
  background-color: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s;
  animation: fadeUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.news-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-image-container {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}

.news-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.news-card-content {
  padding: 1.25rem;
}

.news-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
}


.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-foreground);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-left: 1rem;
}

.book-btn:hover {
  background-color: var(--accent-foreground);
  opacity: 0.9;
}

.book-btn:active {
  transform: scale(0.97);
}

.book-btn .icon {
  width: 1rem;
  height: 1rem;
}

color: var(--muted-foreground);
font-size: 0.875rem;
margin-top: 0.5rem;
}

.product-container {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1rem;
}

@media (min-width: 768px) {
.product-container {
  flex-direction: row;
}
}

.product-image-container {
flex: 1;
width: 100%;
height: 300px;
overflow: hidden;
border-radius: var(--radius);
}

.product-image {
width: 100%;
height: 100%;
object-fit: cover;
}

.product-details {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.75rem;
font-size: 0.875rem;
}

.quantity-control {
display: flex;
align-items: center;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
max-width: 100px;
}

.quantity-btn {
display: flex;
align-items: center;
justify-content: center;
background: var(--accent);
border: none;
width: 2rem;
height: 2rem;
cursor: pointer;
transition: background-color 0.2s;
}

.quantity-btn:hover {
background: var(--muted);
}

.quantity-control input {
flex: 1;
text-align: center;
border: none;
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
height: 2rem;
padding: 0;
margin: 0;
width: 2.5rem;
font-size: 0.875rem;
-moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

.price-info {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid var(--border);
font-size: 0.875rem;
}

.unit-price,
.total-price {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}

.total-price {
font-weight: 600;
font-size: 1rem;
margin-top: 0.375rem;
}

.purchase-btn {
margin-top: 1rem;
width: 100%;
justify-content: center;
padding: 0.625rem;
font-size: 0.875rem;
}
.news-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--card-foreground);
}

.news-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: var(--primary-foreground);
}

.read-more-btn:hover .button-icon {
  transform: translateX(4px);
}

.button-icon {
  transition: transform 0.3s;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 50;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}


.donation-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.donation-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}


/* Switch Toggle for Currency */
.currency-toggle {
display: flex;
align-items: center;
justify-content: center;
margin: 16px 0;
gap: 10px;
}

.currency-label {
font-weight: 500;
color: #555;
}

.switch {
position: relative;
display: inline-block;
width: 60px;
height: 30px;
}

.switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
}

.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
}

input:checked + .slider {
background-color: #2196F3;
}

input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
transform: translateX(30px);
}

.slider.round {
border-radius: 34px;
}

.slider.round:before {
border-radius: 50%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}
.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(var(--ring), 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
  margin-bottom: 1.25rem;
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amount-option {
  flex: 1;
  min-width: 4rem;
  padding: 0.5rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-option:hover {
  background-color: var(--accent);
}

.amount-option.active {
  background-color: var(--primary);
  border-color: var(--ring);
  color: var(--primary-foreground);
}

.donate-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem;
}
.modal-image-container {
  height: 16rem;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-body {
  margin-top: 1rem;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--card-foreground);
}

.donation-modal-content {
  max-width: 32rem;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 48rem;
  margin: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: scaleIn 0.3s ease-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .modal-content {
    margin: 2rem;
    padding: 2rem;
  }
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  z-index: 1;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}



.story-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #33C3F0;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}



.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.separator {
  display: inline-block;
}

.modal-image-container {
  height: 16rem;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-body {
  margin-top: 1rem;
}

.modal-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--card-foreground);
}

/* Modal Styles */
.donation-modal-content {
  max-width: 32rem;
}

.book-modal-content {
  max-width: 36rem;
}

@media (max-width: 640px) {
  .book-modal-content {
    width: 95%;
    margin: 1rem;
    padding: 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-body p {
    font-size: 0.875rem;
  }
}

.donation-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.donation-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(var(--ring), 0.1);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
  margin-bottom: 1.25rem;
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amount-option {
  flex: 1;
  min-width: 4rem;
  padding: 0.5rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-option:hover {
  background-color: var(--accent);
}

.amount-option.active {
  background-color: var(--primary);
  border-color: var(--ring);
  color: var(--primary-foreground);
}

.donate-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.75rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 8rem;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-action {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.button.primary {
  background-color: var(--foreground);
  color: var(--background);
}

.button.primary:hover {
  opacity: 0.9;
}

.button-icon {
  width: 1rem;
  height: 1rem;
}

/* Animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.story-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Product card hover effects */
.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card:hover .product-overlay {
  background-opacity: 0.1;
}

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

@keyframes float {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

@keyframes pulseSlow {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.8;
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* Line clamp for descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Transition utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 700ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* News Styles */
.prose {
    max-width: 65ch;
    color: #374151;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.3333333;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
}

.prose a {
    color: #6366f1;
    text-decoration: underline;
    font-weight: 500;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
