﻿/* PNG -> WEBP tool page styles (page-specific) - mapped to existing Bulma HTML */

:root {
    --primary-600: #0f766e;
    --accent-400: #38bdf8;
    --muted: #64748b;
    --bg: #ffffff;
    --panel: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
}

/* --- Add redesign classes used by rewritten HTML --- */
.tool-hero {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-400) 100%);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    color: #fff
}

.tool-hero .tool-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .8rem;
    color: #fff;
    margin-bottom: 1rem
}

.tool-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.25;
    margin-bottom: .5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

.tool-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto
}

.tool-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem
}

.calc-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.25rem
}

.calc-card .drop-zone {
    margin-bottom: 1rem
}

.convert-btn,
.calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-400));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s
}

.convert-btn:hover:not(:disabled),
.calc-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12)
}

.convert-btn:disabled,
.calc-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0
}

@media(max-width:600px) {
    .results-grid {
        grid-template-columns: 1fr
    }
}

/* end added redesign classes */

/* Hero: styled via .tool-hero only; no gradient on the People Also Use section */

/* Drop zone: override inline styles and present modern look */
#dropZone,
.drop-zone {
    border: 2.5px dashed rgba(15, 113, 110, 0.16) !important;
    border-radius: 12px !important;
    padding: 2.1rem 1.25rem !important;
    text-align: center !important;
    cursor: pointer;
    position: relative;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
    margin-bottom: 1rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

#dropZone:hover,
.drop-zone:hover {
    border-color: var(--accent-400) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateY(-2px)
}

#dropZone p,
.drop-zone p {
    margin: .35rem 0;
    color: var(--text)
}

#dropZone p:first-child,
.drop-zone p:first-child {
    font-size: 2rem;
    margin-bottom: .5rem
}

.drop-zone-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: .25rem
}

.drop-zone-subtitle {
    color: var(--muted);
    font-size: .95rem
}

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .6rem .85rem;
    font-size: .95rem;
    color: var(--text)
}

.file-item .meta {
    display: flex;
    gap: .6rem;
    align-items: center
}

.file-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem
}

.form-field label {
    font-weight: 700;
    margin-bottom: .35rem;
    display: block
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: .85rem 1rem;
    font-size: .95rem;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem
}

.steps-box {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.steps-box li {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    font-size: .98rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media(max-width:800px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-pill {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.feature-pill h3 {
    margin-bottom: .6rem;
    font-size: 1.05rem;
    color: var(--text);
}

.feature-pill p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: .6rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.related-list li {
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.55;
}

.related-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-600);
}



.convert-btn {
    background: linear-gradient(90deg, var(--primary-600), var(--accent-400));
    color: #fff;
    border: none;
    padding: .8rem 1rem;
    border-radius: 8px
}

/* Progress */
.progress-bar {
    margin-top: .75rem
}

.progress-fill {
    background: #e6f6ff;
    border-radius: 999px;
    height: 8px;
    overflow: hidden
}

.progress-fill-inner {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-400));
    width: 0%;
    transition: width .25s ease
}

/* Results: grid mapping for Bulma columns -> results-grid */
#results .columns.is-multiline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem
}

#results .columns.is-multiline .column {
    display: block
}

.result-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    width: 100%
}

.result-card img {
    width: 100%;
    height: 140px;
    object-fit: cover
}

.result-card-body {
    padding: .6rem
}

.result-card-body p {
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* Related tools */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: .75rem
}

.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    text-decoration: none;
    color: var(--text);
    text-align: left;
    gap: 0.65rem;
}

.related-tools-section {
    margin: 2rem 0;
}

.related-tools-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.icon-wrapper {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
}

.tool-title {
    font-size: 1rem;
    font-weight: 700;
}

.tool-desc {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.35;
    margin-top: .25rem;
}

.tool-card .icon {
    margin-bottom: .35rem;
}

.tool-card p {
    margin: 0;
    font-weight: 600;
}

/* Content headings accent */
.content-section h2.title.is-4 {
    padding-left: .9rem;
    border-left: 3px solid var(--primary-600)
}

/* Footer tweaks */
.footer .accuracy-note {
    opacity: .95
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media (max-width:720px) {
    .form-grid {
        flex-direction: column
    }

    .section:first-of-type {
        padding: 2rem 0
    }
}

/* end mapping styles */
/* ── Footer ── */
#footer-root {
  background: #000000;
  margin-top: 3rem;
}
.site-footer {
  background: #000000 !important;
  color: #94a3b8 !important;
}
.site-footer a { color: #94a3b8 !important; }
.site-footer a:hover { color: #fff !important; }
