/* =============================================================================
   Gravity Forms RSVP Display - style.css
   Includes base styles plus updates for farthest traveler, non-attendee cards,
   section headers, list view, and guest-info blocks.
   ============================================================================= */

/* =============================================================================
   Container
   ============================================================================= */
.gf-rsvp-display {
    max-width: 800px;
    margin: 20px 0;
}

/* =============================================================================
   Total count styling
   ============================================================================= */
.rsvp-count h3 {
    color: #2c5aa0;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* =============================================================================
   State breakdown box
   ============================================================================= */
.state-breakdown {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Updated to match <h4> used in plugin markup */
.state-breakdown h4 {
    margin-top: 0;
    color: #333;
}

.state-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.state-item {
    background: #e1ecf4;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

/* =============================================================================
   “Traveling the Farthest” box
   ============================================================================= */
.farthest-traveler {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
}

.farthest-traveler h3 {
    margin-top: 0;
    color: #856404;
}

.traveler-info {
    font-size: 1.1em;
}

/* =============================================================================
   RSVP Section wrappers
   ============================================================================= */
.rsvp-section {
    margin: 30px 0;
}

.rsvp-section h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2c5aa0;
}

/* =============================================================================
   Attendee grid (cards view)
   ============================================================================= */
.attendee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* =============================================================================
   Individual attendee card
   ============================================================================= */
.attendee-card {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =============================================================================
   Attendee name (card title)
   ============================================================================= */
.attendee-name {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* =============================================================================
   Attendee location
   ============================================================================= */
.attendee-location {
    display: block;
    color: #666;
    font-size: 0.9em;
}

/* =============================================================================
   Guest Info (dinner & boating guest names)
   ============================================================================= */
.guest-info {
    margin-top: 8px;
    font-size: 0.95em;
    color: #555;
}

/* =============================================================================
   Non-attendee card styling
   ============================================================================= */
.attendee-card.non-attendee {
    background: #fbeaea;
    border-color: #e06666;
}

.attendee-card.non-attendee .attendee-name {
    color: #a33;
}

/* =============================================================================
   List view (if display_mode="list")
   ============================================================================= */
.attendee-list {
    list-style: disc inside;
    margin: 10px 0 30px;
    padding-left: 20px;
}

.attendee-list li {
    margin-bottom: 8px;
    color: #444;
}

/* =============================================================================
   Responsive adjustments
   ============================================================================= */
@media (max-width: 600px) {
    .attendee-grid {
        grid-template-columns: 1fr;
    }

    .state-list {
        flex-direction: column;
    }
}
