/* 
 * Feng Shui Academy – Main Stylesheet
 * Custom brand styling additions for Feng Shui Academy Theme
 * Works alongside Tailwind Play CDN
 */

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
    --sage-primary: #476a4c;
    --sage-light: #c5d9cb;
    --terracotta-accent: #c88261;
    --charcoal: #292524;
    --sand: #faf8f5;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   GLOBAL RESETS & BASE
   ═══════════════════════════════════════════ */
body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix subpixel rendering gap under absolute wave separators */
svg.absolute.bottom-0.left-0.w-full {
    bottom: -1px !important;
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM NAVIGATION
   ═══════════════════════════════════════════ */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════
   PREMIUM CARD EFFECTS
   ═══════════════════════════════════════════ */
.hover-premium-card {
    transition: var(--transition-smooth);
}

.hover-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(71, 106, 76, 0.2);
}

/* ═══════════════════════════════════════════
   CUSTOM SCROLLBAR (Zen theme)
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c5d9cb;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-primary);
}

/* ═══════════════════════════════════════════
   PROSE / TYPOGRAPHY (WordPress content)
   ═══════════════════════════════════════════ */
.entry-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6ede6;
    line-height: 1.3;
}

.entry-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content p {
    color: #57534e;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.entry-content a {
    color: var(--sage-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.entry-content a:hover {
    color: #2d4831;
    border-bottom-color: var(--sage-primary);
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #57534e;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.entry-content ul li {
    list-style-type: disc;
}

.entry-content ol li {
    list-style-type: decimal;
}

.entry-content img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--sage-light);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f4f7f4;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #44403c;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.entry-content th {
    background: #f4f7f4;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--charcoal);
    border-bottom: 2px solid #e6ede6;
}

.entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e6ede6;
    color: #57534e;
}

.entry-content tr:hover td {
    background: #faf8f5;
}

/* ═══════════════════════════════════════════
   WORDPRESS SPECIFIC OVERRIDES
   ═══════════════════════════════════════════ */

/* WooCommerce Button Styling */
.woocommerce .button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--sage-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important;
    font-family: 'Outfit', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 24px -4px rgba(71, 106, 76, 0.15) !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background-color: #3a5a3f !important;
    transform: translateY(-1px) !important;
}

.woocommerce .button.alt,
.woocommerce a.button.alt {
    background-color: var(--terracotta-accent) !important;
}

.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: #9a5d3f !important;
}

/* WooCommerce Quantity Input (on single product page) */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c5d9cb;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #faf9f6;
}

.woocommerce .quantity .qty {
    width: 3rem;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0;
    -moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product price on single page */
.woocommerce div.product .price {
    font-family: 'Playfair Display', Georgia, serif;
}

.woocommerce div.product .price del {
    color: #b0ada8;
}

.woocommerce div.product .price ins {
    text-decoration: none;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--sage-primary) !important;
    background: #f4f7f4 !important;
    border-radius: 1rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
    border-radius: 1rem;
}

/* Cart page */
.woocommerce-cart .woocommerce table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e6ede6;
    border-radius: 1rem;
    overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table th {
    background: #f4f7f4;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sage-primary);
}

.woocommerce-cart .woocommerce table.shop_table td {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* Checkout */
.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row textarea,
.woocommerce-checkout .woocommerce form .form-row select {
    background: #faf8f5;
    border: 1px solid #c5d9cb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
.woocommerce-checkout .woocommerce form .form-row select:focus {
    border-color: var(--sage-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 106, 76, 0.1);
}

/* WordPress admin bar offset */
.admin-bar .glass-panel.sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .glass-panel.sticky {
        top: 46px;
    }
}

/* ═══════════════════════════════════════════
   SCORM PLAYER
   ═══════════════════════════════════════════ */
#scorm-course-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* ═══════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    width: 85%;
    max-width: 360px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

/* Pulse animation for badges */
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-subtle-pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}