/* Minecraft Tools — section-specific additions.
   Hero і базові картки переиспують класи з minecraft-seeds.css
   (.minecraft-seeds-hero*, .minecraft-seeds-card, .minecraft-seeds-grid). */

/* Опис на картці tool */
.minecraft-tools-card__desc {
    margin: 8px 16px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6270;
}

/* Контейнер вбудованого tool */
.single-tool-embed {
    padding: 40px 0 80px;
}

/* Заголовок над вбудованим tool (секція minecraft-tool на звичайній сторінці) */
.single-tool-embed__title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1f2b;
    text-align: center;
}

.single-tool-embed__inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0e1320;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.single-tool-embed__frame {
    display: block;
    width: 100%;
    border: 0;
    min-height: 900px; /* fallback до авто-висоти */
}

.single-tool-embed__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px;
    color: #aeb4c0;
    font-size: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .single-tool-embed {
        padding: 24px 0 48px;
    }
    .single-tool-embed__frame {
        min-height: 1100px;
    }
}

/* Кнопка «на весь екран» поверх вбудованого тула */
.single-tool-embed__fs {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(267.71deg, #007CEE -37.36%, #5F39CB 98.08%);
    color: #fff;
    box-shadow: 0 0 4px rgba(9, 132, 227, 0.2);
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.single-tool-embed__fs:hover {
    opacity: 0.9;
    box-shadow: 0 0 8px rgba(9, 132, 227, 0.35);
}
.single-tool-embed__fs-icon {
    display: inline-block;
}
.single-tool-embed__fs-icon--collapse {
    display: none;
}
.single-tool-embed__inner.is-fullscreen .single-tool-embed__fs-icon--expand {
    display: none;
}
.single-tool-embed__inner.is-fullscreen .single-tool-embed__fs-icon--collapse {
    display: inline-block;
}

/* Режим fullscreen: тул заповнює екран */
.single-tool-embed__inner:fullscreen {
    background: #0e1320;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-tool-embed__inner:-webkit-full-screen {
    background: #0e1320;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-tool-embed__inner:fullscreen .single-tool-embed__frame {
    height: 100vh !important;
    min-height: 0 !important;
}
.single-tool-embed__inner:-webkit-full-screen .single-tool-embed__frame {
    height: 100vh !important;
    min-height: 0 !important;
}

