/*
Theme Name: VirtualFit
Description: Custom theme for Elura Studio website
Version: 1.0
Author: Your Name
*/

/* Import your existing styles */
@import url('../../../app/assets/css/style.css');

/* Additional missing classes */
.text-gray-700 { color: #374151; }
.hover\:text-primary-600:hover { color: #2563eb; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-gray-400:hover { border-color: #9ca3af; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:scale-105:hover { transform: scale(1.05); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.cursor-pointer { cursor: pointer; }

.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.transition-shadow { transition: box-shadow 0.15s ease-in-out; }
.transition-transform { transition: transform 0.15s ease-in-out; }
.transition-all { transition: all 0.15s ease-in-out; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-primary-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.to-accent-600 { --tw-gradient-to: #7c3aed; }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-secondary { --tw-gradient-to: var(--secondary); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0)); }
.via-white { --tw-gradient-to: rgba(255, 255, 255, 0); --tw-gradient-stops: var(--tw-gradient-from), #ffffff, var(--tw-gradient-to); }
.to-purple-50 { --tw-gradient-to: #faf5ff; }

.text-transparent { color: transparent; }
.bg-clip-text { background-clip: text; -webkit-background-clip: text; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.h-\[400px\] { height: 400px; }

.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.flex { display: flex; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.leading-tight { line-height: 1.25; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.object-cover { object-fit: cover; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }

.from-black\/20 { --tw-gradient-from: rgba(0, 0, 0, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: #e5e7eb; }

.animate-spin { animation: spin 1s linear infinite; }

h1 span{ color: #5c33ff;}

a[href*="virtualtryon"] i svg {
    width: 1.2em !important;
    height: 1.2em !important;
    vertical-align: middle;
}
.primary-nav a, #menu-top-menu a {
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.primary-nav a:hover, #menu-top-menu a:hover, .current_page_item a {
    background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1)); /* Light blue background */
    color: rgb(147 51 234 / var(--tw-text-opacity, 1)); 
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* Ensure proper alignment */
a[href*="virtualtryon"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Responsive classes */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:block { display: block; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-left { text-align: left; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* WordPress specific styles */
.wp-site-blocks {
    margin: 0;
    padding: 0;
}

/* Ensure full width for our custom pages */
.page-template-full-width .site-main {
    max-width: none;
    padding: 0;
}

/* WordPress admin bar adjustment */
body.admin-bar .sticky {
    top: 32px;
}

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

/* Custom page templates */
.virtualfit-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #faf5ff 100%);
}

.virtualfit-pricing {
    background: #f9fafb;
}

/* WordPress content styling */
.entry-content {
    max-width: none;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 0;
}

/* Custom button styles for WordPress */
.wp-block-button__link {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.wp-block-button__link:hover {
    opacity: 0.9;
    color: white;
}

/* home page slider CSS */
.home-slider-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: ew-resize;
}

.home-slider {
    position: relative;
    width: 100%;
    height: 400px;
}

.home-slider img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-before {
    top: 0;
    left: 0;
    z-index: 1;
}

.home-before-caption {
    z-index: 20;
    left: calc(100% - 90px) !important;
}

.home-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    clip-path: inset(0 50% 0 0); /* Show both images initially - 50% split */
}

.home-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: left 0.1s ease;
}

.home-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.home-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.home-slider-handle:hover .home-handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-handle-arrow-left {
    left: 8px;
}
.home-handle-arrow-right {
    right: 8px;
}
.home-handle-arrow-left, .home-handle-arrow-right {
    position: absolute;
    color: #3b82f6;
    font-weight: bold;
    font-size: 14px;
    user-select: none;
}

.home-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}
