.public-guest-list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.public-filter-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.public-filter-section label {
    font-weight: 600;
    font-size: 16px;
}

.public-event-dropdown {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    min-width: 300px;
    background: white;
    flex: 1;
    max-width: 400px;
}

.public-gender-dropdown {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    background: white;
    flex: 1;
    max-width: 250px;
}

.public-loading-spinner {
    color: #0073aa;
    font-weight: 600;
}

.public-guests-results {
    margin-top: 20px;
}

.public-no-selection,
.public-no-guests {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.public-loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
}

/* Grid Layout for Guest Cards */
.public-guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.public-guest-card {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.public-guest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.public-guest-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.public-guest-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 700;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.public-guest-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.public-guest-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.3;
}

.public-guest-work {
    font-size: 14px;
    color: #0073aa;
    font-weight: 500;
    line-height: 1.3;
}

.public-guest-count {
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
    color: #0073aa;
    font-size: 18px;
}

/* Secure Guest List Page Styles */
body.guest-list-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f5f5f5;
}

.guest-list-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.guest-list-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.guest-list-subtitle {
    margin: 0 0 15px 0;
    font-size: 18px;
    opacity: 0.95;
}

.link-expiry-notice {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    margin-top: 10px;
}

.link-expiry-notice strong {
    font-weight: 700;
}

/* Error Page Styling */
.guest-list-error-box {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.guest-list-error-box h1 {
    color: #dc3545;
    font-size: 28px;
    margin-bottom: 20px;
}

.guest-list-error-box p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.button-back-home {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.button-back-home:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .public-guest-list-container {
        padding: 15px;
        margin: 10px;
    }
    
    .public-filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .public-filter-section label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .public-event-dropdown {
        width: 100%;
        min-width: auto;
        max-width: none;
    }
    
    .public-gender-dropdown {
        width: 100%;
        min-width: auto;
        max-width: none;
        margin-bottom: 10px;
    }
    
    .public-guests-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .public-guest-card {
        padding: 15px 10px;
        min-height: 260px;
    }
    
    .public-guest-photo,
    .public-guest-photo-placeholder {
        width: 130px;
        height: 130px;
    }
    
    .public-guest-photo-placeholder {
        font-size: 50px;
    }
    
    .public-guest-name {
        font-size: 16px;
    }
    
    .public-guest-location {
        font-size: 13px;
    }
    
    .public-guest-work {
        font-size: 13px;
    }
    
    .guest-list-header h1 {
        font-size: 24px;
    }
    
    .guest-list-subtitle {
        font-size: 16px;
    }
    
    .link-expiry-notice {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .public-guests-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
