/* ============================================================================
   Page Polish — Login, Events, Members Directory
   Design token-based styling for non-profile pages
   ============================================================================ */

/* ============================================================================
   1. SECTION: Login Page (wp-login.php)
   ============================================================================ */
/* wp-login.php styles are handled by inline CSS in functions.php section 12.1.
   Do NOT add body.login rules here — they conflict with the inline !important styles. */
/* end of 1 */

/* ============================================================================
   2. SECTION: Events Page Cards
   ============================================================================ */

/* 2.1 Event card grid */
.events-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl, 24px);
}

/* 2.1.1 Event card */
.event-card {
    background: var(--color-surface, #FFFFFF);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 26, 46, 0.08));
    overflow: hidden;
    transition: box-shadow var(--motion-normal, 200ms) cubic-bezier(0.16, 1, 0.3, 1),
                transform var(--motion-normal, 200ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(26, 26, 46, 0.12));
    transform: translateY(-2px);
}

/* 2.1.2 Hero image */
.event-card-hero {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(3, 27, 131, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

/* 2.1.3 Date badge */
.event-card-date {
    position: absolute;
    top: var(--space-md, 12px);
    right: var(--space-md, 12px);
    background: var(--color-surface, #FFFFFF);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-xs, 4px) var(--space-sm, 8px);
    text-align: center;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 26, 46, 0.08));
    min-width: 48px;
}

.event-card-date-day {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-navy, #031B83);
    line-height: 1;
    display: block;
}

.event-card-date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-gold, #CC9900);
    letter-spacing: 0.5px;
    display: block;
}

/* 2.1.4 Card body */
.event-card-body {
    padding: var(--space-lg, 16px);
}

.event-card-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-navy, #031B83);
    margin: 0 0 var(--space-sm, 8px) 0;
    line-height: 1.3;
}

.event-card-venue {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 4px);
    font-size: 14px;
    color: var(--color-text-muted, #6B7280);
    margin-bottom: var(--space-md, 12px);
}

.event-card-venue .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--color-gold, #CC9900);
}

/* 2.1.5 Attendee avatar stack */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-card-attendees {
    display: flex;
    align-items: center;
}

.event-card-attendees img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-surface, #FFFFFF);
    object-fit: cover;
    margin-left: -8px;
}

.event-card-attendees img:first-child {
    margin-left: 0;
}

.event-card-attendees-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-surface-raised, #F9F8F5);
    border: 2px solid var(--color-surface, #FFFFFF);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted, #6B7280);
}

/* 2.1.6 RSVP button */
.event-card-rsvp {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs, 4px) var(--space-md, 12px);
    background: var(--color-gold, #CC9900);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.event-card-rsvp:hover {
    background: var(--color-gold-dark, #80641D);
    color: #fff;
}

/* 2.2 Filter bar */
.events-filter-bar {
    display: flex;
    gap: var(--space-sm, 8px);
    overflow-x: auto;
    padding-bottom: var(--space-md, 12px);
    margin-bottom: var(--space-xl, 24px);
    -webkit-overflow-scrolling: touch;
}

.events-filter-bar::-webkit-scrollbar {
    display: none;
}

.events-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs, 4px) var(--space-md, 12px);
    border-radius: 9999px;
    border: 1px solid var(--color-border, #E5E7EB);
    background: var(--color-surface, #FFFFFF);
    color: var(--color-text, #1A1A2E);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.events-filter-pill:hover {
    border-color: var(--color-gold, #CC9900);
    color: var(--color-gold, #CC9900);
}

.events-filter-pill.active {
    background: var(--color-gold, #CC9900);
    border-color: var(--color-gold, #CC9900);
    color: #fff;
}

/* 2.3 Empty state */
.events-empty-state {
    text-align: center;
    padding: var(--space-3xl, 48px) var(--space-xl, 24px);
    color: var(--color-text-muted, #6B7280);
}

.events-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: var(--space-md, 12px);
}

.events-empty-state p {
    font-size: 16px;
    margin: 0;
}

/* end of 2 */

/* ============================================================================
   3. SECTION: Members Directory
   ============================================================================ */

/* 3.1 Member card grid */
.members-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-xl, 24px);
}

/* 3.1.1 Member card */
.member-card {
    background: var(--color-surface, #FFFFFF);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 26, 46, 0.08));
    padding: var(--space-xl, 24px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(26, 26, 46, 0.12));
    transform: translateY(-2px);
}

/* 3.1.2 View profile overlay */
.member-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 27, 131, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-lg, 12px);
}

.member-card:hover .member-card-overlay {
    opacity: 1;
}

.member-card-overlay a {
    color: #fff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: var(--space-sm, 8px) var(--space-xl, 24px);
    border: 2px solid #fff;
    border-radius: var(--radius-md, 8px);
    transition: background var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.member-card-overlay a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 3.1.3 Avatar */
.member-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md, 12px);
    border: 3px solid var(--color-surface-raised, #F9F8F5);
}

/* 3.1.4 Name + badges */
.member-card-name {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-navy, #031B83);
    margin: 0 0 var(--space-xs, 4px) 0;
}

.member-card-personality {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 9999px;
    background: var(--color-navy, #031B83);
    color: var(--color-gold, #CC9900);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--space-md, 12px);
}

/* 3.1.5 Interest tags */
.member-card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs, 4px);
    justify-content: center;
}

.member-card-interest-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--color-surface-raised, #F9F8F5);
    color: var(--color-text-muted, #6B7280);
    font-size: 12px;
}

/* 3.1.6 Compatibility score */
.member-card-compat {
    margin-top: var(--space-md, 12px);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gold, #CC9900);
}

/* 3.2 Search/filter bar */
.members-filter-bar {
    display: flex;
    gap: var(--space-sm, 8px);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl, 24px);
    align-items: center;
}

.members-search-input {
    flex: 1;
    min-width: 200px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-sm, 8px) var(--space-md, 12px);
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 14px;
    transition: border-color var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.members-search-input:focus {
    outline: none;
    border-color: var(--color-gold, #CC9900);
    box-shadow: 0 0 0 2px rgba(204, 153, 0, 0.15);
}

.members-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs, 4px) var(--space-md, 12px);
    border-radius: 9999px;
    border: 1px solid var(--color-border, #E5E7EB);
    background: var(--color-surface, #FFFFFF);
    color: var(--color-text, #1A1A2E);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.members-filter-pill:hover {
    border-color: var(--color-gold, #CC9900);
}

.members-filter-pill.active {
    background: var(--color-gold, #CC9900);
    border-color: var(--color-gold, #CC9900);
    color: #fff;
}

/* 3.3 Load more */
.members-load-more {
    text-align: center;
    margin-top: var(--space-xl, 24px);
}

.members-load-more button {
    background: transparent;
    border: 2px solid var(--color-gold, #CC9900);
    color: var(--color-gold, #CC9900);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-sm, 8px) var(--space-2xl, 32px);
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.members-load-more button:hover {
    background: var(--color-gold, #CC9900);
    color: #fff;
}

/* 3.4 BP members directory override */
#buddypress #members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-xl, 24px);
    list-style: none;
    padding: 0;
}

#buddypress #members-list li {
    background: var(--color-surface, #FFFFFF);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 26, 46, 0.08));
    padding: var(--space-xl, 24px);
    text-align: center;
    transition: box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

#buddypress #members-list li:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(26, 26, 46, 0.12));
    transform: translateY(-2px);
}

#buddypress #members-list .item-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md, 12px);
    display: block;
}

#buddypress #members-list .item-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-navy, #031B83);
    margin-bottom: var(--space-xs, 4px);
}

#buddypress #members-list .item-title a {
    color: inherit;
    text-decoration: none;
}

#buddypress #members-list .item-meta {
    font-size: 13px;
    color: var(--color-text-muted, #6B7280);
}

#buddypress #members-list .action {
    margin-top: var(--space-md, 12px);
}

#buddypress #members-list .action a,
#buddypress #members-list .action button {
    background: var(--color-gold, #CC9900);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    padding: var(--space-xs, 4px) var(--space-md, 12px);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--motion-fast, 150ms) var(--motion-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

#buddypress #members-list .action a:hover,
#buddypress #members-list .action button:hover {
    background: var(--color-gold-dark, #80641D);
}

/* end of 3 */
