/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===================================
   SNOWFLAKES ANIMATION
   =================================== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; font-size: 2em; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 1s; font-size: 1.2em; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: 5s; font-size: 1.8em; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 6s; font-size: 1.4em; }

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
    border: 4px solid #ff6b9d;
}

.header h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header i {
    margin-right: 10px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

.logo-container {
    margin-bottom: 20px;
}

.party-logo {
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-placeholder {
    display: inline-block;
    width: 200px;
    height: 200px;
    line-height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4d8 25%, #ff6b9d 50%, #ff914d 75%, #00b4d8 100%);
    color: white;
    font-size: 2.5em;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    animation: rotate-gradient 6s linear infinite;
    position: relative;
    overflow: hidden;
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes rotate-gradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translate(-25%, -25%) scale(1); opacity: 0; }
    50% { transform: translate(25%, 25%) scale(1.5); opacity: 1; }
}

/* ===================================
   NO NUTS NOTICE
   =================================== */
.no-nuts-notice {
    background: #fff9e6;
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 15px 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.2);
}

.no-nuts-notice p {
    margin: 0;
    color: #7d5a00;
    font-size: 1.05em;
}

.no-nuts-notice i {
    color: #f39c12;
    margin-right: 8px;
}

.no-nuts-notice strong {
    color: #7d5a00;
}

/* ===================================
   INFO ALERT SECTION
   =================================== */
.info-alert {
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    border: 4px solid #ff6b9d;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
    display: flex;
    gap: 20px;
    align-items: start;
}

.alert-icon {
    font-size: 3em;
    color: #ff6b9d;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    color: white;
}

.alert-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.alert-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.suggestion-list {
    list-style: none;
    margin: 15px 0;
}

.suggestion-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1em;
}

.suggestion-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-size: 1.2em;
    color: #ff6b9d;
    font-weight: bold;
}

.info-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.05em;
    border-left: 4px solid #ff6b9d;
}

/* ===================================
   FORM SECTION
   =================================== */
.form-section {
    background: white;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #00b4d8;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #0077b6;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group label i {
    margin-right: 8px;
    color: #00b4d8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.helper-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}



/* ===================================
   DUPLICATE WARNING
   =================================== */
.duplicate-warning {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    border: 3px solid #ff6b6b;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 10px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

.duplicate-warning i {
    color: #c92a2a;
    margin-right: 8px;
    font-size: 1.2em;
}

.duplicate-warning strong {
    color: #c92a2a;
    font-size: 1.05em;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===================================
   SUBMIT BUTTON
   =================================== */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b9d 0%, #e63462 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
    background: linear-gradient(135deg, #ff8fb3 0%, #ff6b9d 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    margin-right: 10px;
}

/* ===================================
   SUCCESS MESSAGE
   =================================== */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    animation: slideDown 0.5s ease;
}

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

.success-message i {
    font-size: 3em;
    color: #28a745;
    margin-bottom: 10px;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 5px;
}

.success-message p {
    color: #155724;
}

/* ===================================
   SIGNUP LIST SECTION
   =================================== */
.signup-list-section {
    background: white;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.signup-list-section h2 {
    color: #00b4d8;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.signup-list {
    display: grid;
    gap: 15px;
}

.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

.category-group {
    margin-bottom: 30px;
}

.category-group h3 {
    color: #0077b6;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b9d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #00b4d8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.signup-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signup-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.signup-name {
    font-weight: 600;
    color: #0077b6;
    font-size: 1.1em;
}

.signup-serves {
    background: #ff6b9d;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.signup-item-name {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 8px;
}

.signup-item-name i {
    color: #00b4d8;
    margin-right: 8px;
}

.signup-contact {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.signup-contact i {
    margin-right: 5px;
    color: #999;
    width: 15px;
}

.signup-notes {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    font-style: italic;
}

/* ===================================
   EXAMPLES SECTION
   =================================== */
.examples-section {
    background: white;
    padding: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.examples-section h2 {
    color: #00b4d8;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2em;
    margin-bottom: 25px;
    text-align: center;
}

.example-category {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid #00b4d8;
}

.example-category h3 {
    color: #0077b6;
    font-size: 1.3em;
    margin-bottom: 12px;
}

.example-category ul {
    list-style: none;
    padding-left: 0;
}

.example-category ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.example-category ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6b9d;
    font-weight: bold;
}

.helpful-tip {
    background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 100%);
    border: 3px solid #00b4d8;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.helpful-tip p {
    color: #0077b6;
    font-size: 1.05em;
    margin: 0;
}

.helpful-tip i {
    color: #00b4d8;
    margin-right: 8px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(135deg, #ff6b9d 0%, #e63462 100%);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    box-shadow: 0 -4px 20px rgba(255, 107, 157, 0.3);
}

.footer p {
    font-size: 1.2em;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-section,
    .signup-list-section,
    .examples-section {
        padding: 25px 20px;
    }

    .nut-free-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .alert-icon {
        font-size: 2.5em;
    }

    .alert-content h2 {
        font-size: 1.4em;
    }

    .safety-list li {
        padding-left: 25px;
        font-size: 0.95em;
    }

    .signup-header {
        flex-direction: column;
        gap: 10px;
    }

    .example-category {
        padding: 15px;
    }
}