/* ==========================================================================
   F76+ (Project Plus) Studio & Optimizer Stylesheet
   Theme: Appalachia Tactical Cyan (#00F0FF) & Phosphor Green (#22c55e)
   Invariants: Mobile iOS 16px zoom guard, CRT scanlines, Custom Sliders
   ========================================================================== */

/* Mobile iOS Safari Auto-Zoom Guard */
@media (max-width: 768px) {
    .pp-input,
    .pp-select,
    .pp-slider,
    .pp-textarea,
    input[type="text"],
    input[type="number"],
    input[type="range"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Custom Appalachian Tactical Cyan Select Chevron */
.pp-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300F0FF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem 1.25rem;
    padding-right: 2.75rem !important;
}

/* Custom Appalachian Tactical Cyan Range Sliders */
.pp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #0D121D;
    border: 1px solid rgba(0, 240, 255, 0.25);
    outline: none;
    transition: all 0.2s ease;
}

.pp-slider:focus {
    border-color: #00F0FF;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

.pp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00F0FF;
    cursor: pointer;
    border: 2px solid #07090E;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(0, 240, 255, 1);
}

.pp-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00F0FF;
    cursor: pointer;
    border: 2px solid #07090E;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* CRT Screen & Pip-Boy Canvas Scanlines */
.pipboy-screen-wrapper {
    position: relative;
    background: #060906;
    border: 2px solid #22c55e;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.pipboy-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.35) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.pipboy-flicker {
    animation: pipboy-flicker 0.15s infinite;
    opacity: 0.98;
}

@keyframes pipboy-flicker {
    0% { opacity: 0.975; }
    50% { opacity: 1.0; }
    100% { opacity: 0.98; }
}

.pipboy-glow {
    text-shadow: 0 0 6px currentColor;
}

/* Tab Navigation Buttons */
.pp-tab-btn {
    position: relative;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.pp-tab-btn.active {
    color: #00F0FF;
    border-bottom-color: #00F0FF;
    background: rgba(0, 240, 255, 0.08);
}

.pp-tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

/* Diff Viewer Styling */
.diff-container {
    font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.4;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow-x: auto;
}

.diff-line {
    display: flex;
    padding: 2px 8px;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-line-number {
    width: 3rem;
    flex-shrink: 0;
    color: #6b7280;
    user-select: none;
    text-align: right;
    padding-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 0.75rem;
}

.diff-line-content {
    flex: 1;
}

.diff-line.diff-add {
    background-color: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-left: 3px solid #22c55e;
}

.diff-line.diff-del {
    background-color: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
}

.diff-line.diff-mod {
    background-color: rgba(0, 240, 255, 0.12);
    color: #67e8f9;
    border-left: 3px solid #00F0FF;
}

.diff-line.diff-header {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-weight: bold;
    border-left: 3px solid #3b82f6;
}

/* Mod Card Drag & Toggle */
.mod-item-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mod-item-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.4);
}

.mod-item-card.is-active {
    border-color: rgba(0, 240, 255, 0.7);
    background: rgba(0, 240, 255, 0.03);
}

.mod-drag-handle {
    cursor: grab;
}

.mod-drag-handle:active {
    cursor: grabbing;
}

/* Preset Badge Styles */
.preset-badge {
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-badge:hover {
    transform: scale(1.02);
}

.preset-badge.selected {
    border-color: #00F0FF;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}
