/* ===========================
   OrbitX Shared Styles
   =========================== */

/* 1. Base Reset & Typography (all pages) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

.logo {
    height: 27px;
    display: block;
}

.logo-tagline {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. App Layout (features, content, polls, emails) */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 3. Two-Panel Layout (features, content, polls) */
.left-panel {
    width: 380px;
    min-width: 380px;
    background: #0a0a0a;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.left-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.panel-header {
    padding: 24px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-row {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #222;
    background: #0a0a0a;
    flex-shrink: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #f4b391;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #111;
}

.preview-header {
    background: #1a1a1a;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.preview-header svg {
    width: 18px;
    height: 18px;
    color: #f4b391;
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #f4b391;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    justify-content: center;
}

.content-counter {
    margin-left: auto;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* 4. Form Controls (content, polls, emails) */
.field-label {
    display: block;
    color: #f4b391;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.dropdown {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23f4b391' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.dropdown:hover {
    border-color: #f4b391;
}

.dropdown:focus {
    outline: none;
    border-color: #f4b391;
    box-shadow: 0 0 0 2px rgba(244, 179, 145, 0.1);
}

.dropdown option {
    background: #111;
    color: #fff;
    padding: 10px;
}

.dropdown optgroup {
    background: #0a0a0a;
    color: #f4b391;
    font-weight: 600;
    font-style: normal;
}

.section-divider {
    height: 1px;
    background: #222;
    margin: 20px 0;
}

/* 5. Structured Content Blocks (content, polls) */
.struct-block {
    margin-bottom: 24px;
}

.struct-label {
    font-size: 10px;
    font-weight: 700;
    color: #f4b391;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.struct-topic-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(244, 179, 145, 0.15) 0%, rgba(244, 179, 145, 0.05) 100%);
    border: 1px solid rgba(244, 179, 145, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #f4b391;
}

.struct-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-top: 8px;
}

.struct-angle {
    background: #111;
    border-left: 3px solid #f4b391;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #ccc;
    font-style: italic;
    line-height: 1.5;
}

.struct-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.struct-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

.struct-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #f4b391;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.struct-cta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.struct-cta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.struct-cta-list li svg {
    width: 14px;
    height: 14px;
    color: #f4b391;
    flex-shrink: 0;
}

/* 6. Copy Button (content, polls) */
.copy-btn {
    background: #FFF5F0;
    border: 1px solid #f4b391;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #c87456;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #f4b391;
    color: #fff;
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.copy-btn.copied {
    background: #48BB78;
    border-color: #48BB78;
    color: #fff;
}

/* 7. Navigation Arrows (content, polls, emails) */
.nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 10;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.nav-arrow:hover {
    background: rgba(244, 179, 145, 0.2);
    border-color: #f4b391;
    color: #f4b391;
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* 8. Scrollbar (features, content, polls) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 9. Header Nav Link (features, content, polls, emails) */
.header-nav-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.header-nav-link:hover {
    color: #f4b391;
    border-color: #f4b391;
    background: rgba(244, 179, 145, 0.08);
}
