/**
 * Member Profile Shortcode Styles
 * Styles for the [member_information] shortcode
 */

.member-information-container {
    max-width: 900px;
    font-family: var(--hgea-font-montserrat);
    width: 100%;
}

.member-profile-card {
    background: #ffffff;
    border: 1px solid var(--hgea-color-light-grey);
    border-radius: 4px;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.member-profile-card h2 {
    font-family: var(--hgea-font-league-spartan);
    font-size: 1.5rem;
    color: var(--hgea-color-dark-green);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--hgea-color-yellow);
}

.member-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: var(--hgea-color-bg-light-green);
    padding: 1rem;
    border-left: 4px solid var(--hgea-color-mid-green);
}

.info-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--hgea-color-mid-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    color: var(--hgea-color-black);
    word-wrap: break-word;
}

/* Convert parent container to grid layout */
.parent-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Adjust spacing between items as needed */
    align-items: stretch;
    /* Ensures all items stretch to same height */
    flex-wrap: nowrap !important;
    /* Override any existing flex properties */
}

/* Ensure child elements stretch to full height */
.parent-container .full-height {
    display: flex;
    flex-direction: column;
    height: auto;
    /* Let grid handle the height */
    min-height: 100%;
    /* Ensure full height utilization */
}

.full-height h4 {
    margin-bottom: auto;
}

.full-height p {
    margin-top: auto;
    /* Push paragraph to bottom if needed */
    flex-grow: 1;
    /* Allow paragraph to grow and fill space */
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .parent-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .member-profile-card {
        padding: 1rem 1.5rem;
    }

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

    .member-profile-card h2 {
        font-size: 1.3rem;
    }

    .parent-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .parent-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/**
 * Member Dashboard Layout Styles
 * Layout-only changes for the combined stewards and contact shortcode
 */

/* Two-column layout: stewards + contact */
.hgea-member-dashboard-container.two-column {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.hgea-member-dashboard-container.two-column .hgea-worksite-stewards-container,
.hgea-member-dashboard-container.two-column .hgea-contact-hgea-container {
    flex: 1;
}

/* Single-column layout: contact only (full width) */
.hgea-member-dashboard-container.single-column .hgea-contact-hgea-container {
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .hgea-member-dashboard-container.two-column {
        flex-direction: column;
        gap: 1.5rem;
    }
}