/**
 * Kiosk Mailing List Interface Styles
 * Full-screen kiosk display with particle animation background
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* QR Code Section */
.qr-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 350px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.qr-code {
    background: #ffffff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    display: block;
    max-width: 100%;
    height: auto;
}

.loading {
    color: #999;
    font-size: 1rem;
}

.instructions {
    font-size: 0.95rem;
    color: #666;
    margin-top: 1rem;
}

/* Subscriber Count */
.subscriber-count {
    margin-top: 2rem;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.count-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.count-value {
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffd700;
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Status Indicator */
.status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.status-dot.connected {
    background-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.status-dot.disconnected {
    background-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.status-dot.connecting {
    background-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }

    .qr-section {
        padding: 2rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .qr-code {
        min-width: 150px;
        min-height: 150px;
    }

    .subscriber-count {
        font-size: 1.2rem;
    }

    .count-value {
        font-size: 1.5rem;
    }
}

/* Celebration Animation */
@keyframes celebrate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.celebrating {
    animation: celebrate 0.5s ease-in-out;
}
