/* Public Members Pages - Pure CSS Styles */

/* Container and Layout */
.page-main {
    padding: 40px 0;
}

.container {
    max-width: 100rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.member-profile {
    max-width: 64rem;
    margin: 0 auto;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 2rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

/* Spacing */
.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Text alignment */
.text-center {
    text-align: center;
}

/* Typography */
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Colors */
.text-gray-900 {
    color: #111827;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-800 {
    color: #1e40af;
}

.text-white {
    color: #ffffff;
}

/* Background Colors */
.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

/* Card Styles */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

/* Buttons */
.btn {
    background-color: #2563eb;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #1d4ed8;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 16px;
}

.profile-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.profile-value {
    color: #111827;
    margin: 4px 0;
}

/* Member Profile Photo */
.member-profile-photo {
    width: 128px;
    height: 128px;
    border-radius: 8px;
    object-fit: fill;
    border: 4px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.member-profile-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6b7280;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Member Badge */
.member-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
}

.star {
    font-size: 18px;
}

.star.filled {
    color: #eab308;
}

.star.empty {
    color: #d1d5db;
}

.rating-text {
    margin-left: 8px;
    font-size: 14px;
    color: #6b7280;
}

/* Whitespace */
.whitespace-pre-line {
    white-space: pre-line;
}

/* Space y */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* New custom classes for member profile */
.back-link {
    color: #2563eb;
    text-decoration: none;
    margin-right: 0.5rem;
}

.back-link:hover {
    color: #1e40af;
}

.member-name {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.member-id {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #4b5563;
}

.profile-card {
    margin-bottom: 2rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

@media (min-width: 768px) {
    .photo-section {
        text-align: left;
    }
}

.info-section {
    flex: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.committee-duration {
    font-size: 0.875rem;
    color: #6b7280;
}

.address-card {
    margin-bottom: 2rem;
}

.address-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .address-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.address-box {
    padding: 0.5rem;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .address-box {
        width: 32%;
    }
}

.address-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    background: #f1f1f1;
    padding: 4px;
    border-radius: 4px;
}

.address-text {
    color: #374151;
    white-space: pre-line;
    padding: 4px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.nav-btn {
    display: inline-block;
}

/* Member Photo */
.member-photo {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 4px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.member-photo-placeholder {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6b7280;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Member Field Group */
.member-field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
}

.member-field-group > div {
    flex: 1 1 200px;
}

/* EC Position Badge */
.ec-position-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Member Details Header */
.member-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-id-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.member-id-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Member Details Content */
.member-details-content > div {
    margin: 1rem 0;
}

.member-details-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.member-details-value {
    font-size: 1rem;
    color: #111827;
}

/* Navigation Buttons */
.member-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
