/* Santa Video Preview Builder Widget Styles */
/* All classes prefixed with spw- to avoid conflicts */

* {
    box-sizing: border-box;
}

/* Standalone page wrapper - only applies when viewing widget directly */
.spw-page {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f1c3f 0%, #1a2d5c 50%, #0f1c3f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spw-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Card Styles */
.spw-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: spwSlideUp 0.4s ease-out;
}

@keyframes spwSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spw-card-header {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.spw-card-header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: inherit;
}

.spw-card-header p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.spw-card-body {
    padding: 24px 20px;
}

/* Step Progress */
.spw-step-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.spw-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.spw-step-dot.active {
    background: #c41e3a;
    transform: scale(1.2);
}

.spw-step-dot.completed {
    background: #2a6246;
}

.spw-step-label {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.spw-step-label strong {
    color: #333;
}

/* Santa Style Selection */
.spw-santa-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.spw-santa-style-card {
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.spw-santa-style-card:hover {
    border-color: #ffcdd2;
    transform: translateY(-2px);
}

.spw-santa-style-card.selected {
    border-color: #c41e3a;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.spw-santa-style-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spw-santa-style-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Message Theme Selection */
.spw-theme-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spw-theme-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.spw-theme-btn:hover {
    border-color: #c41e3a;
    background: #fff5f5;
}

.spw-theme-btn.selected {
    border-color: #c41e3a;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.spw-theme-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.spw-theme-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2px;
}

.spw-theme-info p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* Preview Card (Result) */
.spw-video-preview-result {
    text-align: center;
}

.spw-preview-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1B1E3C;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.spw-video-frame {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.spw-video-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/snow-overlay.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

.spw-santa-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd700;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spw-santa-img-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    background: #2d5a3d;
    margin: 0 auto 12px;
}

.spw-message-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.spw-message-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.95);
}

.spw-message-title {
    font-size: 1rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 6px;
}

.spw-message-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.spw-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spw-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
}

.spw-feature svg {
    color: #2a6246;
}

/* Coupon Teaser */
.spw-coupon-teaser {
    border: 2px dashed #b71f22;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.spw-coupon-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.spw-coupon-code {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #b71f22;
    letter-spacing: 2px;
}

/* Buttons */
.spw-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.spw-btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.spw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    color: white;
}

.spw-btn-secondary {
    background: transparent;
    color: #888;
    padding: 12px;
    font-size: 0.9rem;
}

.spw-btn-secondary:hover {
    color: #333;
}

/* Footer */
.spw-footer {
    text-align: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.spw-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}

/* Stars background effect - only for standalone page */
.spw-page .spw-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.spw-page .spw-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: spwTwinkle 2s infinite ease-in-out;
}

@keyframes spwTwinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .spw-container {
        padding: 12px;
    }

    .spw-card-header {
        padding: 16px;
    }

    .spw-card-header h1 {
        font-size: 1.2rem;
    }

    .spw-card-body {
        padding: 20px 16px;
    }

    .spw-santa-styles {
        gap: 8px;
    }

    .spw-santa-style-card {
        padding: 10px;
    }

    .spw-santa-style-img {
        width: 55px;
        height: 55px;
    }

    .spw-santa-style-name {
        font-size: 0.7rem;
    }

    .spw-theme-btn {
        padding: 12px 14px;
    }

    .spw-theme-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .spw-santa-img {
        width: 80px;
        height: 80px;
    }

    .spw-features {
        gap: 12px;
    }
}

/* Inline embed wrapper - for embedding in articles */
.spw-inline {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
}

.spw-inline .spw-container {
    padding: 0;
    max-width: 800px;
}

.spw-inline .spw-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Compact header for inline */
.spw-inline .spw-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
}

.spw-inline .spw-card-header h1 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.spw-inline .spw-card-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Larger fonts for readability */
.spw-inline .spw-step-label {
    font-size: 1rem;
    color: #666;
}

.spw-inline .spw-step-label strong {
    color: #1B1E3C;
}

/* Santa style cards - centered icons */
.spw-inline .spw-santa-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.spw-inline .spw-santa-style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
}

.spw-inline .spw-santa-style-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.spw-inline .spw-santa-style-name {
    font-size: 0.9rem;
}

/* Theme buttons - centered icons */
.spw-inline .spw-theme-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.spw-inline .spw-theme-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spw-inline .spw-theme-info h5 {
    font-size: 1.05rem;
}

.spw-inline .spw-theme-info p {
    font-size: 0.9rem;
}

/* Footer - compact */
.spw-inline .spw-footer {
    padding: 12px 20px;
}

.spw-inline .spw-footer p {
    font-size: 0.85rem;
}
