/* ═══════════════════════════════════════════
   TemasLink — Demo Sayfası Stilleri (demo.css)
   ═══════════════════════════════════════════ */

/* ── Demo Top Bar ── */
.demo-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6%;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
}

.demo-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-topbar-left a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color var(--transition);
}
.demo-topbar-left a:hover { color: var(--text-main); }

.demo-notice {
    font-size: 12px;
    color: var(--text-subtle);
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ── Demo Layout ── */
.demo-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 100vh;
    padding-top: 56px;
}

/* ── Editor Panel ── */
.editor-panel {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 56px);
}

.editor-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.editor-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.field-group {
    margin-bottom: 28px;
}

.field-group-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-subtle);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.field input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    transition: border-color var(--transition);
    outline: none;
}

.field input:focus {
    border-color: var(--border-hover);
}

.field input::placeholder {
    color: var(--text-subtle);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Photo upload */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.photo-preview {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}
.photo-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.photo-upload-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}
.photo-upload-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.photo-upload input[type="file"] {
    display: none;
}

.photo-info {
    font-size: 0.72rem;
    color: var(--text-subtle);
    margin-top: 4px;
}

/* Editor actions */
.editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ── Preview Panel ── */
.preview-panel {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: bottom 0.3s ease;
    z-index: 9999;
}
.toast.show { bottom: 24px; }

/* ── Responsive — Demo ── */
@media (max-width: 1024px) {
    .demo-page {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: relative;
        top: 0;
        height: auto;
        padding: 40px 20px;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .editor-panel {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .editor-panel { padding: 24px 16px; }
    .field-row { grid-template-columns: 1fr; }
    .demo-topbar { flex-direction: column; gap: 8px; padding: 10px 5%; }
    .demo-page { padding-top: 80px; }
}
