/*
Theme Name: ViviMed
Theme URI: https://vivimed.nl
Author: Vivimed
Author URI: https://onlineklik.nl
Description: Premium single-product webshop for Vivi Cap One - Temperature stabilizing insulin pen cap with custom Pay.nl integration
Version: 1.3
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivicap
Tags: e-commerce, modern, tailwind, alpine, gutenberg

This theme uses Tailwind CSS and Alpine.js for a modern, Apple-like experience.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom animations and transitions */
@layer utilities {
  .fade-in {
    animation: fadeIn 0.6s ease-out forwards;
  }
  
  .slide-up {
    animation: slideUp 0.8s ease-out forwards;
  }
  
  .scale-in {
    animation: scaleIn 0.5s ease-out forwards;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

:root {
  --sticky-bar-offset: 0px;
}

header.fixed,
.site-header.sticky,
header.sticky,
.site-header.fixed {
  top: var(--sticky-bar-offset);
}

.vivicap-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.vivicap-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vivicap-sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.vivicap-sticky-bar__message {
  font-weight: 600;
  text-align: center;
}

.vivicap-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vivicap-sticky-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.vivicap-sticky-bar__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.vivicap-sticky-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-weight: 600;
  background-color: rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease;
}

.vivicap-sticky-bar__close:hover {
  background-color: rgba(15, 23, 42, 0.14);
}

/* Advanced Animations */
@keyframes gradientXY {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes gradientX {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-gradient-xy {
  animation: gradientXY 15s ease infinite;
}

.animate-gradient-x {
  animation: gradientX 8s ease infinite;
}

/* Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glow Effects */
.glow-on-hover {
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.5),
              0 0 60px rgba(0, 180, 216, 0.3);
}

/* Parallax smooth */
.parallax {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00B4D8 0%, #48CAE4 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0090AD 0%, #00B4D8 100%);
}

/* ViviMed Paragraph Block Styling */
.vivimed-paragraph-content {
  line-height: 1.6;
}

.vivimed-paragraph-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.vivimed-paragraph-content p:last-child {
  margin-bottom: 0;
}

.vivimed-paragraph-content strong {
  font-weight: 700;
  color: #1e293b;
}

.vivimed-paragraph-content em {
  font-style: italic;
  color: #334155;
}

.vivimed-paragraph-content h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.vivimed-paragraph-content h1:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.vivimed-paragraph-content h2:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.vivimed-paragraph-content h3:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.vivimed-paragraph-content h4:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.vivimed-paragraph-content h5:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.vivimed-paragraph-content h6:first-child {
  margin-top: 0;
}

.vivimed-paragraph-content a {
  color: #0c93e2;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.2s ease;
}

.vivimed-paragraph-content a:hover {
  color: #0a7abd;
  text-decoration-color: #0c93e2;
}

.vivimed-paragraph-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.vivimed-paragraph-content ul li {
  margin-bottom: 0.5rem;
  color: #475569;
}

.vivimed-paragraph-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.vivimed-paragraph-content ol li {
  margin-bottom: 0.5rem;
  color: #475569;
}

.vivimed-paragraph-content blockquote {
  border-left: 4px solid #2aa9f8;
  padding-left: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1rem 0;
  font-style: italic;
  color: #334155;
  background-color: #f8fafc;
}
