/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Material Symbols Icon Styles */
.material-symbols-filled {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Google Login Button Styles */
.google-login, .google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.google-login:hover, .google-btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-login:active, .google-btn:active {
  background-color: #f1f3f4;
}

/* For navigation bar */
.google-login {
  font-size: 0.875rem;
}

/* For hero section */
.google-btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* For CTA section */
.cta-button.google-btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
}

/* Kakao Login Button Styles */
.kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FEE500;
  color: #000000;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.kakao-btn:hover {
  background-color: #FCD500;
}

.kakao-btn:active {
  background-color: #F9C800;
}

.cta-button-secondary.kakao-btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
}

/* Naver Login Button Styles */
.naver-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #03C75A;
  color: white;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.naver-btn:hover {
  background-color: #02A552;
}

.naver-btn:active {
  background-color: #019148;
}

.cta-button-secondary.naver-btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
}

/* Modal Styles */
#login-modal {
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

#login-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

#login-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#login-modal .bg-white {
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#login-modal:not(.hidden) .bg-white {
  transform: translateY(0);
}

/* Form input styles */
input[type="email"], input[type="password"] {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="email"]:focus, input[type="password"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Engagement Level Up Animation */
@keyframes engagement-level-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(74, 124, 89, 0.2);
  }
}

@keyframes engagement-level-glow {
  0%, 100% {
    border-color: rgba(74, 124, 89, 0.3);
  }
  50% {
    border-color: rgba(74, 124, 89, 0.8);
  }
}

.engagement-level-up {
  animation: engagement-level-pulse 2s ease-in-out 3, engagement-level-glow 2s ease-in-out 3;
  border: 2px solid rgba(74, 124, 89, 0.3);
}

.engagement-level-up::before {
  content: "🎉";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 24px;
  animation: bounce 1s ease infinite;
}

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

/* Rich Text / Prose Content Styles for Event Descriptions */
.rich-text-content {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #cbd5e1; /* slate-300 */
}

.rich-text-content p {
  margin-bottom: 1em;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

.rich-text-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: white;
}

.rich-text-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  color: white;
}

.rich-text-content ul,
.rich-text-content ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  padding-left: 1.5em;
}

.rich-text-content ul {
  list-style-type: disc;
}

.rich-text-content ol {
  list-style-type: decimal;
}

.rich-text-content li {
  margin-bottom: 0.375em;
  padding-left: 0.25em;
}

.rich-text-content li::marker {
  color: #94a3b8; /* slate-400 */
}

.rich-text-content blockquote {
  border-left: 3px solid #475569; /* slate-600 */
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: #94a3b8; /* slate-400 */
}

.rich-text-content a {
  color: #137fec; /* primary */
  text-decoration: underline;
}

.rich-text-content a:hover {
  color: #3b9ff8;
}

.rich-text-content strong {
  font-weight: 600;
  color: white;
}

.rich-text-content em {
  font-style: italic;
}

.rich-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1em 0;
}

.rich-text-content iframe {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 1em 0;
}

.rich-text-content hr {
  border: none;
  border-top: 1px solid #334155; /* slate-700 */
  margin: 1.5em 0;
}

/* AI Conversation Markdown Content Styles */
.ai-markdown-content {
  line-height: 1.6;
}

.ai-markdown-content p {
  margin: 0.75rem 0;
}

.ai-markdown-content p:first-child {
  margin-top: 0;
}

.ai-markdown-content p:last-child {
  margin-bottom: 0;
}

/* Add extra spacing before paragraphs that start with bold (section headers) */
.ai-markdown-content p:has(> strong:first-child) {
  margin-top: 1.25rem;
}

.ai-markdown-content strong {
  font-weight: 600;
  color: white;
}

.ai-markdown-content em {
  font-style: italic;
  color: #c7d2fe; /* indigo-200 */
}

.ai-markdown-content ul,
.ai-markdown-content ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.ai-markdown-content li {
  margin: 0.25rem 0;
}

.ai-markdown-content table {
  width: 100%;
  margin: 0.75rem 0;
  border-collapse: collapse;
}

.ai-markdown-content th,
.ai-markdown-content td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #475569;
}

.ai-markdown-content th {
  font-weight: 600;
  color: white;
}

/* AI Rating Animation Styles */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

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

.animate-fade-out {
  animation: fade-out 0.5s ease-out forwards;
}
