/*
 Theme Name:   SPX News
 Theme URI:
 Description:  SPX News Theme
 Author:       Shoplic Inc.
 Author URI:   https://shoplic.kr/
 Template:     bricks
 Version:      1.1
 Text Domain:  spx
*/

:root {
  --fluentform-primary: var(--color-red);
}
html {
  font-size: inherit;
}
body {
  line-height: 1.5;
}

.fluentform .ff-message-success,
.fluentform .ff-message-error {
  border: none;
  box-shadow: none;
  padding-left: 0;
}
ol, ul {
  list-style: none;
  /* margin: 0; */
  padding: 0;
}
ul.page-numbers {
  display: flex;
  gap: calc(var(--spacing) * 2);
  justify-content: center;
  align-items: center;
}

.article-content img {
  max-width: 100%;
}
.article-content ul {
  list-style: inherit;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

/* Print */

@media print {
  .spx-print-exclude {
    display: none !important;
  }
}

.brxe-post-content h1,
.brxe-post-content h2,
.brxe-post-content h3,
.brxe-post-content h4,
.brxe-post-content h5,
.brxe-post-content h6
.brxe-post-content p
{
  margin-bottom: 1rem;
}
/* Animations */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}
@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fade-in-delay-1 {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}
.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-shake:hover {
  animation: shake 0.5s ease;
}

/* Utility Classes */

.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;
}
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15);
}

/* 404 Page */

.newspaper-bg {
  background-image:
    linear-gradient(90deg, transparent 79px, #e5e7eb 79px, #e5e7eb 80px, transparent 80px),
    linear-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 100% 24px;
}
.torn-edge {
  position: relative;
}
.torn-edge::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(135deg, white 33.33%, transparent 33.33%),
              linear-gradient(225deg, white 33.33%, transparent 33.33%);
  background-size: 20px 20px;
}
.search-link {
  transition: all 0.3s ease;
}
.search-link:hover {
  transform: translateX(8px);
  color: #C41E3A;
}
.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: '404';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch-text::before {
  color: #C41E3A;
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch-text::after {
  color: #e63946;
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

/* Article Content */

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.article-content blockquote {
  border-left: 4px solid #C41E3A;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4a4a68;
}

/* File Drop Zone */

.file-drop-zone {
  border: 2px dashed #d1d5db;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.file-drop-zone:hover {
  border-color: #C41E3A;
  background-color: rgba(196, 30, 58, 0.03);
}

/* FAQ */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.open {
  transform: rotate(45deg);
}

/* Category */

.gradient-border {
  background: linear-gradient(90deg, #C41E3A 0%, #e63946 100%);
}
.category-badge {
  transition: all 0.2s ease;
}
.category-badge:hover {
  transform: scale(1.05);
}

/* Policy Content */

.policy-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C41E3A;
}
.policy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #4a4a68;
}
.policy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.policy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #4a4a68;
  position: relative;
}
.policy-content li::before {
  content: "\2022";
  color: #C41E3A;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}
.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.policy-content th,
.policy-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}
.policy-content th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a1a2e;
}
.toc-link {
  transition: all 0.2s ease;
}
.toc-link:hover {
  color: #C41E3A;
  padding-left: 0.5rem;
}

/* Search */

.search-highlight {
  background: linear-gradient(120deg, #fef08a 0%, #fef08a 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 90%;
}
.filter-chip {
  transition: all 0.2s ease;
}
.filter-chip:hover {
  background-color: #C41E3A;
  color: white;
  border-color: #C41E3A;
}
.filter-chip.active {
  background-color: #C41E3A;
  color: white;
  border-color: #C41E3A;
}

/* Tag */

.tag-chip {
  transition: all 0.2s ease;
}
.tag-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}
