/* ============================================================
   Kotisivutheti Tekijäkortti — Frontend-tyylit
   Teema: cyan/turquoise · vaalea pohja · modern card
   ============================================================ */

.tk-card {
    --tk-cyan-50:  #ecfeff;
    --tk-cyan-100: #cffafe;
    --tk-cyan-200: #a5f3fc;
    --tk-cyan-400: #22d3ee;
    --tk-cyan-500: #06b6d4;
    --tk-cyan-600: #0891b2;
    --tk-cyan-700: #0e7490;
    --tk-cyan-bright: #4BFFFF;
    --tk-ink:     #0a1929;
    --tk-ink-soft:#2a3f5c;
    --tk-ink-mute:#5a7290;
    --tk-line:    #cffafe;
    --tk-line-soft:#ecfeff;
    --tk-radius:14px;
    --tk-radius-lg:20px;

    max-width: 880px;
    margin: 3rem auto 2rem;
    background: #fff;
    border: 1px solid var(--tk-line);
    border-radius: var(--tk-radius-lg);
    box-shadow:
        0 4px 24px rgba(10, 25, 41, 0.04),
        0 2px 8px rgba(6, 182, 212, 0.05);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tk-ink-soft);
    position: relative;
    isolation: isolate;
}

.tk-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tk-cyan-bright) 0%, var(--tk-cyan-400) 50%, var(--tk-cyan-500) 100%);
    z-index: 1;
}

.tk-card-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.8rem 1.8rem 1.5rem;
}

/* ---------- Avatar ---------- */
.tk-avatar {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1929 0%, #1e3a5f 100%);
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        0 0 0 4px #fff,
        0 0 0 6px var(--tk-cyan-400),
        0 8px 24px rgba(6, 182, 212, 0.2);
}

.tk-avatar-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.tk-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tk-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tk-cyan-400), var(--tk-cyan-500));
    border: 3px solid #fff;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

/* ---------- Content ---------- */
.tk-content {
    min-width: 0;
}

.tk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--tk-cyan-600);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.tk-eyebrow-dot {
    color: var(--tk-cyan-400);
    font-size: 0.6rem;
}

.tk-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tk-ink);
    margin: 0 0 0.3rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tk-subtitle {
    font-size: 0.95rem;
    color: var(--tk-cyan-600);
    margin: 0 0 1.2rem;
    font-weight: 500;
}

.tk-bio {
    margin: 0 0 1.3rem;
}

.tk-bio p {
    margin: 0 0 0.9rem;
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--tk-ink-soft);
}

.tk-bio p:last-child {
    margin-bottom: 0;
}

.tk-bio strong {
    color: var(--tk-ink);
    font-weight: 600;
}

.tk-bio a {
    color: var(--tk-cyan-600);
    text-decoration: none;
    border-bottom: 1.5px solid var(--tk-cyan-200);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tk-bio a:hover {
    color: var(--tk-cyan-700);
    border-color: var(--tk-cyan-500);
}

/* ---------- Tagit ---------- */
.tk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tk-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.9rem;
    background: var(--tk-cyan-50);
    border: 1px solid var(--tk-cyan-100);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tk-cyan-700);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tk-tag:hover {
    background: #fff;
    border-color: var(--tk-cyan-400);
    transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.tk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.8rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--tk-cyan-50) 100%);
    border-top: 1px solid var(--tk-line-soft);
    flex-wrap: wrap;
}

.tk-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tk-site {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: #fff;
    border: 1px solid var(--tk-line);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--tk-ink-soft);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tk-site:hover {
    transform: translateY(-2px);
    border-color: var(--tk-cyan-400);
    color: var(--tk-cyan-700);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.12);
}

.tk-site-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.tk-site-label {
    font-weight: 500;
}

/* ---------- Contact button ---------- */
.tk-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, var(--tk-cyan-bright) 0%, var(--tk-cyan-400) 60%, var(--tk-cyan-500) 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow:
        0 4px 14px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.tk-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tk-contact-icon {
    font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .tk-card {
        margin: 2rem 0;
        border-radius: var(--tk-radius);
    }

    .tk-card-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.4rem 1.3rem 1.2rem;
        text-align: left;
    }

    .tk-avatar {
        width: 76px;
        height: 76px;
        justify-self: start;
    }

    .tk-avatar-text {
        font-size: 1.6rem;
    }

    .tk-name {
        font-size: 1.4rem;
    }

    .tk-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .tk-bio p {
        font-size: 0.95rem;
    }

    .tk-footer {
        padding: 1rem 1.3rem;
        flex-direction: column;
        align-items: stretch;
    }

    .tk-sites {
        justify-content: flex-start;
    }

    .tk-contact-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .tk-tag {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .tk-site {
        font-size: 0.82rem;
        padding: 0.45rem 0.8rem;
    }
}
