﻿/* --------------------
    Сторінка про сайт
------------------  */


.selfportret {
    height: 200px;
    width: auto;
    display: block;
    max-width: 100%;
    margin-right: 30px;
}

.portretcontainer {
    display: inline-flex;
    margin-top: 20px;
    align-items: stretch; /* змінено з flex-start на stretch */
    gap: 12px;
}

/* remove inner border on left box (outer .infocontainer already provides the frame) */
.portretinfo {
    display: flex;
    text-align: justify;
    border: 1px solid var(--brand-border); 
    background-color: var(--surface-100);
    width: 100%;
    padding: 20px;
    align-items: flex-start; 
    box-sizing: border-box;
}

/* make right panel padding a bit larger for visual breathing room */
.linkouts {
    list-style: none;
    margin: 0;
    padding-left: 0;
    background: var(--surface-400);
    border: 1px solid var(--brand-border);
    border-radius: inherit;
    padding: 28px;               /* increased from 20px */
    box-sizing: border-box;
}

/* keep headings/text inside left and right at the same vertical position */
.portretinfo strong,
.linkouts strong {
    display: block;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* Consolidated .linkouts rules — single source of truth */
.linkouts,
.linkouts ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
    background: var(--surface-400);
    border-radius: inherit;
    padding: 20px;
    columns: auto !important;
    column-count: 1 !important;
    column-gap: normal !important;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    column-break-inside: avoid;
}

/* Keep list items as block so text wraps naturally (multi-line), prevent fragmentation */
.linkouts li,
.h-notes {
    display: block;
    position: relative;           /* for absolutely positioned icon */
    padding-left: 40px;           /* space for icon */
    margin-bottom: 8px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    width: auto;
}

/* Icon as absolutely positioned pseudo-element aligned with first text line */
.linkouts li::before,
.h-notes::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0.12em;                  /* tweak for visual baseline alignment */
    width: 20px;
    height: 20px;
    background-image: url("/images/note.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* YouTube special item: icon larger, keep icon position; move label text by increasing padding */
.linkouts > ul > li.youtube-button {
    padding-left: 64px; /* space for 40px icon + gap — this moves the text only */
    margin-left: 0;
}

/* YouTube icon (overrides generic ::before) */
.linkouts > ul > li.youtube-button::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 40px;
    height: 40px;
    background-image: url("/images/yt_icon_red_digital.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Keep anchor text stable */
.linkouts > ul > li.youtube-button > a {
    display: inline-block;
    vertical-align: middle;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .linkouts li,
    .h-notes {
        padding-left: 36px;
    }
    .linkouts li::before,
    .h-notes::before {
        width: 16px;
        height: 16px;
        left: 8px;
        top: 0.12em;
    }
    .linkouts > ul > li.youtube-button {
        padding-left: 52px; /* 32px icon + gap */
    }
    .linkouts > ul > li.youtube-button::before {
        width: 32px;
        height: 32px;
    }
}