/* Premium Toolz — mobile navigation & upgrade styles */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.5rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    color: #1f2937;
    line-height: 1;
}

.menu-toggle:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.breadcrumbs {
    padding: 0.5rem 0 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.crop-workspace {
    position: relative;
    max-width: 100%;
    margin: 1rem auto;
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.crop-workspace.active {
    display: block;
}

.crop-canvas-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.crop-canvas-wrap canvas {
    max-width: 100%;
    display: block;
}

.crop-overlay {
    position: absolute;
    border: 2px dashed #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
    box-sizing: border-box;
}

.score-meter {
    height: 14px;
    background: #e5e7eb;
    border-radius: 7px;
    overflow: hidden;
    margin: 1rem 0;
}

.score-meter-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.5s ease;
}

.score-human { background: linear-gradient(90deg, #10b981, #34d399); }
.score-mixed { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.score-ai { background: linear-gradient(90deg, #ef4444, #f87171); }

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preset-row button {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.preset-row button.active,
.preset-row button:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.text-area-tool {
    width: 100%;
    min-height: 220px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.text-area-tool:focus {
    outline: none;
    border-color: #2563eb;
}

.result-panel {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.size-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.size-box {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.size-box strong {
    display: block;
    font-size: 1.25rem;
    color: #2563eb;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar .container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1.25rem;
    }

    .size-compare {
        grid-template-columns: 1fr;
    }
}
