/**
 * TP Info Block — widget styles
 *
 * @package Technoproekt
 * @author  Kkalganov <https://kkalganov.com>
 */

/* ==========================================================================
   Info Block Base
   ========================================================================== */

.tp-info-block {
    padding: 32px;
    transition: all 0.3s;
}

.tp-info-block__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.tp-info-block__icon svg,
.tp-info-block__icon i {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.tp-info-block__title {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tp-info-block__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.tp-info-block__title a:hover {
    color: var(--tp-green-main);
}

.tp-info-block__text {
    font-size: 14px;
    line-height: 1.7;
}

.tp-info-block__text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Default (white card)
   ========================================================================== */

.tp-info-block--default {
    background: var(--tp-white);
    box-shadow: var(--tp-shadow);
    border-radius: var(--tp-radius-md);
}

.tp-info-block--default .tp-info-block__icon {
    background: var(--tp-green-main);
}

.tp-info-block--default .tp-info-block__icon svg,
.tp-info-block--default .tp-info-block__icon i {
    color: var(--tp-white);
}

.tp-info-block--default .tp-info-block__title {
    color: var(--tp-text);
}

.tp-info-block--default .tp-info-block__text {
    color: var(--tp-text-light);
}

.tp-info-block--default:hover {
    box-shadow: var(--tp-shadow-lg);
    transform: translateY(-4px);
}

/* ==========================================================================
   Bordered
   ========================================================================== */

.tp-info-block--bordered {
    background: var(--tp-white);
    border: 2px solid var(--tp-cream-warm);
    border-radius: var(--tp-radius-md);
}

.tp-info-block--bordered .tp-info-block__icon {
    background: var(--tp-cream);
}

.tp-info-block--bordered .tp-info-block__icon svg,
.tp-info-block--bordered .tp-info-block__icon i {
    color: var(--tp-green-main);
}

.tp-info-block--bordered .tp-info-block__title {
    color: var(--tp-text);
}

.tp-info-block--bordered .tp-info-block__text {
    color: var(--tp-text-light);
}

.tp-info-block--bordered:hover {
    border-color: var(--tp-green-main);
}

/* ==========================================================================
   Dark
   ========================================================================== */

.tp-info-block--dark {
    background: var(--tp-green-dark);
    border-radius: var(--tp-radius-md);
}

.tp-info-block--dark .tp-info-block__icon {
    background: var(--tp-white-10);
}

.tp-info-block--dark .tp-info-block__icon svg,
.tp-info-block--dark .tp-info-block__icon i {
    color: var(--tp-yellow);
}

.tp-info-block--dark .tp-info-block__title {
    color: var(--tp-white);
}

.tp-info-block--dark .tp-info-block__title a:hover {
    color: var(--tp-yellow);
}

.tp-info-block--dark .tp-info-block__text {
    color: var(--tp-white-70);
}

.tp-info-block--dark:hover {
    background: var(--tp-dark);
}

/* ==========================================================================
   Team (member card)
   ========================================================================== */

.tp-info-block--team {
    background: var(--tp-white);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--tp-cream-warm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-info-block--team:hover {
    border-color: var(--tp-green-main);
    box-shadow: 0 4px 16px var(--tp-black-06);
}

.tp-info-block__avatar {
    width: 64px;
    height: 64px;
    background: var(--tp-cream);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-info-block__avatar svg {
    width: 28px;
    height: 28px;
    color: var(--tp-green-main);
}

.tp-info-block__name {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-text);
    margin-bottom: 4px;
    line-height: 1.4;
    text-transform: none;
}

.tp-info-block__role {
    font-size: 12px;
    color: var(--tp-text-light);
    margin-bottom: 16px;
}

.tp-info-block__contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.tp-info-block__contacts li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-content: center;
}

.tp-info-block__contacts li svg {
    width: 14px;
    height: 14px;
    color: var(--tp-green-main);
    flex-shrink: 0;
}

.tp-info-block__contacts a {
    color: var(--tp-text);
    transition: color 0.2s;
    text-decoration: none;
}

.tp-info-block__contacts a:hover {
    color: var(--tp-green-main);
}

@media (min-width: 769px) {
    .tp-info-block--team {
        padding: 32px 20px;
    }
}

/* ==========================================================================
   Requisite (label + value)
   ========================================================================== */

.tp-info-block--requisite {
    padding: 24px;
    background: var(--tp-cream);
    margin: 0;
    height: 100%;
}

.tp-info-block__req-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tp-text-light);
    margin-bottom: 6px;
}

.tp-info-block__req-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--tp-text);
    margin: 0;
}

/* ==========================================================================
   Client (company name card)
   ========================================================================== */

.tp-info-block--client {
    padding: 24px 28px;
    border: 1px solid var(--tp-cream-warm);
    margin: -0.5px;
    background: var(--tp-white);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.tp-info-block--client:hover {
    background: var(--tp-green-dark);
    border-color: var(--tp-green-dark);
}

/* Logo area — fixed size placeholder */
.tp-info-block__client-logo-wrap {
    width: 80px;
    height: 48px;
    background: var(--tp-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: background 0.3s;
}

.tp-info-block--client:hover .tp-info-block__client-logo-wrap {
    background: rgba(255, 255, 255, 0.15);
}

.tp-info-block__client-logo {
    max-width: 70px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.tp-info-block--client:hover .tp-info-block__client-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Fallback text initials when no logo image */
.tp-info-block__client-logo-text {
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--tp-green-main);
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s;
}

.tp-info-block--client:hover .tp-info-block__client-logo-text {
    color: var(--tp-yellow);
}

.tp-info-block__client-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-text);
    line-height: 1.4;
    transition: color 0.3s;
}

.tp-info-block--client:hover .tp-info-block__client-name {
    color: var(--tp-white);
}
