/**
 * Modern Print Theme - Professional Print eCommerce Styles
 * Inspired by VistaPrint, MOO, BannerBuzz design patterns
 * Clean, conversion-focused, scalable
 */

/* ===== FOUNDATION ===== */

/* Subtle gradient text - hero only, not animated */
.mp-gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated variant - use sparingly */
.mp-gradient-text-animated {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mp-gradient-shift 6s ease infinite;
}

@keyframes mp-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== BUTTONS ===== */

/* Primary CTA - Solid, bold, VistaPrint-style */
.mp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.mp-btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 88%, black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.mp-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Large CTA - Hero/prominent placement */
.mp-btn-primary.mp-btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    border-radius: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Secondary button */
.mp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: var(--foreground);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    border: 1.5px solid #D1D5DB;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
}

.mp-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
}

.mp-btn-secondary.mp-btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    border-radius: 0.75rem;
}

/* Ghost button */
.mp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.mp-btn-ghost:hover {
    background: #F3F4F6;
}

/* ===== CARDS ===== */

.mp-card {
    background: white;
    border-radius: 0.875rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.mp-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #D1D5DB;
}

.mp-card-interactive:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Product card */
.mp-product-card {
    background: white;
    border-radius: 0.875rem;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    transition: all 0.25s ease;
}

.mp-product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.mp-product-card:hover .mp-product-img {
    transform: scale(1.04);
}

.mp-product-img {
    transition: transform 0.4s ease;
}

.mp-product-card .mp-product-cta {
    background: var(--primary);
    color: white;
    transition: background 0.2s ease;
}

.mp-product-card:hover .mp-product-cta {
    background: color-mix(in srgb, var(--primary) 88%, black);
}

/* ===== PROMO BAR ===== */

.mp-promo-bar {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.mp-promo-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: mp-shimmer 4s ease-in-out infinite;
}

@keyframes mp-shimmer {
    0% { left: -60%; }
    100% { left: 160%; }
}

/* ===== NAVIGATION ===== */

.mp-nav-link {
    position: relative;
    color: #4B5563;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
    padding: 0.25rem 0;
}

.mp-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.2s ease;
}

.mp-nav-link:hover {
    color: var(--primary);
}

.mp-nav-link:hover::after {
    width: 100%;
}

/* ===== BADGES ===== */

.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
}

.mp-badge-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.mp-badge-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
    font-weight: 700;
}

.mp-badge-primary {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.mp-badge-dark {
    background: var(--dark, #111827);
    color: white;
}

/* Countdown badge */
.mp-countdown-badge {
    display: inline-flex;
    align-items: center;
    background: #FEF3C7;
    color: #92400E;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    border: 1px solid #FDE68A;
}

/* ===== HERO SECTION ===== */

.mp-hero {
    position: relative;
    background: white;
}

.mp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ===== VALUE PROPOSITIONS ===== */

.mp-value-prop {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.875rem;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.mp-value-prop:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
}

.mp-value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.mp-value-icon-primary {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.mp-value-icon-green {
    background: #ECFDF5;
    color: #059669;
}

.mp-value-icon-amber {
    background: #FFFBEB;
    color: #D97706;
}

.mp-value-icon-blue {
    background: #EFF6FF;
    color: #2563EB;
}

/* ===== TRUST BAR ===== */

.mp-trust-bar {
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.mp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.mp-trust-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

/* ===== FOOTER ===== */

.mp-footer {
    background: var(--dark, #111827);
    color: #D1D5DB;
}

.mp-footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.mp-footer-link {
    color: #9CA3AF;
    font-size: 0.875rem;
    transition: color 0.15s ease;
    display: inline-block;
}

.mp-footer-link:hover {
    color: white;
}

.mp-footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Social icon */
.mp-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.mp-social-icon:hover {
    background: var(--primary);
    color: white;
}

/* ===== SECTION HEADINGS ===== */

.mp-section-heading {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark, #111827);
    line-height: 1.2;
}

.mp-section-subheading {
    color: #6B7280;
    font-size: 1.0625rem;
    max-width: 36rem;
    line-height: 1.6;
}

/* ===== DELIVERY TIMELINE ===== */

.mp-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.mp-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.mp-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
    position: relative;
    z-index: 1;
}

.mp-timeline-line {
    height: 2px;
    width: 80px;
    background: #D1D5DB;
    margin-top: 5px;
}

.mp-timeline-line-active {
    background: var(--primary);
}

/* ===== URGENCY BAR ===== */

.mp-urgency {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #92400E;
}

/* ===== PROCESS STEPS ===== */

.mp-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
}

/* ===== ANIMATIONS ===== */

/* Subtle float - use sparingly */
.mp-float {
    animation: mp-float 4s ease-in-out infinite;
}

@keyframes mp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Fade in on scroll */
.mp-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}

.mp-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .mp-btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }

    .mp-btn-primary.mp-btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .mp-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }

    .mp-value-prop {
        padding: 1.25rem;
    }

    .mp-trust-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .mp-timeline-line {
        width: 48px;
    }
}

@media (max-width: 640px) {
    .mp-section-heading {
        font-size: 1.5rem;
    }

    .mp-section-subheading {
        font-size: 0.9375rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.mp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mp-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Star rating fill */
.mp-stars {
    display: inline-flex;
    gap: 1px;
    color: #FBBF24;
}

/* Price styling */
.mp-price-from {
    font-size: 0.8125rem;
    color: #6B7280;
}

.mp-price-value {
    font-weight: 700;
    color: var(--dark, #111827);
    font-size: 1.25rem;
}

.mp-price-strike {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Sticky bottom bar */
.mp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--dark, #111827);
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile menu overlay */
.mp-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mp-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mp-mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

/* Payment badge */
.mp-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #D1D5DB;
    font-weight: 600;
}

/* Newsletter input */
.mp-newsletter-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.875rem;
    outline: none;
    width: 100%;
}

.mp-newsletter-input::placeholder {
    color: #6B7280;
}

.mp-newsletter-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.mp-newsletter-btn {
    background: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.mp-newsletter-btn:hover {
    background: color-mix(in srgb, var(--primary) 88%, black);
}

/* ===== HOMEPAGE DECORATIVE ===== */

/* Grid background pattern - uses primary color */
.mp-grid-bg {
    background-image: linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
}

/* Decorative icon colors for floating background elements */
.mp-deco-primary { color: rgba(var(--primary-rgb), 0.1); }
.mp-deco-secondary { color: rgba(var(--secondary-rgb), 0.1); }

/* ===== HOMEPAGE ANIMATIONS ===== */

/* Text shine effect - animated gradient text */
.text-shine {
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mp-shine 3s ease-in-out infinite;
}

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

/* Marquee animations for testimonial/logo carousels */
@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-marquee-left {
    animation: marquee-left 40s linear infinite;
}

.animate-marquee-right {
    animation: marquee-right 40s linear infinite;
}

/* Sliding icon animations for decorative background elements */
@keyframes slide-right {
    0% { left: -5%; }
    100% { left: 105%; }
}

@keyframes slide-right-up {
    0% { left: -5%; transform: translateY(0); }
    100% { left: 105%; transform: translateY(-60px); }
}

@keyframes slide-right-down {
    0% { left: -5%; transform: translateY(0); }
    100% { left: 105%; transform: translateY(60px); }
}

@keyframes slide-right-wave {
    0% { left: -5%; transform: translateY(0); }
    25% { transform: translateY(-30px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(30px); }
    100% { left: 105%; transform: translateY(0); }
}

.slide-icon {
    will-change: transform, left;
}
