/* ========== TOOL PAGE ========== */

.tool-page {
    max-width: 960px;
    margin: 40px auto 0;
}

.tool-header {
    display: flex;
    gap: 36px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-logo {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.tool-meta h1 {
    margin-bottom: 0;
}

.tool-name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.bookmark-label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tool-link {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    font-weight: 500;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.tool-link:hover {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    transform: translateY(-1px);
}

.tool-socials {
    margin-top: 6px;
}

.tool-socials a {
    margin-right: 14px;
    font-size: 14px;
    color: #6b8f7a;
}

.tool-socials a:hover {
    color: #4b6f5b;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tool-developer {
    margin-top: 10px;
    font-size: 14px;
}

.tool-developer a {
    color: #4b6f5b;
    font-weight: 500;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.tool-developer a:hover {
    color: #1f7a4d;
    opacity: 0.9;
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 999px;

    background: rgba(5, 150, 105, 0.08);
    font-size: 13px;
    color: #2d6a4f;
}

.dev-badge a {
    color: #059669;
    font-weight: 600;
}

.dev-badge a:hover {
    opacity: 0.85;
}

/* ========== TOOL GUIDE ========== */

.tool-guide {
    max-width: 760px;
    margin: 40px auto 0;

    text-align: left;
    font-size: 16px;
    line-height: 1.9;

    color: #243b2f;
}

.tool-guide h2 {
    margin: 32px 0 14px;
    font-family: 'Syne', 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #059669;
    letter-spacing: -0.01em;
}

.tool-guide hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 36px 0;
}

.tool-guide ul {
    margin: 14px 0 20px 22px;
}

.tool-guide li {
    margin-bottom: 8px;
}

.tool-guide small {
    color: #6b7280;
}

.guide-image {
    margin: 28px 0;
    text-align: center;
}

.guide-image img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* =========================
   GUIDE LINKS (Video guide)
   ========================= */

.tool-guide a {
    color: #374151;
    font-weight: 500;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

/* arrow icon */
.tool-guide a::before {
    content: "▶";
    font-size: 11px;
    opacity: 0.6;
}

/* hover */
.tool-guide a:hover {
    color: #111827;
    text-decoration: underline;
    transform: translateX(2px);
}

/* ===== DARK MODE: Tool Page ===== */

body.dark .tool-header {
    background: rgba(18, 23, 20, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.08);
    backdrop-filter: blur(12px);
}

body.dark .tool-meta h1 {
    color: #ffffff;
}

body.dark .tool-guide {
    color: #cfd6d1;
}

body.dark .tool-guide hr {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark .tool-guide small {
    color: #9ca3af;
}

body.dark .tool-guide a {
    color: #d1d5db;
}

body.dark .tool-guide a:hover {
    color: #ffffff;
}

body.dark .tool-socials a {
    color: #9ca3af;
}

body.dark .tool-link {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;

    padding: 8px 14px;
    border-radius: 10px;
    border: none;

    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

body.dark .tool-link:hover {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-1px);
}

body.dark .tool-developer a {
    color: #9ca3af;
}

body.dark .tool-developer a:hover {
    color: #4ade80;
}

body.dark .dev-badge {
    background: rgba(52, 211, 153, 0.1);
    color: #d1fae5;
}

body.dark .dev-badge a {
    color: #34d399;
}
