/* =========================================================
   Branike Member Directory — Single Profile CSS
   ========================================================= */

.bmd-single-profile {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: var(--bmd-font-family, inherit);
    color: var(--bmd-text, #1a1a2e);
}

/* --- Hero --- */
.bmd-profile-hero {
    background: var(--bmd-hero-bg, linear-gradient(135deg, #0a84ff 0%, #005ecb 100%));
    border-radius: var(--bmd-card-radius, 10px);
    padding: 40px;
    margin-bottom: 32px;
    color: #fff;
}

.bmd-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.bmd-profile-avatar-wrap {
    flex-shrink: 0;
}

.bmd-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
}

.bmd-avatar-lg {
    width: 120px;
    height: 120px;
}

.bmd-profile-hero-info {
    flex: 1;
    min-width: 200px;
}

.bmd-profile-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.2;
}

.bmd-profile-position {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 4px;
}

.bmd-profile-company {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 0 12px;
}

.bmd-profile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.bmd-profile-cats .bmd-cat-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.bmd-profile-cats .bmd-cat-badge:hover {
    background: rgba(255,255,255,0.35);
}

/* Logo */
.bmd-profile-logo-wrap {
    margin-left: auto;
}

.bmd-profile-logo {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
}

/* --- Body --- */
.bmd-profile-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bmd-profile-section {
    background: var(--bmd-card-bg, #fff);
    border-radius: var(--bmd-card-radius, 10px);
    box-shadow: var(--bmd-card-shadow, 0 2px 12px rgba(0,0,0,.06));
    padding: 28px 32px;
}

.bmd-profile-section h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bmd-heading, var(--bmd-primary, #0a84ff));
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f0f4ff;
}

.bmd-profile-bio,
.bmd-profile-company-desc {
    font-size: var(--bmd-font-size-body, 14px);
    line-height: 1.7;
    color: var(--bmd-text, #444);
}

/* wpautop generuje <p> tagy — štandardné margin */
.bmd-profile-bio p,
.bmd-profile-company-desc p {
    margin: 0 0 1em;
}

.bmd-profile-bio p:last-child,
.bmd-profile-company-desc p:last-child {
    margin-bottom: 0;
}

/* --- Kontakt --- */
.bmd-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bmd-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.bmd-contact-icon {
    font-style: normal;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

.bmd-contact-item a {
    color: var(--bmd-link, var(--bmd-primary, #0a84ff));
    text-decoration: none;
    transition: opacity 0.15s;
}

.bmd-contact-item a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* --- Sociálne siete --- */
.bmd-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bmd-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f4ff;
    color: var(--bmd-link, var(--bmd-primary, #0a84ff));
    transition: background 0.2s, color 0.2s, transform 0.15s;
    text-decoration: none;
}

.bmd-social-link:hover {
    background: var(--bmd-link, var(--bmd-primary, #0a84ff));
    color: #fff;
    transform: scale(1.1);
}

/* --- Custom fields (dt/dd) — vertikálne stacked --- */
.bmd-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: var(--bmd-font-size-body, 14px);
}

.bmd-cf-label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 4px;
}

.bmd-cf-value {
    color: var(--bmd-text, #1a1a2e);
    margin: 0;
    line-height: 1.6;
}

/* --- Profile layout rows (z layout buildera) --- */
.bmd-profile-row {
    display: grid;
    gap: 24px;
}

.bmd-profile-row.bmd-cols-1 { grid-template-columns: 1fr; }
.bmd-profile-row.bmd-cols-2 { grid-template-columns: 1fr 1fr; }
.bmd-profile-row.bmd-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.bmd-profile-row.bmd-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Stĺpec v riadku — každý obsahuje .bmd-profile-section */
.bmd-profile-col {
    min-width: 0; /* Fix pre grid overflow */
}

/* --- Back link --- */
.bmd-back-link {
    margin-top: 32px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bmd-profile-row.bmd-cols-3,
    .bmd-profile-row.bmd-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .bmd-profile-row.bmd-cols-2,
    .bmd-profile-row.bmd-cols-3,
    .bmd-profile-row.bmd-cols-4 {
        grid-template-columns: 1fr;
    }

    .bmd-profile-hero {
        padding: 24px;
    }
    .bmd-profile-hero-inner {
        gap: 20px;
    }
    .bmd-profile-avatar {
        width: 80px;
        height: 80px;
    }
    .bmd-profile-name {
        font-size: 22px;
    }
    .bmd-profile-logo-wrap {
        margin-left: 0;
        margin-top: 4px;
    }
    .bmd-profile-logo {
        max-width: 100px;
        max-height: 50px;
    }
    .bmd-profile-section {
        padding: 20px;
    }
    .bmd-custom-fields {
        grid-template-columns: 1fr;
    }
}
