/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 50%, #ffd6eb 100%);
    color: #4a0e3f;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4d8f 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(255, 75, 145, 0.3);
}

.title {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    color: #ffe0f0;
    font-weight: 300;
}

/* Event Details Section */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card h2 {
    color: #ff4d8f;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.detail-content {
    font-size: 1.1rem;
    color: #6a2c5a;
}

/* Sign-up Section */
.signup-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    margin-bottom: 30px;
}

.signup-section h2 {
    color: #ff4d8f;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #6a2c5a;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffc0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b9d;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4d8f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 75, 145, 0.4);
}

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

/* Success/Error Messages */
.success-message {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #d4f7dc;
    border: 2px solid #5cb85c;
    border-radius: 10px;
    text-align: center;
}

.success-text {
    color: #2d5a2d;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-calendar {
    display: inline-block;
    padding: 12px 24px;
    background: #5cb85c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-calendar:hover {
    background: #4a9d4a;
}

.error-message {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    background: #f8d7da;
    border: 2px solid #d9534f;
    border-radius: 10px;
    color: #721c24;
    text-align: center;
}

/* Attendees Section */
.attendees-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.attendees-section h2 {
    color: #ff4d8f;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.attendees-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.attendee-card {
    background: linear-gradient(135deg, #fff0f8 0%, #ffe8f5 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ffc0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attendee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.attendee-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff4d8f;
    margin-bottom: 8px;
}

.attendee-bringing {
    color: #6a2c5a;
    font-size: 1rem;
}

.attendee-bringing strong {
    color: #ff6b9d;
}

.loading {
    text-align: center;
    color: #999;
    font-style: italic;
}

.no-attendees {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    padding: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #6a2c5a;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .detail-card.full-width {
        grid-column: 1;
    }

    .attendees-list {
        grid-template-columns: 1fr;
    }

    body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 30px 15px;
    }

    .signup-section,
    .attendees-section {
        padding: 20px;
    }
}
