/*
Theme Name: SWELL Child
Theme URI: https://e-writing.net
Template: swell
Author: Smart Information Co., Ltd.
Author URI: https://e-writing.net
Description: Custom WordPress Theme for Article Creation Center
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: article-center
*/

/* Tailwind CSS will be loaded via CDN in functions.php */

/* Custom Styles */
:root {
  --primary-blue: #0066cc;
  --dark-blue: #274c64;
  --secondary-cyan: #4dd9ff;
  --light-bg: #f1f7fb;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling is handled by JavaScript for proper header offset */

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Progress bar animations */
@keyframes progressBar {
  from {
    width: 0;
  }

  to {
    width: var(--progress-width);
  }
}

.progress-bar {
  animation: progressBar 1.5s ease-out forwards;
}

/* Hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
.mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Accordion arrow rotation */
.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-arrow.open {
  transform: rotate(180deg);
}

/* Single Post Content Styles */
.swell-block-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #2563eb;
}

.swell-block-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a202c;
  margin: 2rem 0 0.75rem 0;
  padding-left: 0.75rem;
  border-left: 4px solid #2563eb;
}

.swell-block-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.5rem 0;
}

.swell-block-content a {
  color: rgb(37 99 235);
  text-decoration: underline;
}

.swell-block-content a:hover {
  color: rgb(29 78 216);
}

.swell-block-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.swell-block-content img {
  margin: 0 0 1rem 0;
}

/* TOC List Styling */
.toc-nav ul {
  list-style: none;
  padding-left: 0;
}

.toc-nav li {
  margin-top: 0;
  margin-bottom: 0;
}

.toc-nav a {
  padding: 0;
  display: block;
  line-height: 1.4;
}

/* Slow bounce animation for dropdown arrows */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(1px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 1.5s ease-in-out infinite;
}

/* Scroll-triggered fade-up animation */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

.scroll-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}