/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at 10% 20%, #03070f, #010101);
  color: #fff;
  scroll-behavior: smooth;
}

/* ========== RESPONSIVE MASONRY GRID ========== */
.masonry-grid {
  column-count: 2;
  column-gap: 0.75rem;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 3;
    column-gap: 1rem;
    padding: 0 0.5rem;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 4;
    column-gap: 1.25rem;
    padding: 0 0;
  }
}

@media (min-width: 1536px) {
  .masonry-grid {
    column-count: 5;
    column-gap: 1.5rem;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .masonry-item {
    margin-bottom: 1.25rem;
  }
}

/* ========== IMAGE CARDS ========== */
.image-card {
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 1.2rem;
  transition: all 0.25s;
  cursor: pointer;
}

.image-card:hover {
  transform: translateY(-3px);
}

.prompt-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 65%,
    transparent 100%
  );
  border-radius: 1.2rem;
  transition: opacity 0.2s;
}

.image-card .prompt-overlay {
  opacity: 0;
}

.image-card:hover .prompt-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .image-card .prompt-overlay {
    opacity: 0;
  }
}

.prompt-overlay p {
  font-size: 9px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .prompt-overlay p {
    font-size: 10px;
    line-height: 1.4;
  }
}

.copy-btn {
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.copy-btn:hover {
  background: white;
  transform: scale(0.98);
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
}

/* ========== NAVIGATION ========== */
.glass-nav-new {
  background: rgba(6, 10, 18, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ========== DESCRIPTION ========== */
.simple-description {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .simple-description {
    margin-bottom: 2rem;
    padding: 0;
  }
}

.simple-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #94a3f8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .simple-title {
    font-size: 1.5rem;
  }
}

.simple-text {
  color: #9ca3af;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 100%;
}

@media (min-width: 768px) {
  .simple-text {
    font-size: 0.9rem;
    max-width: 800px;
  }
}

/* ========== LANGUAGE SWITCH ========== */
.lang-switch {
  background: rgba(15, 25, 40, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 2px;
}

.lang-option {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 40px;
  transition: all 0.2s;
  cursor: pointer;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .lang-option {
    font-size: 11px;
    padding: 4px 12px;
  }
}

.lang-option.active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.lang-option:not(.active):hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* ========== LOGIN BUTTONS ========== */
.google-login-btn {
  background: linear-gradient(105deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.25s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #1e293b;
  padding: 5px 10px;
  font-size: 10px;
  gap: 5px;
  border-radius: 40px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .google-login-btn {
    padding: 6px 12px;
    font-size: 11px;
    gap: 6px;
  }
  .google-login-btn svg {
    width: 14px;
    height: 14px;
  }
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  object-fit: cover;
}

@media (min-width: 768px) {
  .user-avatar {
    width: 28px;
    height: 28px;
  }
}

.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 40px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .logout-btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== TOAST NOTIFICATION ========== */
.toast-warning {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3b82f6;
  animation: fadeInUp 0.3s ease;
}

.toast-warning.error {
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  border: 1px solid #ef4444;
}

.toast-warning.success {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #3b82f6;
}

@media (min-width: 768px) {
  .toast-warning {
    padding: 12px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .toast-warning {
    white-space: normal;
    max-width: 85%;
    text-align: center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3b82f6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0.5rem 1rem 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.category-filter::-webkit-scrollbar {
  height: 3px;
}

.category-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  color: #94a3b8;
}

.category-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.category-chip.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}
