/* ===== Generator Sabloane HTML - seotoolpro.ro =====
   Tema: Light + accente Teal Mint (asortat la SEO Tool Pro)
*/

.htg-app {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}

.htg-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 22px;
}

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

/* === Editor === */
.htg-editor {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    max-height: 80vh;
    overflow-y: auto;
}

.htg-section { margin-bottom: 22px; }
.htg-section:last-child { margin-bottom: 0; }

.htg-section-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0f172a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #14b8a6;
    display: inline-block;
}

.htg-field { margin-bottom: 12px; }
.htg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.htg-field input[type="text"],
.htg-field input[type="number"],
.htg-field textarea,
.htg-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
}
.htg-field input:focus,
.htg-field textarea:focus,
.htg-field select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}

.htg-page-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.htg-ptype {
    padding: 10px 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.htg-ptype:hover { border-color: #14b8a6; color: #0f766e; }
.htg-ptype.active {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(20, 184, 166, .3);
}

.htg-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.htg-preset {
    padding: 12px 6px;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: transform .15s;
}
.htg-preset:hover { transform: translateY(-2px); }

.htg-colors-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.htg-color { text-align: center; }
.htg-color label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.htg-color input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.htg-list { margin-bottom: 8px; }
.htg-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 6px;
}
.htg-nav-item input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #0f172a;
    padding: 4px 6px;
}
.htg-nav-item input:focus { outline: none; background: #f0fdfa; border-radius: 4px; }
.htg-nav-item .htg-nav-href {
    flex: 1;
    color: #64748b;
    font-family: monospace;
    font-size: 12px;
}
.htg-nav-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}
.htg-nav-remove:hover { background: #fecaca; }

.htg-row-inline {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 6px;
}
.htg-row-inline input {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}
.htg-mini-btn {
    padding: 8px 12px;
    background: #14b8a6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.htg-mini-btn:hover { background: #0d9488; }

.htg-radio-row {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.htg-radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    font-weight: 500;
}

/* === Preview === */
.htg-preview-col { display: flex; flex-direction: column; gap: 12px; }

.htg-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.htg-preview-tabs { display: flex; gap: 4px; }
.htg-tab {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.htg-tab:hover { background: #ffffff; color: #0f172a; }
.htg-tab.active {
    background: #ffffff;
    color: #0f766e;
    border-color: #5eead4;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.htg-preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.htg-action-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
}
.htg-action-btn:hover { transform: translateY(-1px); }
.htg-btn-secondary { background: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
.htg-btn-secondary:hover { border-color: #14b8a6; color: #0f766e; }
.htg-btn-primary {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(20, 184, 166, .3);
}
.htg-btn-primary:hover { box-shadow: 0 6px 16px rgba(20, 184, 166, .4); }

.htg-preview-frame {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}
.htg-preview-frame iframe {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 700px;
    transition: width .25s;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
}
.htg-preview-frame.view-tablet iframe { width: 768px; max-width: 100%; }
.htg-preview-frame.view-mobile iframe { width: 380px; max-width: 100%; }

/* Cod sursa - GitHub light style (in loc de negru) */
.htg-code-block {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.htg-code-block summary {
    padding: 12px 16px;
    color: #24292f;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.htg-code-block summary:hover { background: #f0fdfa; color: #0f766e; }
.htg-code-block[open] summary { border-bottom: 1px solid #e5e7eb; }
.htg-code-block pre {
    margin: 0;
    padding: 16px;
    background: #fafbfc;
    color: #24292f;
    font-size: 12px;
    line-height: 1.5;
    max-height: 400px;
    overflow: auto;
}

/* Instructiuni - schimb din portocaliu cald in mint (asortat) */
.htg-instructiuni {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border: 1px solid #5eead4;
    border-radius: 14px;
    padding: 18px 22px;
    color: #134e4a;
}
.htg-instructiuni h3 {
    margin: 0 0 10px;
    color: #115e59;
    font-size: 16px;
    font-weight: 700;
}
.htg-instructiuni ol { margin: 0; padding-left: 22px; line-height: 1.7; font-size: 14px; }
.htg-instructiuni code {
    background: rgba(20, 184, 166, .15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #0f766e;
    font-family: monospace;
}

/* === Toast === */
.htg-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform .3s;
}
.htg-toast.show { transform: translateX(0); }
.htg-toast.success { background: linear-gradient(135deg, #0d9488, #14b8a6); }

/* Special section dynamic fields */
#htg-special-fields .htg-field { margin-bottom: 10px; }