/**
 * BRA Directory Styles - Card Grid Layout
 */

/* Login Prompt */
.bra-login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    max-width: 400px;
    margin: 40px auto;
}

.bra-login-prompt h2 {
    color: #2563EB;
    margin-bottom: 15px;
}

.bra-login-prompt p {
    color: #666;
    margin-bottom: 25px;
}

.bra-login-button {
    display: inline-block;
    background: #2563EB;
    color: #fff !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.bra-login-button:hover {
    background: #1D4ED8;
    text-decoration: none;
}

.bra-directory {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header with search and stats */
.bra-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.bra-directory-search {
    flex: 1;
    max-width: 400px;
}

.bra-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bra-search-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bra-directory-stats {
    color: #6b7280;
    font-size: 1.1em;
    font-weight: 500;
}

.bra-directory-stats span {
    color: #2563EB;
    font-weight: 700;
}

/* Member Card Grid */
.bra-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.bra-member-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bra-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bra-member-card.hidden {
    display: none;
}

.bra-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bra-member-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.bra-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.bra-member-card:hover .bra-member-photo img {
    transform: scale(1.05);
}

.bra-member-info {
    padding: 20px;
    text-align: center;
    border-top: 3px solid #2563EB;
}

.bra-member-name {
    margin: 0 0 5px 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #1f2937;
}

.bra-member-spouse {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    color: #6b7280;
    font-style: italic;
}

.bra-member-city {
    margin: 0;
    font-size: 0.85em;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Member Detail Modal */
.bra-member-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.bra-member-detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.bra-member-detail-content h2 {
    margin-top: 0;
    color: #2563EB;
    padding-right: 40px;
    font-size: 1.6em;
}

.bra-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #9ca3af;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.bra-close:hover {
    color: #2563EB;
    text-decoration: none;
}

.bra-detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
}

.bra-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bra-detail-section h4 {
    margin: 0 0 12px 0;
    color: #2563EB;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bra-detail-section p {
    margin: 8px 0;
    color: #4b5563;
}

.bra-detail-section a {
    color: #2563EB;
    text-decoration: none;
}

.bra-detail-section a:hover {
    text-decoration: underline;
}

.bra-debutante-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .bra-directory-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bra-directory-search {
        max-width: 100%;
    }

    .bra-directory-stats {
        text-align: center;
    }

    .bra-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .bra-member-info {
        padding: 15px;
    }

    .bra-member-name {
        font-size: 1em;
    }

    .bra-member-detail-content {
        padding: 25px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .bra-member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bra-member-info {
        padding: 12px;
    }

    .bra-member-name {
        font-size: 0.9em;
    }

    .bra-member-spouse,
    .bra-member-city {
        font-size: 0.8em;
    }
}
