/**
 * AXEVORA Story Studio — Design System & Admin Stylesheet
 * 
 * Dark Mode Theme matching AXEVORA identity:
 * - Canvas: #0b0f19
 * - Surface: #131b2e
 * - Surface Border: rgba(255, 255, 255, 0.08)
 * - Brand Accent: #38bdf8 (Sky Blue) & #818cf8 (Indigo)
 * - Success/Green: #10b981
 */

/* WordPress Admin Reset within our container */
.axevora-studio-wrap {
    margin: 20px 20px 0 2px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f1f5f9;
}

#axevora-story-studio-root {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
}

/* Header & Telemetry Bar */
.axevora-studio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.axevora-brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.axevora-telemetry-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tab Navigation */
.axevora-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    overflow-x: auto;
}

.axevora-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.axevora-tab-btn:hover {
    color: #f8fafc;
}

.axevora-tab-btn.active {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

/* Metric Cards */
.axevora-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.axevora-metric-card {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px;
}

.axevora-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.axevora-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #f8fafc;
}

/* Forms & Split Editor */
.axevora-split-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.axevora-editor-pane {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
}

.axevora-editor-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.axevora-form-control {
    width: 100%;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
    font-family: inherit;
}

.axevora-form-control:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.axevora-textarea {
    min-height: 280px;
    line-height: 1.6;
    resize: vertical;
}

/* Buttons */
.axevora-btn-primary {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.axevora-btn-primary:hover {
    background: #0369a1;
}

.axevora-btn-success {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.axevora-btn-success:hover {
    background: #047857;
}

.axevora-btn-secondary {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.axevora-btn-secondary:hover {
    background: #334155;
    color: #f8fafc;
}

/* Quality Gate Badges */
.axevora-badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.axevora-badge-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Frontend & In-Article Bilingual & Deal Styles */
.axevora-bilingual-wrapper {
    margin: 24px 0;
}

.axevora-lang-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.axevora-toggle-btn-group {
    display: flex;
    gap: 8px;
}

.axevora-lang-btn {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.axevora-lang-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
}

.axevora-play-tts-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

/* Affiliate Deals Grid */
.axevora-affiliate-section {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0;
}

.axevora-badge-tag {
    background: #f59e0b;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.axevora-affiliate-title {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin: 8px 0 4px 0;
}

.axevora-affiliate-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.axevora-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.axevora-deal-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.axevora-deal-img-wrapper {
    position: relative;
    height: 160px;
    background: #1e293b;
    overflow: hidden;
}

.axevora-deal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.axevora-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.axevora-deal-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.axevora-deal-name {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.axevora-deal-why {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.axevora-deal-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.axevora-deal-current-price {
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
}

.axevora-deal-orig-price {
    font-size: 13px;
    color: #64748b;
    text-decoration: line-through;
}

.axevora-deal-cta-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.axevora-deal-merchant {
    font-size: 11px;
    color: #64748b;
}

.axevora-deal-btn {
    background: #0284c7;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.axevora-deal-btn:hover {
    background: #0369a1;
}

.axevora-affiliate-disclosure {
    margin-top: 16px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}
