/* Link Boost page styles - Compact, Orange theme */

/* Override: Orange theme color */
.link-boost-page .platform-btn:hover {
    border-color: #F97316;
    color: var(--text);
}

.link-boost-page .platform-btn.active {
    border-color: #F97316;
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.link-boost-page input[type="text"]:focus,
.link-boost-page input[type="url"]:focus,
.link-boost-page input[type="number"]:focus,
.link-boost-page textarea:focus,
.link-boost-page select:focus {
    outline: none;
    border-color: #F97316;
}

.link-boost-page .check-btn:hover {
    background: var(--bg-secondary);
    border-color: #F97316;
}

.link-boost-page .actions .btn-primary {
    background: #F97316;
}

.link-boost-page .actions .btn-primary:hover {
    background: #EA580C;
}

.link-boost-page .modal-actions .btn.primary,
.link-boost-modal .modal-actions .btn.primary,
.link-boost-modal .btn.primary {
    background: #F97316 !important;
}

.link-boost-page .modal-actions .btn.primary:hover,
.link-boost-modal .modal-actions .btn.primary:hover,
.link-boost-modal .btn.primary:hover {
    background: #EA580C !important;
}

.link-boost-page .success-sheet .cta .btn.primary {
    background: #F97316;
}

.link-boost-page .success-sheet .cta .btn.primary:hover {
    background: #EA580C;
}

/* Page Layout - Match video page exactly */
.link-boost-page {
    padding: 0;
}

.link-boost-page .ad-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-sizing: border-box;
}

.link-boost-page .page-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.link-boost-page .page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
}

.link-boost-page .page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   Smart Help Button - Link Boost Theme (Orange)
   =================================== */
.smart-help-btn-inline.theme-boost-link {
    border-color: #F97316;
}

.smart-help-modal.theme-boost-link {
    border-color: #F97316;
}

.smart-help-modal.theme-boost-link::before {
    border-top-color: #F97316;
}

.smart-help-modal.theme-boost-link .smart-help-title {
    color: #F97316;
}

.smart-help-modal.theme-boost-link .smart-help-tips li::before {
    color: #F97316;
}

.smart-help-modal.theme-boost-link .smart-help-close:hover {
    background: #F97316;
    border-color: #F97316;
}

/* Form Styles */
.link-boost-page .ad-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.link-boost-page .ad-form .form-row.gap-before {
    margin-top: var(--space-md);
}

.link-boost-page .ad-form label {
    font-size: var(--font-sm);
    color: var(--text);
    font-weight: 600;
}

.link-boost-page .ad-form label .optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 11px;
}

.link-boost-page .ad-form input[type="text"],
.link-boost-page .ad-form input[type="url"],
.link-boost-page .ad-form input[type="number"],
.link-boost-page .ad-form textarea,
.link-boost-page .ad-form select {
    height: 40px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
    font-size: var(--font-sm);
    transition: border-color var(--transition-fast);
}

.link-boost-page .ad-form textarea {
    height: 80px;
    padding: var(--space-sm);
    resize: vertical;
    font-family: inherit;
}

.link-boost-page .ad-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8A29E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Media Upload */
.link-boost-page .media-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.link-boost-page .media-upload-area:hover {
    border-color: #F97316;
    background: rgba(249, 115, 22, 0.05);
}

.link-boost-page .media-upload-area.has-file {
    border-style: solid;
    border-color: #F97316;
}

.link-boost-page .media-upload-area .upload-icon {
    font-size: 32px;
    opacity: 0.6;
}

.link-boost-page .media-upload-area .upload-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-align: center;
}

.link-boost-page .media-upload-area .upload-hint {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.link-boost-page .media-upload-area input[type="file"] {
    display: none;
}

/* Media Preview */
.link-boost-page .media-preview {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 6px;
}

.link-boost-page .media-preview .preview-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.link-boost-page .media-preview .preview-details {
    flex: 1;
    min-width: 0;
}

.link-boost-page .media-preview .preview-name {
    font-weight: 600;
    font-size: var(--font-xs);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-boost-page .media-preview .preview-size {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.link-boost-page .media-preview .preview-remove {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.link-boost-page .media-preview .preview-remove:hover {
    background: rgba(249, 115, 22, 0.2);
}

/* Inline Row */
.link-boost-page .inline-row {
    display: flex;
    gap: var(--space-sm);
}

.link-boost-page .inline-row .form-row {
    flex: 1;
    margin-bottom: 0;
}

.link-boost-page .inline-row input[type="url"] {
    flex: 1;
}

/* Check/Verify Button */
.link-boost-page .check-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.link-boost-page .check-btn:hover {
    background: var(--bg-secondary);
    border-color: #F97316;
}

/* Status Text */
.link-boost-page .status-text {
    font-size: var(--font-xs);
    margin-top: 4px;
}

.link-boost-page .status-text:empty {
    display: none;
}

.link-boost-page .status-text.ok {
    color: #22C55E;
}

.link-boost-page .status-text.error {
    color: #EF4444;
}

.link-boost-page .status-text.loading {
    color: var(--text-secondary);
}

/* Cost Rows */
.link-boost-page .cost-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.link-boost-page .cost-rows .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.link-boost-page .cost-rows .row.total {
    font-weight: 700;
    color: var(--text);
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--border);
}

.link-boost-page .cost-rows .row .highlight {
    color: #FFFFFF;
    font-weight: 600;
}

/* Actions */
.link-boost-page .actions {
    display: flex;
    justify-content: stretch;
    margin-top: var(--space-md);
}

.link-boost-page .actions .btn-primary {
    height: 48px;
    padding: 0 var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    background: #F97316;
    color: #fff;
    font-weight: 700;
    font-size: var(--font-sm);
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
}

.link-boost-page .actions .btn-primary:hover {
    background: #EA580C;
    transform: translateY(-1px);
}

.link-boost-page .actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Notice */
.link-boost-page .notice {
    margin-top: var(--space-sm);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.link-boost-page .notice .warning-icon {
    color: #F97316;
}

/* Balance Row */
.link-boost-page .balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.link-boost-page .balance-row .balance-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.link-boost-page .balance-row .balance-value {
    font-size: var(--font-sm);
    font-weight: 700;
    color: #F97316;
}

/* Inline Warning */
.link-boost-page .inline-warning {
    font-size: 11px;
    color: var(--error, #EF4444);
    margin-top: 4px;
    display: none;
}

.link-boost-page .inline-warning.visible {
    display: block;
}

/* Status Text */
.link-boost-page .status-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.link-boost-page .status-text.ok {
    color: var(--success);
}

.link-boost-page .status-text.error {
    color: var(--error);
}

/* Character Counter */
.link-boost-page .char-counter {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 2px;
}

.link-boost-page .char-counter.warn {
    color: #F97316;
}

.link-boost-page .char-counter.error {
    color: var(--error);
}

/* Success Sheet Modal */
.link-boost-page~.modal-overlay .success-sheet,
.modal-overlay .success-sheet {
    text-align: center;
    padding: 16px 8px;
}

.modal-overlay .success-sheet .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-overlay .success-sheet .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-overlay .success-sheet .desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-overlay .success-sheet .cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-overlay .success-sheet .cta .btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--bg-tertiary, #3f3f46);
    color: var(--text-primary);
}

.modal-overlay .success-sheet .cta .btn.primary {
    background: #F97316;
    color: white;
}

.modal-overlay .success-sheet .cta .btn.primary:hover {
    background: #EA580C;
}

/* Modal orange theme for link boosts */
.link-boost-page~.modal-overlay .modal .btn.primary,
.link-boost-page~.modal-overlay .modal .btn:not(.cancel) {
    background: #F97316;
    color: white;
}

.link-boost-page~.modal-overlay .modal .btn.primary:hover,
.link-boost-page~.modal-overlay .modal .btn:not(.cancel):hover {
    background: #EA580C;
}

/* Translation Toggle */
.link-boost-page .translation-toggle-row {
    margin-bottom: var(--space-md);
}

.link-boost-page .translation-toggle-container {
    display: flex;
    gap: 8px;
}

.link-boost-page .translation-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.link-boost-page .translation-toggle-btn:hover {
    border-color: var(--text-secondary);
}

.link-boost-page .translation-toggle-btn.active {
    border-color: #F97316;
    background: rgba(249, 115, 22, 0.1);
    color: #F97316;
}

.link-boost-page .translation-toggle-btn .toggle-icon {
    font-size: 16px;
}

.link-boost-page .translation-toggle-btn .toggle-label {
    font-weight: 600;
}

.link-boost-page .translation-info {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.link-boost-page .translation-info .info-icon {
    flex-shrink: 0;
    font-size: 12px;
}