/*
 * Witty Mermaid Custom Styles
 * Brand: Playful, Colorful, Whimsical
 * Colors from logo: Coral Pink, Light Pink, Dark Teal
 * Created: 2026-01-25
 */

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */
:root {
  --wm-coral: #E8919F;
  --wm-coral-dark: #D4808E;
  --wm-coral-light: #F2A5B2;
  --wm-pink: #F8B4C0;
  --wm-pink-light: #FFDCE4;
  --wm-teal: #2D4A5E;
  --wm-teal-light: #3D6A85;
  --wm-white: #FFFFFF;
  --wm-cream: #FFF9FA;
  --wm-shadow: rgba(45, 74, 94, 0.1);
  --wm-shadow-hover: rgba(232, 145, 159, 0.3);
  
  /* Gradients */
  --wm-gradient: linear-gradient(135deg, var(--wm-coral) 0%, var(--wm-pink) 100%);
  --wm-gradient-soft: linear-gradient(135deg, var(--wm-pink-light) 0%, var(--wm-cream) 100%);
}

/* ==========================================================================
   Global Styles & Typography
   ========================================================================== */
body {
  background: var(--wm-cream);
  color: var(--wm-teal);
  line-height: 1.8;
}

/* Smoother font rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: var(--wm-coral);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--wm-teal);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-header h2,
.post-title,
.widget-title h2 {
  color: var(--wm-teal);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header - Sticky & Compact on Scroll
   ========================================================================== */
#page-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wm-white);
  box-shadow: 0 2px 20px var(--wm-shadow);
  transition: all 0.3s ease;
}

#page-header.scrolled {
  box-shadow: 0 4px 30px var(--wm-shadow);
}

/* Shrink header on scroll */
#page-header.scrolled .header-logo {
  padding: 5px 0;
}

#page-header.scrolled .header-logo img {
  max-height: 50px;
  width: auto;
}

#page-header.scrolled #main-nav ul li a {
  padding: 10px 15px;
}

/* Logo area */
.header-logo {
  padding: 15px 0;
  transition: padding 0.3s ease;
}

.header-logo img {
  transition: max-height 0.3s ease;
  max-height: 100px;
}

/* Navigation */
#main-nav {
  background: var(--wm-white);
  border-top: 3px solid var(--wm-coral);
}

#main-nav ul li a {
  color: var(--wm-teal);
  font-weight: 500;
  padding: 15px 20px;
  position: relative;
  transition: all 0.3s ease;
}

#main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--wm-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

#main-nav ul li a:hover {
  color: var(--wm-coral);
}

#main-nav ul li a:hover::after {
  width: 80%;
}

/* Dropdown menus */
#main-nav ul ul {
  background: var(--wm-white);
  border: none;
  box-shadow: 0 10px 40px var(--wm-shadow);
  border-radius: 12px;
  overflow: hidden;
  border-top: 3px solid var(--wm-coral);
}

#main-nav ul ul li a:hover {
  background: var(--wm-pink-light);
}

/* ==========================================================================
   Main Content Area - Breathing Room
   ========================================================================== */
.main-content {
  padding-top: 60px;
  padding-bottom: 60px;
}

#page-content {
  padding: 0 20px;
}

/* ==========================================================================
   Blog Grid - Cards with Personality
   ========================================================================== */
.blog-grid {
  gap: 40px;
}

.blog-post {
  background: var(--wm-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--wm-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 40px;
}

.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--wm-shadow-hover);
}

/* Post thumbnails */
.blog-post .cv-container {
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.blog-post .cv-container img {
  transition: transform 0.6s ease;
}

.blog-post:hover .cv-container img {
  transform: scale(1.05);
}

/* Image overlay on hover */
.blog-post .cv-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wm-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.blog-post:hover .cv-container::before {
  opacity: 0.2;
}

/* Post content area */
.blog-post .entry-header {
  padding: 30px 30px 25px;
}

.blog-post .entry-header h2 {
  font-size: 1.4em;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-post .entry-header h2 a {
  color: var(--wm-teal);
  text-decoration: none;
}

.blog-post .entry-header h2 a:hover {
  color: var(--wm-coral);
}

/* Post meta */
.blog-post .post-meta,
.post-meta {
  color: var(--wm-coral);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-post .post-meta a {
  color: var(--wm-coral);
}

.blog-post .post-meta a:hover {
  color: var(--wm-teal);
}

/* Post excerpt */
.blog-post .post-content p,
.post-excerpt {
  color: #5a6f7d;
  line-height: 1.9;
  padding: 0 30px 30px;
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */
.single .blog-single {
  background: var(--wm-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px var(--wm-shadow);
}

.single .entry-header h1 {
  font-size: 2.5em;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--wm-teal);
}

.single .post-content {
  font-size: 1.1em;
  line-height: 1.9;
}

.single .post-content p {
  margin-bottom: 1.8em;
}

.single .post-content h2,
.single .post-content h3 {
  color: var(--wm-teal);
  margin-top: 2em;
  margin-bottom: 1em;
  position: relative;
  padding-left: 20px;
}

.single .post-content h2::before,
.single .post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--wm-gradient);
  border-radius: 4px;
}

/* Blockquotes - playful style */
.post-content blockquote,
blockquote {
  background: var(--wm-gradient-soft);
  border-left: 4px solid var(--wm-coral);
  border-radius: 0 15px 15px 0;
  padding: 30px 35px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.15em;
  color: var(--wm-teal);
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4em;
  color: var(--wm-pink);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

/* ==========================================================================
   Buttons & CTAs - Bubbly & Fun
   ========================================================================== */
.blog-post .read-more a,
.post-content .read-more a,
input[type="submit"],
button,
.button,
.woocommerce a.button {
  background: var(--wm-gradient) !important;
  color: var(--wm-white) !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85em !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 15px var(--wm-shadow-hover);
  display: inline-block;
}

.blog-post .read-more a:hover,
.post-content .read-more a:hover,
input[type="submit"]:hover,
button:hover,
.button:hover,
.woocommerce a.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px var(--wm-shadow-hover);
  background: linear-gradient(135deg, var(--wm-coral-dark) 0%, var(--wm-coral) 100%) !important;
}

/* ==========================================================================
   Sidebar Widgets - Clean & Airy
   ========================================================================== */
#page-sidebar {
  padding-left: 40px;
}

.savona-widget,
.widget {
  background: var(--wm-white);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 25px var(--wm-shadow);
}

.widget-title h2,
.savona-widget .widget-title h2 {
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wm-teal);
  padding-bottom: 15px;
  margin-bottom: 20px;
  position: relative;
}

.widget-title h2::after,
.savona-widget .widget-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--wm-gradient);
  border-radius: 3px;
}

/* Widget links */
.widget ul li a {
  color: var(--wm-teal);
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--wm-pink-light);
  transition: all 0.3s ease;
}

.widget ul li a:hover {
  color: var(--wm-coral);
  padding-left: 10px;
}

.widget ul li:last-child a {
  border-bottom: none;
}

/* Search widget */
.widget_search input[type="text"],
#searchform input[type="text"] {
  border: 2px solid var(--wm-pink-light);
  border-radius: 50px;
  padding: 15px 25px;
  width: 100%;
  transition: all 0.3s ease;
}

.widget_search input[type="text"]:focus,
#searchform input[type="text"]:focus {
  border-color: var(--wm-coral);
  outline: none;
  box-shadow: 0 0 0 4px var(--wm-pink-light);
}

/* ==========================================================================
   Footer - Elegant & Warm
   ========================================================================== */
.page-footer {
  background: var(--wm-teal);
  color: var(--wm-white);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.page-footer::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--wm-gradient);
  margin-bottom: 0;
  position: relative;
  top: -60px;
}

.page-footer a {
  color: var(--wm-pink);
}

.page-footer a:hover {
  color: var(--wm-white);
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  margin-top: 40px;
}

/* Social icons */
.page-footer .fa,
.header-social .fa {
  transition: all 0.3s ease;
}

.page-footer a:hover .fa,
.header-social a:hover .fa {
  transform: scale(1.2);
  color: var(--wm-coral);
}

/* ==========================================================================
   Pagination - Playful Dots
   ========================================================================== */
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  margin: 0 5px;
  background: var(--wm-white);
  color: var(--wm-teal);
  font-weight: 600;
  box-shadow: 0 3px 15px var(--wm-shadow);
  transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination span.current {
  background: var(--wm-gradient);
  color: var(--wm-white);
  transform: scale(1.1);
}

/* ==========================================================================
   Scroll to Top Button - Mermaid Style 🧜‍♀️
   ========================================================================== */
#back-top {
  background: var(--wm-gradient);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 5px 20px var(--wm-shadow-hover);
  transition: all 0.3s ease;
}

#back-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--wm-shadow-hover);
}

/* ==========================================================================
   Mobile Menu - Clean & Accessible
   ========================================================================== */
.mobile-menu-btn {
  color: var(--wm-coral);
}

.mobile-menu-container {
  background: var(--wm-white);
}

.mobile-menu-container ul li a {
  color: var(--wm-teal);
  border-bottom: 1px solid var(--wm-pink-light);
  padding: 15px 20px;
}

.mobile-menu-container ul li a:hover {
  background: var(--wm-pink-light);
  color: var(--wm-coral);
}

/* ==========================================================================
   Fun Extras - The Witty Touch ✨
   ========================================================================== */

/* Subtle wave decoration on images */
.blog-post .cv-container::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8c24.94-11.79,54.9-18.59,88.48-19.77C156.57,73.63,235.5,70.34,321.39,56.44Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
}

/* Selection color */
::selection {
  background: var(--wm-pink);
  color: var(--wm-teal);
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 3px solid var(--wm-pink);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Heart decoration on certain elements */
.widget-title h2::before {
  content: '♥';
  color: var(--wm-coral);
  margin-right: 8px;
  font-size: 0.8em;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Floating effect for logo on hover */
.header-logo img:hover {
  animation: float 2s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
  .main-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  #page-sidebar {
    padding-left: 0;
    margin-top: 50px;
  }
  
  .single .blog-single {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .blog-post .entry-header {
    padding: 20px;
  }
  
  .blog-post .post-content p {
    padding: 0 20px 20px;
  }
  
  .single .entry-header h1 {
    font-size: 1.8em;
  }
  
  .savona-widget,
  .widget {
    padding: 20px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .page-footer,
  #main-nav,
  .blog-pagination,
  #back-top {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .blog-post,
  .single .blog-single {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
