/* ═══════════════════════════════════════════════════
   Cleveo Tools — Shared CSS
   ═══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.tool-page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ── Breadcrumb ── */
.tool-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}
.tool-breadcrumb a { color: #007bff; text-decoration: none; }
.tool-breadcrumb a:hover { text-decoration: underline; }

/* ── Header ── */
.tool-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.tool-page-icon { font-size: 3rem; line-height: 1; }
.tool-page-header h1 { font-size: 1.8rem; font-weight: 800; color: #1a1a2e; margin: 0 0 4px; }
.tool-page-header p  { color: #666; margin: 0; font-size: 0.95rem; }

/* ── Limit Bar ── */
.tool-limit-bar {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 24px;
}
.tool-limit-bar a { color: #007bff; font-weight: 600; }

/* ── Alerts ── */
.tool-alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
.tool-alert-error   { background: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }
.tool-alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }

/* ── Dropzone ── */
.tool-dropzone {
    border: 2.5px dashed #c0cfe0;
    border-radius: 16px;
    background: #f8fbff;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.tool-dropzone:hover,
.tool-dropzone.dragover { border-color: #007bff; background: #eef5ff; }
.tool-dropzone-icon { font-size: 3rem; margin-bottom: 12px; }
.tool-dropzone h3   { font-size: 1.2rem; color: #2c3e50; margin: 0 0 6px; }
.tool-dropzone p    { color: #888; margin: 0 0 6px; font-size: 14px; }
.tool-dropzone-hint { font-size: 12px !important; color: #aaa !important; }

.tool-select-btn {
    margin-top: 16px;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tool-select-btn:hover { background: #0056b3; }

/* ── Preview Grid ── */
.tool-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.tool-preview-item { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; text-align: center; }
.tool-preview-item img { width: 100%; height: 100px; object-fit: cover; }
.tool-preview-item span {
    display: block; padding: 4px 6px; font-size: 11px; color: #666;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── File Selected ── */
.tool-file-selected {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

/* ── Buttons ── */
.tool-convert-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white; border: none;
    padding: 13px 30px; border-radius: 9px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tool-convert-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,123,255,0.35); }
.tool-convert-btn:disabled { background: #aaa; cursor: not-allowed; transform: none; box-shadow: none; }

.tool-clear-btn {
    background: white; border: 1px solid #ddd;
    padding: 12px 20px; border-radius: 9px;
    font-size: 14px; cursor: pointer; color: #666;
    transition: background 0.2s;
}
.tool-clear-btn:hover { background: #f5f5f5; }

.tool-download-btn {
    display: inline-block; background: #28a745; color: white;
    padding: 12px 28px; border-radius: 9px; text-decoration: none;
    font-weight: 700; font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tool-download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,167,69,0.35); }

/* ── Limit Reached ── */
.tool-limit-reached {
    background: #fff3cd; border: 1px solid #ffc107;
    border-radius: 12px; padding: 30px; text-align: center; margin-bottom: 30px;
}
.tool-limit-reached h3 { color: #856404; margin: 0 0 10px; }
.tool-limit-reached p  { color: #856404; margin: 0 0 20px; }
.tool-pro-upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white; padding: 13px 28px; border-radius: 9px;
    text-decoration: none; font-weight: 700; font-size: 15px;
}

/* ── Info Grid ── */
.tool-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin-top: 40px;
}
.tool-info-box { background: #f8f9fa; border-radius: 10px; padding: 16px; font-size: 14px; color: #555; }
.tool-info-box strong { display: block; color: #2c3e50; margin-bottom: 6px; font-size: 14px; }

/* ── AI Tool ── */
.tool-ai-result {
    background: linear-gradient(135deg, #faf5ff, #fff);
    border: 1px solid #d8b4fe; border-radius: 12px;
    padding: 24px; margin-bottom: 24px;
    font-size: 15px; line-height: 1.7; color: #2c3e50; white-space: pre-wrap;
}

/* ── Tools Hero ── */
.tools-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white; padding: 60px 20px 50px; text-align: center;
}
.tools-hero-inner { max-width: 700px; margin: 0 auto; }
.tools-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white; padding: 5px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.tools-hero h1 { font-size: 2.2rem; margin: 10px 0 14px; }
.tools-hero p  { font-size: 1.1rem; opacity: 0.85; margin-bottom: 24px; }
.tools-usage-bar {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 24px; border-radius: 30px; font-size: 14px;
}
.tools-usage-pro { background: rgba(39,174,96,0.3); border-color: rgba(39,174,96,0.5); }

/* ── Tools Section ── */
.tools-section { max-width: 1100px; margin: 0 auto; padding: 50px 20px; }
.tools-section-title {
    font-size: 1.3rem; font-weight: 700; color: #2c3e50;
    margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.tool-card {
    background: white; border: 1px solid #e8ecef; border-radius: 14px;
    padding: 26px 22px; text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); border-color: #007bff; }
.tool-card-ai { border-color: #e8d5ff; background: linear-gradient(135deg, #faf5ff, #fff); }
.tool-card-ai:hover { border-color: #9b59b6; box-shadow: 0 12px 35px rgba(155,89,182,0.15); }
.tool-card-icon { font-size: 2.2rem; margin-bottom: 12px; }
.tool-card h3 { font-size: 1rem; font-weight: 700; color: #2c3e50; margin: 0 0 6px; }
.tool-card p  { font-size: 0.875rem; color: #666; margin: 0 0 16px; line-height: 1.5; flex: 1; }
.tool-badge-free { display: inline-block; background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; align-self: flex-start; }
.tool-badge      { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; align-self: flex-start; }
.tool-badge-blue { background: #cce5ff; color: #004085; }
.tool-badge-ai   { background: #e8d5ff; color: #5b21b6; }

/* ── Pro Banner ── */
.tools-pro-banner { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 40px 20px; margin-top: 20px; }
.tools-pro-inner  { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.tools-pro-inner h2 { margin: 0 0 6px; font-size: 1.5rem; }
.tools-pro-inner p  { margin: 0; opacity: 0.85; }
.tools-pro-price    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tools-pro-amount   { font-size: 2rem; font-weight: 800; }
.tools-pro-period   { font-size: 1rem; opacity: 0.8; }
.tools-pro-btn {
    background: white; color: #764ba2; padding: 12px 28px;
    border-radius: 8px; text-decoration: none; font-weight: 700;
    margin-left: 16px; transition: transform 0.2s;
}
.tools-pro-btn:hover { transform: scale(1.05); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .tools-hero h1 { font-size: 1.6rem; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .tools-pro-inner { text-align: center; justify-content: center; }
    .tools-pro-btn { margin-left: 0; }
    .tool-page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tool-page-icon { font-size: 2rem; }
    .tool-page-header h1 { font-size: 1.4rem; }
    .tool-dropzone { padding: 30px 16px; }
    .tool-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .tools-grid { grid-template-columns: 1fr; }
}
