/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Wreaths */
.christmasify-wreath {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 9999;
    pointer-events: none;
}

.christmasify-wreath.left {
    left: 0;
}

.christmasify-wreath.right {
    right: 0;
}

/* Wreath Styles */
.christmasify-wreath.style-classic {
    background-image: url('https://raw.githubusercontent.com/microsoft/fluentui-emoji/main/assets/Wreath/3D/wreath_3d.png');
}

.christmasify-wreath.style-holly {
    background-image: url('https://raw.githubusercontent.com/microsoft/fluentui-emoji/main/assets/Holly/3D/holly_3d.png');
}

.christmasify-wreath.style-bells {
    background-image: url('https://raw.githubusercontent.com/microsoft/fluentui-emoji/main/assets/Bell/3D/bell_3d.png');
}

/* Banner */
.christmasify-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 99999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Banner Styles */
.christmasify-banner.style-candy {
    background: repeating-linear-gradient(45deg,
            #d42426,
            #d42426 10px,
            #ffffff 10px,
            #ffffff 20px,
            #28a745 20px,
            #28a745 30px,
            #ffffff 30px,
            #ffffff 40px);
}

.christmasify-banner.style-snowflake {
    background-color: #0b3d91;
    background-image: radial-gradient(white 15%, transparent 16%),
        radial-gradient(white 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.christmasify-banner.style-lights {
    background: linear-gradient(90deg,
            #ff0000 0%, #ff0000 20%,
            #00ff00 20%, #00ff00 40%,
            #0000ff 40%, #0000ff 60%,
            #ffff00 60%, #ffff00 80%,
            #ff00ff 80%, #ff00ff 100%);
    background-size: 50px 100%;
    animation: christmasify-lights 2s infinite linear;
}

@keyframes christmasify-lights {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 0;
    }
}

/* Snow Canvas */
#christmasify-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* Countdown Timer */
.christmasify-countdown {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(212, 36, 38, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-family: sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-size: 16px;
    display: flex;
    gap: 10px;
    border: 2px solid white;
}

.christmasify-countdown span {
    font-variant-numeric: tabular-nums;
}

/* Music Control */
.christmasify-music-control {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    color: #d42426;
    transition: transform 0.2s;
}

.christmasify-music-control:hover {
    transform: scale(1.1);
}

.christmasify-music-control .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.christmasify-music-control .dashicons-controls-volumeoff {
    display: none;
}

.christmasify-music-control.muted .dashicons-controls-volumeon {
    display: none;
}

.christmasify-music-control.muted .dashicons-controls-volumeoff {
    display: block;
    color: #999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .christmasify-wreath {
        display: none;
    }

    .christmasify-banner {
        height: 5px;
    }

    .christmasify-countdown {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .christmasify-music-control {
        bottom: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}