/* NR Social Embed — Dashboard Styles */
/* Dark theme with orange #FF6600 accent */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    --border: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #999;
    --text-muted: #666;
    --accent: #FF6600;
    --accent-hover: #e55b00;
    --accent-glow: rgba(255, 102, 0, 0.15);
    --success: #22c55e;
    --error: #ef4444;
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo h1 span {
    color: var(--accent);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
    margin-left: 40px;
}

/* Main */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.card-title .icon {
    color: var(--accent);
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--accent);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-copy {
    background: var(--bg-input);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-copy:hover {
    background: var(--accent);
    color: #fff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.btn-small:hover {
    border-color: var(--accent);
}

.btn-icon {
    font-size: 16px;
}

/* Result */
.result {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.result h3 {
    color: var(--success);
    font-size: 16px;
    margin-bottom: 16px;
}

.embed-code-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.embed-code {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--accent);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.embed-code-wrapper .btn-copy {
    position: absolute;
    top: 8px;
    right: 8px;
}

.preview-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.preview-frame {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
    .header-inner {
        padding: 0 16px;
    }

    .main {
        padding: 16px;
    }

    .card {
        padding: 20px 16px;
    }

    .subtitle {
        margin-left: 0;
    }
}
