/* Free Tools hub + tool pages (iLovePDF layout, Luxoret estetika) */

.tools-hub {
    max-width: 1540px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Hero */
.tools-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}
.tools-hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--text-primary, #1f1f1f);
}
.tools-hero p {
    font-size: 17px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Filter pills */
.tools-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.tools-pill {
    padding: 9px 20px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.tools-pill:hover { border-color: #cbd5e1; background: #f8fafc; }
.tools-pill.active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}
[data-theme="dark"] .tools-pill { background: #3a3a3c; border-color: #48484a; color: #e5e5ea; }
[data-theme="dark"] .tools-pill.active { background: #fff; border-color: #fff; color: #1f1f1f; }

/* Grid kartica */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 1200px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    padding: 20px 22px;
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.tool-card:hover {
    border-color: #d9dfe7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
[data-theme="dark"] .tool-card { background: #3a3a3c; border-color: #48484a; }
[data-theme="dark"] .tool-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* Gornji red kartice: ikonica levo, naslov desno */
.tool-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* iLovePDF stil: cista ikonica u boji kategorije, bez pozadinskog kvadrata */
.tool-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card-icon svg { width: 52px; height: 52px; }

.tool-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #1f1f1f);
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .tool-card-name { color: #f5f5f7; }
.tool-card-name .ext-arrow { width: 14px; height: 14px; opacity: 0.5; }

.tool-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
}
[data-theme="dark"] .tool-card-desc { color: #98989d; }

/* ─ Tool page (pojedinacan alat) ─ */
.tool-page {
    max-width: 1360px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.tool-page-hero { text-align: center; margin-bottom: 32px; }
.tool-page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.tool-page-hero p { font-size: 16px; color: #64748b; margin: 0; }

.tool-trust {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 16px 0 0;
    padding: 0;
}
.tool-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}
.tool-trust li svg { width: 14px; height: 14px; color: #16a34a; flex: none; }

.tool-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    background: #fafbfc;
    width: 100%;
    max-width: 1300px;
    min-height: 320px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.18s;
}
.tool-dropzone:hover, .tool-dropzone.dragover {
    border-color: #e5322d;
    background: #fdf3f2;
}
[data-theme="dark"] .tool-dropzone { background: #3a3a3c; border-color: #48484a; }

.tool-dropzone-protect {
    position: absolute;
    top: 16px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #64748b;
    text-align: left;
}
.tool-dropzone-protect svg { width: 16px; height: 16px; color: #16a34a; flex: none; }

.tool-dropzone-center { display: flex; flex-direction: column; align-items: center; }
.tool-dropzone-hint { font-size: 14px; color: #64748b; margin: 16px 0 0; }

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e5322d;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.tool-btn svg { width: 20px; height: 20px; flex: none; }
.tool-btn:hover { background: #c81e1a; transform: translateY(-1px); }
.tool-btn:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

.tool-note { text-align: center; font-size: 12.5px; color: #94a3b8; margin-top: 14px; }

@media (max-width: 640px) {
    .tools-hero h1 { font-size: 28px; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-page-hero h1 { font-size: 26px; }
}

/* Coming soon cards (server or AI backed tools, not yet live) */
.tool-card-soon { cursor: default; opacity: .6; pointer-events: none; }
.tool-card-soon:hover { transform: none; box-shadow: none; }
.tool-soon-badge {
    display: inline-block; margin-left: 6px; padding: 1px 8px;
    font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle;
    color: #e5322d; background: rgba(229, 50, 45, .1);
    border: 1px solid rgba(229, 50, 45, .3); border-radius: 999px;
}

/* Toolbox: bez sidebara, puna radna povrsina (kao homepage-layout) */
.app-layout.toolbox-layout .sidebar { display: none; }
.app-layout.toolbox-layout .main-content { margin-left: 0; min-width: 0; }
