html {
  /* font-size: 24px; */
  font-family: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: rgba(19, 52, 59, 1);
  background-color: rgba(252, 252, 249, 1);
  /* -webkit-font-smoothing: antialiased; */
  box-sizing: border-box;
}


*, *::before, *::after {
  box-sizing: inherit;
}

/* Typography */
/* h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 550;
  line-height: 1.2;
  color: rgba(19, 52, 59, 1);
  letter-spacing: -0.01em;
} */
/* h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; } */

p { margin: 0 0 16px 0; }

a {
  /* color: rgba(33, 128, 141, 1); */
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover { color: rgba(29, 116, 128, 1); }


code, pre {
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.3px;
  background-color: rgba(94, 82, 64, 0.12);
  border-radius: 6px;
}
code { padding: 1px 4px; }
pre {
  padding: 16px;
  margin: 16px 0;
  overflow: auto;
  border: 1px solid rgba(94, 82, 64, 0.2);
}
pre code { background: none; padding: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  position: relative;
}
.mycustombtn{
    background: rgba(33, 128, 141, 1) !important;        
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.4);
}
.btn--primary {
  background: rgba(33, 128, 141, 1);
  color: rgba(252, 252, 249, 1);
}
.btn--primary:hover { background: rgba(29, 116, 128, 1); }
.btn--primary:active { background: rgba(26, 104, 115, 1); }
.btn--secondary {
  background: rgba(94, 82, 64, 0.12);
  color: rgba(19, 52, 59, 1);
}
.btn--secondary:hover { background: rgba(94, 82, 64, 0.2); }
.btn--secondary:active { background: rgba(94, 82, 64, 0.25); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(94, 82, 64, 0.2);
  color: rgba(19, 52, 59, 1);
}
.btn--outline:hover {
  background: rgba(94, 82, 64, 0.12);
}
.btn--sm {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.btn--lg {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 10px;
}
.btn--full-width { width: 100%; }
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(19, 52, 59, 1);
  background-color: rgba(255, 255, 253, 1);
  border: 1px solid rgba(94, 82, 64, 0.2);
  border-radius: 8px;
  transition: border-color 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
textarea.form-control { font-family: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; }
select.form-control {
  padding: 8px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 32px;
}
.form-control:focus {
  border-color: rgba(33, 128, 141, 1);
  outline: 2px solid rgba(33, 128, 141, 1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 12px;
}
.form-group { margin-bottom: 16px; }

/* Card component */
.card {
  background-color: rgba(255, 255, 253, 1);
  border-radius: 12px;
  border: 1px solid rgba(94, 82, 64, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
              0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
.card__body { padding: 16px; }
.card__header,
.card__footer {
  padding: 16px;
  border-bottom: 1px solid rgba(94, 82, 64, 0.12);
}

/* Status indicators */
.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 12px;
}
.status--success {
  background-color: rgba(33, 128, 141, 0.15);
  color: rgba(33, 128, 141, 1);
  border: 1px solid rgba(33, 128, 141, 0.25);
}
.status--error {
  background-color: rgba(192, 21, 47, 0.15);
  color: rgba(192, 21, 47, 1);
  border: 1px solid rgba(192, 21, 47, 0.25);
}
.status--warning {
  background-color: rgba(168, 75, 47, 0.15);
  color: rgba(168, 75, 47, 1);
  border: 1px solid rgba(168, 75, 47, 0.25);
}
.status--info {
  background-color: rgba(98, 108, 113, 0.15);
  color: rgba(98, 108, 113, 1);
  border: 1px solid rgba(98, 108, 113, 0.25);
}

/* Container layout */
.container2 {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}
@media (min-width: 640px) { .container2 { max-width: 640px; } }
@media (min-width: 768px) { .container2 { max-width: 768px; } }
@media (min-width: 1024px) { .container2 { max-width: 1024px; } }
@media (min-width: 1280px) { .container2 { max-width: 1280px; } }

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

.m-0 { margin: 0; }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mx-8 { margin-left: 8px; margin-right: 8px; }
.my-8 { margin-top: 8px; margin-bottom: 8px; }

.p-0 { padding: 0; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.px-16 { padding-left: 16px; padding-right: 16px; }

.block { display: block; }
.hidden { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
:focus-visible {
  outline: 2px solid rgba(33, 128, 141, 1);
  outline-offset: 2px;
}

/* Header */
.header {
  background: linear-gradient(135deg, rgba(33,128,141,1), rgba(29,116,128,1));
  padding: 32px 0;
  text-align: center;
  color: rgba(255,255,255,1);
  margin-bottom: 32px;
}
.header__title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header__subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* Upload section */
.upload-section { margin-bottom: 32px; }
.upload-area {
  border: 3px dashed rgba(94, 82, 64, 0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 253, 1);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-area::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}
.upload-area:hover::before { opacity: 0.05; }
.upload-area:hover {
  border-color: rgba(33, 128, 141, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.upload-area.drag-over {
  border-color: rgba(33, 128, 141, 1);
  background: rgba(59, 130, 246, 0.08);
  transform: scale(1.02);
}
.upload-content { position: relative; z-index: 2; }
.upload-icon { font-size: 3rem; margin-bottom: 16px; }
.upload-area h3 {
  color: rgba(19, 52, 59, 1);
  margin-bottom: 8px;
  font-weight: 550;
}
.upload-area p {
  color: rgba(98, 108, 113, 1);
  margin-bottom: 16px;
}

/* Gallery Section */
.gallery-section {
  margin-top: 32px;
  margin-bottom: 32px;
 }
.section-title {
  text-align: center;
  color: rgba(19, 52, 59, 1);
  margin-bottom: 24px;
  font-size: 28px ;
  font-weight: 550;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Meme cards */
.meme-card {
  background: #ffdfae;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  cursor: pointer;
}
.meme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.meme-card__image-container { position: relative; overflow: hidden; }
.meme-card__image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.meme-card:hover .meme-card__image {
  transform: scale(1.05);
}
.meme-card__overlay {
  
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}
.meme-card:hover .meme-card__overlay {
  opacity: 1;
  visibility: visible;
}
/* Card actions */
.meme-card__action {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(19, 52, 59, 1);
  border: none;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 550;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.meme-card__action:hover {
  background: rgba(33, 128, 141, 1);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(33, 128, 141, 0.4);
}
.meme-card__action:active {
  transform: translateY(-1px) scale(1.02);
}
.meme-card__info {
  padding: 12px;
  text-align: center;
}
.meme-card__title {
  color: rgba(19, 52, 59, 1);
  font-size: 17px !important;
  font-weight: 500;
  margin: 0;
}

/* Load More Section */
.load-more-container {
  text-align: center;
  margin-top: 32px;
}
.load-more-btn {
  position: relative ;
  min-width: 200px ;
  padding: 12px 24px ;
  font-size: 16px ;
  font-weight: 550 ;
}
.loading-spinner {
  font-size: 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255,255,253,1);
  border: 1px solid rgba(94, 82, 64, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04),
              0 4px 6px -2px rgba(0,0,0,0.02);
  padding: 16px;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 1000;
}
.toast.show {
  transform: translateX(0);
}
.toast__content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast__icon { font-size: 16px; }
.toast__message {
  color: rgba(19, 52, 59, 1);
  font-weight: 500;
}

/* Modal Styles */
.modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.show {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal__content {
  background: rgba(255,255,253,1);
  border-radius: 12px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04),
              0 4px 6px -2px rgba(0,0,0,0.02);
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
  overflow: auto;
}
.modal.show .modal__content {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: rgba(255, 255, 255, 1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 10;
}
.modal__close:hover {
  background: rgba(33, 128, 141, 1);
  transform: scale(1.1);
}
.modal__image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Utility */
.hidden { display: none ; }
.show { display: block ; }

/* Button Enhancements */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top:50%;
  left:50%;
  width:0;
  height:0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.btn:active::before {
  width: 300px;
  height: 300px;
}
.btn--primary {
  background: linear-gradient(135deg, rgba(33,128,141,1), rgba(29,116,128,1));
  color: rgba(255,255,255,1);
  border: none;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33,128,141,0.3);
}
.btn--secondary {
  background: rgba(94, 82, 64, 0.12);
  color: rgba(19, 52, 59, 1);
  border: 1px solid rgba(94, 82, 64, 0.2);
}
.btn--secondary:hover {
  background: rgba(94, 82, 64, 0.2);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: rgba(19, 52, 59, 1);
  border: 2px solid rgba(33, 128, 141, 1);
}
.btn--outline:hover {
  background: rgba(33, 128, 141, 1);
  color: rgba(255,255,255,1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33,128,141,0.3);
}

/* Responsive Design */
@media (hover: none) and (pointer: coarse) {
  .meme-card__overlay {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
  }
  .meme-card__action {
    background: rgba(255, 255, 255, 0.9);
  }
}
@media (max-width: 768px) {
  .container2 { padding: 0 12px; }
  .header { padding: 24px 0; }
  .header__title { font-size: 24px; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  .upload-area { padding: 24px; }
  .modal__content {
    margin: 16px;
    padding: 16px;
  }
  .modal__actions { flex-direction: column; }
  .meme-card__overlay {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
  }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .header__title { font-size: 20px; }
  .meme-card__action {
    font-size: 11px;
    padding: 4px 8px;
  }
}
