/**
 * RSVP Application Stylesheet
 * Clean, modern design for Crawfish Boil RSVP
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.button:active {
    transform: translateY(0);
}

.button-secondary {
    background: #666;
    padding: 10px 20px;
    font-size: 0.9em;
}

.button-secondary:hover {
    box-shadow: 0 5px 15px rgba(102, 102, 102, 0.4);
}

.button-danger {
    background: #d32f2f;
}

.button-danger:hover {
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.event-date {
    font-size: 1.3em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-image-wrap {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: clamp(200px, 35vw, 360px);
    display: block;
    object-fit: cover;
}

.guest-count-display {
    font-size: 2em;
    color: #667eea;
    font-weight: bold;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-declined {
    background: #f8d7da;
    color: #721c24;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
    font-size: 0.9em;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .card {
        padding: 20px;
    }

    .hero-image {
        height: 220px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9em;
    }

    table th,
    table td {
        padding: 8px;
    }
}

.help-text {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.code-display {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    word-break: break-all;
    user-select: all;
}

.copy-button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
}
