/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE ===== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.site-header {
    background: #111;
    color: #fff;
    padding: 15px;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
}

.site-title {
    font-size: 22px;
}

.site-nav {
    margin-top: 8px;
}

.site-nav a {
    color: #fff;
    margin-right: 12px;
    font-size: 14px;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

/* ===== HERO / TOOL HERO ===== */
.hero, .tool-hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h2, .tool-hero h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.tool-hero p, .hero p {
    font-size: 15px;
    color: #555;
}

/* ===== TOOLS GRID ===== */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.tool-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.tool-card p {
    font-size: 14px;
    margin-bottom: 10px;
}

.tool-card a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

/* ===== TRUST / SEO CONTENT ===== */
.trust ul, .seo-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.seo-content {
    margin-top: 30px;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #666;
}

/* =====================================================
   IMAGE COMPRESSOR – DROP ZONE
===================================================== */

.drop-zone {
    border: 2px dashed #ccc;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.drop-zone:hover {
    border-color: #007bff;
    background: #f4f9ff;
}

.drop-zone.dragover {
    border-color: #007bff;
    background: #eef6ff;
}

/* ===== PREVIEW INSIDE DROP ZONE ===== */

.preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
}

.preview-info {
    font-size: 14px;
    line-height: 1.4;
}

.preview-info strong {
    display: block;
    font-weight: 600;
    color: #222;
}

.preview-info span {
    font-size: 13px;
    color: #666;
}

/* Hint text after preview */
.preview-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #007bff;
}

/* ===== TOOL UI ===== */
.tool-ui {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-ui label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* ===== UNIVERSAL FORM ELEMENTS ===== */
.tool-ui input[type="text"],
.tool-ui input[type="email"],
.tool-ui textarea,
.tool-ui input[type="number"],
.tool-ui select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.tool-ui input:focus,
.tool-ui textarea:focus,
.tool-ui select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* ===== UNIVERSAL TOOL BUTTONS ===== */
.tool-ui button {
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

.tool-ui button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.tool-ui button:active {
    transform: translateY(0);
}

/* ===== MULTI BUTTON GROUP ===== */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.button-group button {
    flex: 1;
    min-width: 80px;
}

/* ===== PROGRESS BAR ===== */
progress {
    height: 16px;
    border-radius: 6px;
    overflow: hidden;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 480px) {
    .preview-item img {
        width: 65px;
        height: 65px;
    }

    .tool-ui button,
    .tool-ui input,
    .tool-ui select {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ===== GRID BREAKPOINTS ===== */
@media (min-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-hero h1 {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tool-hero h1 {
        font-size: 32px;
    }
}
