@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 48 100% 95%; /* Creamy White #FFF9E6 */
    --foreground: 0 0% 0%; /* Pure Black */
    
    --card: 0 0% 100%;
    --card-foreground: 0 0% 0%;
 
    --primary: 317 100% 77%; /* Hot Pink #FF90E8 */
    --primary-foreground: 0 0% 0%;
 
    --secondary: 191 100% 78%; /* Cyan #90E8FF */
    --secondary-foreground: 0 0% 0%;
 
    --accent: 137 100% 78%; /* Lime Green #90FFAF */
    --accent-foreground: 0 0% 0%;
    
    --warning: 47 100% 50%; /* Yellow #FFC900 */
    --warning-foreground: 0 0% 0%;

    --border: 0 0% 0%; /* Black Borders */
    --input: 0 0% 100%;
    --ring: 0 0% 0%;
  }
}
 
@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-family: 'Montserrat', sans-serif;
  }
}

/* Neobrutalism Styles */
.brutal-border {
  border: 4px solid black;
}

.brutal-shadow {
  box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 1);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.brutal-shadow:active:not(:disabled) {
  transform: translate(6px, 6px);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1);
}

.btn {
  @apply inline-flex items-center justify-center font-bold brutal-border brutal-shadow focus-visible:outline-none disabled:opacity-50 disabled:pointer-events-none px-8 py-4 uppercase tracking-widest text-sm lg:text-base;
}

.btn-primary {
  @apply bg-primary text-primary-foreground;
}

.btn-secondary {
  @apply bg-secondary text-secondary-foreground;
}

.btn-accent {
  @apply bg-accent text-accent-foreground;
}

.btn-warning {
  @apply bg-warning text-warning-foreground;
}

.brutal-card {
  @apply brutal-border brutal-shadow bg-card text-card-foreground p-8;
}

.input {
  @apply flex w-full brutal-border bg-input px-4 py-3 text-base placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.input:focus {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1);
}

.masonry-grid {
  columns: 1;
  gap: 2rem;
}
@media (min-width: 640px) {
  .masonry-grid {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}
.masonry-grid > div {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.gallery-img {
  @apply w-full brutal-border brutal-shadow cursor-pointer hover:-translate-y-1 hover:-translate-x-1 hover:box-shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] transition-all;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  @apply brutal-border brutal-shadow;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 50px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 4px 4px 0px black;
  transition: transform 0.1s;
}
.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--primary);
}
