/* Menu tools blocks (Dishes/Products) – shared, brand-aware, and scoped
   This stylesheet is scoped under `.admin-tools-page` to avoid conflicts with nav-shared and other globals.
   It uses brand variables exposed by core/branding where available, with safe fallbacks.
*/

/*********************
 * Card link blocks
 *********************/
.admin-tools-page .tool-card-compact {
    display: flex !important;
    align-items: center;
    padding: 0;
    min-height: 90px; /* 80px thumbnail + 10px paddings */
    border: 1px solid var(--fa-border, #dff3df);
    border-radius: 10px;
    background: var(--fa-green-soft, #f6fff8);
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: none;
}

.admin-tools-page .tool-card-compact:hover,
.admin-tools-page .tool-card-compact:focus {
    background: var(--fa-green-soft-hover, #eef9ef);
    border-color: var(--fa-border-strong, #bfe9c9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 96, 53, 0.10);
    text-decoration: none;
    color: inherit;
}

.admin-tools-page .tool-card-compact .tool-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    padding-right: 10px;
}

/* Fixed preview container for unified sizes and spacing */
.admin-tools-page .tool-thumb-box {
    flex: 0 0 140px;               /* fixed-width column on the left */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Unified thumbnail 120x80 with accent border */
.admin-tools-page .tool-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--fa-green, var(--fa-primary, #1b6035));
    border-radius: 8px;
    background: #fff;
    display: block;
    flex: 0 0 auto;
}

/* Override global spacing/gap and alignment for compact cards */
.admin-tools-page .tool-card-compact {
    gap: 12px;
    align-items: center;
}

/* Titles / descriptions */
.admin-tools-page .tool-title {
    font-weight: 600;
    color: var(--fa-green, var(--fa-primary, #1f4d2f));
    font-size: 1rem;
}

.admin-tools-page .tool-desc {
    font-size: .875rem;
    color: #666;
    line-height: 1.4;
}

/* Section titles */
.admin-tools-page .section-title {
    color: var(--fa-green, var(--fa-primary, #1f4d2f));
    font-weight: 700;
}

/* Info alert – soft brand-aware look */
.admin-tools-page .alert-info {
    background: linear-gradient(180deg, var(--fa-green-soft, #f6fff6), var(--fa-green-soft-hover, #eef9ef));
    border-color: var(--fa-border, #dff3df);
    color: var(--fa-green, var(--fa-primary, #1f4d2f));
}

/*********************
 * Accents for specific cards
 * Use with: <a class="tool-card-compact author|available|product">...</a>
 *********************/

/* Light orange — All Author Dishes */
.admin-tools-page .tool-card-compact.author {
    background: #fff3e6;
    border-color: #ffd8b2;
}
.admin-tools-page .tool-card-compact.author:hover,
.admin-tools-page .tool-card-compact.author:focus {
    background: #ffe8d1;
    border-color: #ffc48f;
}

/* Light yellow — All Available Dishes */
.admin-tools-page .tool-card-compact.available {
    background: #fffbe6;
    border-color: #ffe58f;
}
.admin-tools-page .tool-card-compact.available:hover,
.admin-tools-page .tool-card-compact.available:focus {
    background: #fff4cc;
    border-color: #ffd666;
}

/* Light blue — Products */
.admin-tools-page .tool-card-compact.product {
    background: #f2f8ff;
    border-color: #cfe5ff;
}
.admin-tools-page .tool-card-compact.product:hover,
.admin-tools-page .tool-card-compact.product:focus {
    background: #e8f3ff;
    border-color: #b9d8ff;
}

/*********************
 * PeopleHub – contacts cards (brand-aware)
 *********************/
.people-hub-page .contacts-grid {
    display: grid;
    /* -30% øèðèíû îò 280–420px => 196–294px */
    grid-template-columns: repeat(auto-fit, minmax(196px, 294px));
    justify-content: center;             /* âûðàâíèâàíèå îò öåíòðà */
    gap: 40px;                           /* ìèíèìóì 40px ìåæäó êàðòî÷êàìè */
    margin-top: 1.4rem;
}

.people-hub-page .contacts-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    /* +30% âûñîòû îò 360px => 468px */
    min-height: 468px;
    padding: 1.05rem 1.05rem 1.15rem;
    background: #fff;
    border: 1px solid var(--fa-border-soft, #dfeee1);
    border-radius: 16px;
    color: #1e2228;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    box-shadow: 0 3px 6px -2px rgba(0,0,0,.07), 0 6px 18px -4px rgba(0,0,0,.06);
}

.people-hub-page .contacts-card:hover,
.people-hub-page .contacts-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 6px 14px -3px rgba(0,0,0,.15), 0 16px 34px -6px rgba(0,0,0,.12);
    border-color: var(--fa-border-strong, #b9d9c6);
    text-decoration: none;
    color: inherit;
}

.people-hub-page .contacts-card img {
    width: 100%;
    /* +30% âûñîòû îò 195px => 254px */
    height: 254px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--fa-green-soft, #f2f5f9);
    flex-shrink: 0;
    border: 2px solid rgba(var(--fa-primary-rgb, 46,139,87), .12);
}

.people-hub-page .contacts-card .pc-title {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    gap: .5rem;
    align-items: center;
    color: var(--fa-primary-dark, #1f5e3a);
}

.people-hub-page .contacts-card .pc-desc {
    font-size: .875rem;
    line-height: 1.3rem;
    opacity: .80;
    flex-grow: 1;
}

/*********************
 * Responsive
 *********************/
@media (max-width: 576px) {
    .admin-tools-page .tool-thumb { width: 100px; height: 67px; }
    .admin-tools-page .tool-card-compact { min-height: 77px; }

    /* -30% øèðèíû îò 240px => 168px */
    .people-hub-page .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
        gap: 28px;
    }
}
@media (max-width: 991.98px) {
    .admin-tools-page .col-lg-7,
    .admin-tools-page .col-lg-5,
    .admin-tools-page .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
