// Modern Variables
$primary-color: #4a6cf7;
$secondary-color: #1e293b;
$border-color: #e2e8f0;
$white: #ffffff;
$light-bg: #f8fafc;
$lighter-bg: #f1f5f9;
$text-color: #475569;
$dark-text: #1e293b;
$box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
$input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
$transition: all 0.2s ease-in-out;
$focus-shadow: 0 0 0 2px rgba($primary-color, 0.3);
$success-color: #10b981;
$danger-color: #ef4444;
$warning-color: #f59e0b;
$light-gray: #f1f5f9;
$medium-gray: #e2e8f0;
$dark-gray: #334155;
$border-radius: 6px;

// Breakpoints
$tablet: 1024px;
$small-tablet: 782px;
$mobile: 500px;



// Layout Selection Styles-----------------------

// Mixins
@mixin flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

@mixin card-hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@mixin button-primary {
    background: linear-gradient(135deg, $primary-color 0%, #6366f1 100%);
    color: $white;
    border: none;
    border-radius: $border-radius;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: $transition;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    min-height: 44px;

    &:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba($primary-color, 0.4);
        text-decoration: none;
        color: $white;
    }

    &:focus {
        outline: none;
        box-shadow: $focus-shadow;
    }

    &:active {
        transform: translateY(0);
    }
}

@mixin responsive-grid($min-width: 280px, $gap: 24px) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax($min-width, 1fr));
    gap: $gap;
}


// Layout Type and Mode Selection Styles   
/* Modern Product Display Layout Selection Styles */
/* Base Container Styles */
.proddisp-layout-selection,
.proddisp-mode-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.proddisp-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.proddisp-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    border-radius: 2px;
}

.proddisp-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 7px 7px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.proddisp-header .description {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.proddisp-layout-grid,
.proddisp-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
}

/* Card Styles */
.proddisp-layout-card,
.proddisp-mode-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.proddisp-layout-card::before,
.proddisp-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proddisp-layout-card:hover::before,
.proddisp-mode-card:hover::before {
    opacity: 1;
}

.proddisp-layout-card:hover,
.proddisp-mode-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* Icon Styles */
.proddisp-layout-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.proddisp-layout-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.proddisp-layout-card:hover .proddisp-layout-icon::before,
.proddisp-mode-card:hover .proddisp-layout-icon::before {
    transform: translateX(100%);
}

.proddisp-layout-card:hover .proddisp-layout-icon,
.proddisp-mode-card:hover .proddisp-layout-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.proddisp-layout-icon .dashicons {
    font-size: 2rem;
    color: #ffffff;
    width: auto;
    height: auto;
}

/* Typography */
.proddisp-layout-card h3,
.proddisp-mode-card h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: -0.3px;
}

.proddisp-layout-description,
.proddisp-mode-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

/* Button Styles */
.proddisp-layout-card .button,
.proddisp-mode-card .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.proddisp-layout-card .button::before,
.proddisp-mode-card .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.proddisp-layout-card .button:hover::before,
.proddisp-mode-card .button:hover::before {
    left: 100%;
}

.proddisp-layout-card .button:hover,
.proddisp-mode-card .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.proddisp-layout-card .button:active,
.proddisp-mode-card .button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proddisp-layout-card,
.proddisp-mode-card {
    animation: fadeInUp 0.6s ease forwards;
}

.proddisp-layout-card:nth-child(1) {
    animation-delay: 0.1s;
}

.proddisp-layout-card:nth-child(2) {
    animation-delay: 0.2s;
}

.proddisp-layout-card:nth-child(3) {
    animation-delay: 0.3s;
}

.proddisp-layout-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {

    .proddisp-layout-selection,
    .proddisp-mode-selection {
        padding: 1.5rem 1rem;
    }

    .proddisp-header h1 {
        font-size: 2rem;
    }

    .proddisp-header .description {
        font-size: 1rem;
    }

    .proddisp-layout-grid,
    .proddisp-mode-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proddisp-layout-card,
    .proddisp-mode-card {
        padding: 2rem 1.5rem;
    }

    .proddisp-layout-icon {
        width: 70px;
        height: 70px;
    }

    .proddisp-layout-icon .dashicons {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    .proddisp-layout-selection,
    .proddisp-mode-selection {
        padding: 1rem;
    }

    .proddisp-header h1 {
        font-size: 1.8rem;
    }

    .proddisp-layout-card,
    .proddisp-mode-card {
        padding: 1.5rem 1rem;
    }

    .proddisp-layout-icon {
        width: 60px;
        height: 60px;
    }

    .proddisp-layout-icon .dashicons {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    .proddisp-layout-card,
    .proddisp-mode-card {
        background: rgba(26, 32, 44, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .proddisp-layout-card:hover,
    .proddisp-mode-card:hover {
        background: rgba(26, 32, 44, 1);
    }

    .proddisp-layout-card h3,
    .proddisp-mode-card h3 {
        color: #f7fafc;
    }

    .proddisp-layout-description,
    .proddisp-mode-description {
        color: #a0aec0;
    }
}

/* Loading state animation */
.proddisp-layout-grid.loading .proddisp-layout-card,
.proddisp-mode-grid.loading .proddisp-mode-card {
    opacity: 0;
    transform: translateY(20px);
}

/* Focus states for accessibility */
.proddisp-layout-card .button:focus,
.proddisp-mode-card .button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .proddisp-layout-card,
    .proddisp-mode-card {
        border: 2px solid #000;
    }

    .proddisp-layout-card .button,
    .proddisp-mode-card .button {
        border: 2px solid #000;
    }
}

// END  

/* Modern Product Display Style Selection Styles */
/* Base Container Styles */
.proddisp-style-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    // background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}


/* Style Card Styles */
.proddisp-style-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.proddisp-style-card:nth-child(1) {
    animation-delay: 0.1s;
}

.proddisp-style-card:nth-child(2) {
    animation-delay: 0.2s;
}

.proddisp-style-card:nth-child(3) {
    animation-delay: 0.3s;
}

.proddisp-style-card:nth-child(4) {
    animation-delay: 0.4s;
}

.proddisp-style-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Top Gradient Border */
.proddisp-style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    animation: shimmer 3s ease-in-out infinite;
}


/* Preview Section Styles */
.proddisp-style-preview {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(45deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

// END 