/* Lens tab styles */

.lens-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    min-height: 500px;
}

.lens-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.lens-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lens-field label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lens-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lens-field-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.lens-input-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lens-input-hint {
    font-size: 10px;
    color: var(--text-faint);
    padding-left: 2px;
}

/* Preset buttons */
.lens-preset-row {
    display: flex;
    gap: 6px;
}

.lens-preset-btn {
    flex: 1;
    padding: 8px 10px;
    background: #1e1e35;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.lens-preset-btn:hover {
    background: #2a2a45;
    color: var(--text);
}
.lens-preset-btn.active {
    background: rgba(124, 131, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Slider */
.lens-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
}
.lens-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.lens-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lens-slider-row .lens-slider { flex: 1; }
.lens-slider-value {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 70px;
    text-align: right;
}

/* Select fields */
.lens-field select.input-field {
    cursor: pointer;
}

/* Actions */
.lens-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.lens-actions .btn { flex: 1; }

.lens-status {
    font-size: 13px;
    color: var(--text-dim);
    min-height: 20px;
}

/* Render area */
.lens-render-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
}
.lens-render-area img {
    max-width: 100%;
    max-height: 720px;
    display: block;
    cursor: pointer;
    transition: filter 1s ease-out;
}
.lens-render-area img.fade-in {
    filter: brightness(1) !important;
}

/* Render toolbar */
.lens-render-toolbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}
.lens-render-info {
    font-size: 12px;
    color: var(--text-dim);
}

/* Year countdown */
.lens-year-countdown {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fullscreen modal */
#lensFullscreenModal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 9999;
    flex-direction: column;
}
#lensFullscreenModal.show {
    display: flex;
}

.lens-fs-header {
    padding: 14px 20px;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    border-bottom: 1px solid #333;
}

.lens-fs-close {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
}

.lens-fs-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFA500;
}

.lens-fs-image-wrap {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lens-fs-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .lens-layout { grid-template-columns: 1fr; }
}
