/*
Theme Name: Zorem
Theme URI: https://www.zorem.com
Author: Zorem
Author URI: https://www.zorem.com
Description: A modern WooCommerce ecosystem theme featuring glassmorphism design, Tailwind CSS, and dynamic plugin showcase.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zorem
*/

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Product Page Styles ── */

/* Royal Blue color utilities */
.text-royal-blue { color: #0056D2; }
.bg-royal-blue { background-color: #0056D2; }
.border-royal-blue { border-color: #0056D2; }

/* Accent Green color utilities */
.text-accent-green { color: #28a745; }
.bg-accent-green { background-color: #28a745; }

/* Slow spin animation for processing icon */
.zorem-spin-slow {
    animation: zorem-spin 3s linear infinite;
}

@keyframes zorem-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shimmer animation for progress bar */
.zorem-shimmer {
    animation: zorem-shimmer 2s ease-in-out infinite;
}

@keyframes zorem-shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Shadow utilities */
.shadow-blue-200 {
    --tw-shadow-color: #bfdbfe;
    --tw-shadow: var(--tw-shadow-colored);
}

.shadow-blue-100 {
    --tw-shadow-color: #dbeafe;
    --tw-shadow: var(--tw-shadow-colored);
}

/* ── Hero Add to Cart ── */

.zorem-hero-select {
    background-image: none;
    line-height: 1.5;
}

.zorem-hero-select:focus {
    border-color: #0056D2;
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.zorem-hero-select option {
    padding: 8px 12px;
    font-weight: 600;
}

.zorem-hero-cart-form button[type="submit"]:active {
    transform: scale(0.97);
}

/* Success feedback after add to cart */
.zorem-hero-cart-form .zorem-added-msg {
    color: #28a745;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ── Indigo Color Utilities (Product Page Redesign) ── */

.shadow-indigo-200 {
    --tw-shadow-color: #c7d2fe;
    --tw-shadow: var(--tw-shadow-colored);
}

.shadow-indigo-100 {
    --tw-shadow-color: #e0e7ff;
    --tw-shadow: var(--tw-shadow-colored);
}

/* License selector buttons */
.zorem-license-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.zorem-license-btn:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

.zorem-license-btn:active {
    transform: scale(0.97);
}

/* How It Works connector line */
@media (min-width: 768px) {
    .zorem-steps-grid {
        position: relative;
    }
    .zorem-steps-grid::before {
        content: '';
        position: absolute;
        top: 48px;
        left: 16.67%;
        right: 16.67%;
        height: 2px;
        background: rgba(51, 65, 85, 0.5);
        z-index: 0;
    }
}

/* ── Single Blog Post Content (Gutenberg Blocks) ── */

/* Group blocks with background → callout box styling */
.zorem-post-content .wp-block-group.has-background {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Clean spacing inside callout */
.zorem-post-content .wp-block-group.has-background > *:first-child {
    margin-top: 0;
}

.zorem-post-content .wp-block-group.has-background > *:last-child {
    margin-bottom: 0;
}

/* Checkmark list block style */
.is-style-zorem-checkmark {
    list-style: none !important;
    padding-left: 0 !important;
}

.is-style-zorem-checkmark li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding-left: 0 !important;
    margin-bottom: 0.75rem;
    color: #334155;
}

.is-style-zorem-checkmark li::marker {
    content: none;
}

.is-style-zorem-checkmark li::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    margin-top: 0.125rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Override prose list styles for checkmark list */
.prose .is-style-zorem-checkmark li {
    padding-left: 0;
}

.prose .is-style-zorem-checkmark {
    padding-left: 0;
}
