/**
 * AZ Elementor Builder - Frontend Stylesheet
 */

:root {
    --az-primary-color: #1fa2ff;
    --az-accent-color: #ff512f;
    --az-kids-orange: #ff9f43;
    --az-kids-pink: #ff6b6b;
    --az-kids-blue: #54a0ff;
    --az-kids-green: #1dd1a1;
    --az-kids-purple: #9b59b6;
    --az-star-color: #f1c40f;
    --az-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Micro-Animations & Keyframes
   ========================================================================== */
@keyframes az-wavy-anim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes az-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 162, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(31, 162, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 162, 255, 0);
    }
}

@keyframes az-orbit-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes az-neon-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Button Trait Styles
   ========================================================================== */
.az-btn-wrapper {
    margin: 15px 0;
}

.az-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--az-transition);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Button Micro-Animations */
.az-btn.anim-shrink:hover {
    transform: scale(0.96);
}
.az-btn.anim-grow:hover {
    transform: scale(1.05);
}
.az-btn.anim-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.az-btn.anim-pulse {
    animation: az-pulse-glow 2s infinite;
}
.az-btn.anim-slide-right .az-btn-icon {
    transition: transform 0.3s ease;
}
.az-btn.anim-slide-right:hover .az-btn-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   Hero Widget Styles
   ========================================================================== */
.az-hero-container {
    position: relative;
    padding: 100px 50px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.az-hero-container::before {
    /* Background overlay slot */
}

.az-hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.az-hero-glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.az-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.az-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.az-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.az-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Kids Heading Widget Styles
   ========================================================================== */
.az-kids-heading-wrapper {
    text-align: center;
    padding: 10px 0;
}

.az-kids-heading,
.az-kids-heading-wrapper .az-kids-heading {
    display: inline-block;
    font-family: 'Fredoka One', 'Quicksand', 'Outfit', sans-serif;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.az-kids-heading span.az-letter,
.az-kids-heading-wrapper .az-kids-heading span.az-letter {
    display: inline-block;
    vertical-align: middle;
    line-height: 1 !important;
    transition: var(--az-transition);
    paint-order: stroke fill;
}

.az-kids-heading.wavy span.az-letter {
    animation: az-wavy-anim 1.8s ease-in-out infinite;
}

.az-kids-heading span.color-1 { color: var(--az-kids-orange); }
.az-kids-heading span.color-2 { color: var(--az-kids-pink); }
.az-kids-heading span.color-3 { color: var(--az-kids-blue); }
.az-kids-heading span.color-4 { color: var(--az-kids-green); }
.az-kids-heading span.color-5 { color: var(--az-kids-purple); }

.az-kids-heading span.az-letter:hover {
    transform: scale(1.3) rotate(8deg);
    cursor: default;
}

/* ==========================================================================
   Product Card Widget Styles
   ========================================================================== */
.az-product-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--az-transition);
    border: 1px solid #f0f0f0;
    max-width: 350px;
    margin: 0 auto;
}

.az-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.az-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 50px;
    text-transform: uppercase;
}

.az-product-badge.sale { background-color: var(--az-accent-color); }
.az-product-badge.new { background-color: var(--az-primary-color); }
.az-product-badge.hot { background-color: #e74c3c; }

.az-product-actions {
    position: absolute;
    top: 15px;
    right: -50px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--az-transition);
}

.az-product-card:hover .az-product-actions {
    right: 15px;
}

.az-action-btn {
    background: #ffffff;
    color: #333333;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--az-transition);
    cursor: pointer;
    border: none;
}

.az-action-btn:hover {
    background: var(--az-primary-color);
    color: #ffffff;
}

.az-product-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f7f7f7;
}

.az-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--az-transition);
}

.az-product-img-wrapper .az-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.az-product-card:hover .az-product-img-wrapper img.az-img-primary {
    opacity: 0;
    transform: scale(1.05);
}

.az-product-card:hover .az-product-img-wrapper img.az-img-hover {
    opacity: 1;
    transform: scale(1.05);
}

.az-product-info {
    padding: 20px;
}

.az-product-cat {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.az-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.az-stars-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.az-star {
    font-size: 0.95rem;
    color: #e2e8f0;
}

.az-star.full {
    color: var(--az-star-color);
}

.az-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.az-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222222;
}

.az-price-regular {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
}

.az-price-sale {
    color: var(--az-accent-color);
}

.az-product-btn-wrapper .az-btn {
    width: 100%;
    border-radius: 8px;
}

/* ==========================================================================
   Feature Circle Widget Styles
   ========================================================================== */
.az-feature-circle-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-circle-center {
    position: absolute;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--az-primary-color);
    padding: 10px;
    overflow: hidden;
}

.az-circle-center img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.az-circle-orbit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.az-circle-orbit-svg circle {
    stroke: #e2e8f0;
    stroke-dasharray: 6 6;
    fill: none;
}

.az-orbit-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #edf2f7;
    transition: var(--az-transition);
    cursor: pointer;
}

.az-orbit-item:hover {
    transform: scale(1.15);
    border-color: var(--az-primary-color);
    box-shadow: 0 12px 30px rgba(31, 162, 255, 0.25);
}

.az-orbit-item-icon {
    font-size: 1.5rem;
    color: var(--az-primary-color);
    margin-bottom: 2px;
}

.az-orbit-item-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
    text-align: center;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Feature Circle Descriptions card displaying content when item is hovered/clicked */
.az-feature-detail-card {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    z-index: 4;
    border: 1px solid #edf2f7;
    opacity: 0;
    visibility: hidden;
    transition: var(--az-transition);
}

.az-feature-detail-card.active {
    opacity: 1;
    visibility: visible;
    bottom: -60px;
}

.az-feature-detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.az-feature-detail-desc {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
}

/* ==========================================================================
   Custom Controls Style Declarations
   ========================================================================== */
.az-divider-line {
    width: 100%;
    height: 2px;
    margin: 20px 0;
}

.az-divider-line.solid { border-bottom: 2px solid #e2e8f0; }
.az-divider-line.dashed { border-bottom: 2px dashed #cbd5e0; }
.az-divider-line.dotted { border-bottom: 2px dotted #cbd5e0; }
.az-divider-line.double { border-bottom: 6px double #cbd5e0; }

.az-divider-line.wavy {
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V120H1200V0C1123.3,64.2,933.3,96.3,830,96.3S623.3,64.2,500,48.2S203.3,16.1,0,0z' fill='%23cbd5e0'/%3E%3C/svg%3E");
    background-size: 20px 10px;
    background-repeat: repeat-x;
}

.az-divider-line.gradient {
    height: 3px;
    background: linear-gradient(90deg, var(--az-primary-color) 0%, var(--az-accent-color) 100%);
    border: none;
}

.az-divider-line.neon {
    height: 4px;
    background: linear-gradient(90deg, #1fa2ff, #12d8fa, #a6ffcb, #1fa2ff);
    background-size: 300% 100%;
    animation: az-neon-flow 3s linear infinite;
    border: none;
    box-shadow: 0 0 8px rgba(31, 162, 255, 0.8);
}

/* ==========================================================================
   WooCommerce Breadcrumbs Widget Styles
   ========================================================================== */
.az-breadcrumbs-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.az-breadcrumbs-wrapper .az-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.az-breadcrumbs-wrapper a {
    text-decoration: none;
    transition: var(--az-transition);
}

.az-breadcrumbs-wrapper a:hover {
    text-decoration: underline;
}

.az-breadcrumbs-wrapper .az-breadcrumb-separator {
    display: inline-block;
}

.az-breadcrumbs-wrapper .az-breadcrumb-current {
    display: inline-block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    .az-hero-title {
        font-size: 2.5rem;
    }
    .az-feature-circle-container {
        width: 320px;
        height: 320px;
        margin: 30px auto;
    }
    .az-circle-center {
        width: 100px;
        height: 100px;
    }
    .az-orbit-item {
        width: 55px;
        height: 55px;
    }
    .az-orbit-item-icon {
        font-size: 1.1rem;
    }
    .az-orbit-item-title {
        font-size: 0.65rem;
    }
    .az-feature-detail-card {
        width: 280px;
        bottom: -100px;
    }
    .az-feature-detail-card.active {
        bottom: -80px;
    }
}
