/* Reducephoto.com - Master Color Theme & UI Styling */
:root {
    --bg-cream: #FAF5EE;
    --accent-coral: #FF6446;
    --accent-coral-hover: #E55336;
    --dark-navy: #0D3B43;
    --dark-navy-light: #164E59;
    --soft-peach: #FCD0BA;
    --peach-light: #FFF1E8;
    --card-bg: #FFFFFF;
    --text-main: #0D3B43;
    --text-muted: #64748B;
    --border-color: #E6DFD5;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 10px 30px rgba(13, 59, 67, 0.05);
    --shadow-hover: 0 20px 40px rgba(13, 59, 67, 0.09);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 72px; /* For mobile bottom nav bar */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-coral);
}

/* Horizontal scroll hiding standard scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Buttons & Accents */
.btn-coral {
    background-color: var(--accent-coral);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(255, 100, 70, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.btn-coral:hover {
    background-color: var(--accent-coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 100, 70, 0.38);
}
.btn-coral:active {
    transform: translateY(0);
}

.btn-navy {
    background-color: var(--dark-navy);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(13, 59, 67, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.btn-navy:hover {
    background-color: var(--dark-navy-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-navy);
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
    background-color: var(--peach-light);
}

/* Modern Card Surfaces */
.app-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.app-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Drag & Drop Zone */
.dropzone {
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-lg);
    background-color: #FCFAF7;
    transition: all 0.25s ease;
    cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-coral);
    background-color: var(--peach-light);
    transform: scale(1.008);
}

/* Custom Range Slider */
input[type="range"].custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 10px;
    outline: none;
}
input[type="range"].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-coral);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 100, 70, 0.4);
    border: 2px solid #FFFFFF;
    transition: transform 0.15s ease;
}
input[type="range"].custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
input[type="range"].custom-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-coral);
    cursor: pointer;
    border: 2px solid #FFFFFF;
}

/* Before / After Split Slider Container */
.comparison-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    border-radius: 14px;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.comparison-container img {
    max-width: 100%;
    max-height: 480px;
    display: block;
    object-fit: contain;
}
.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid var(--accent-coral);
}
.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: var(--accent-coral);
    border: 3px solid #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 14px;
    pointer-events: none;
}

/* Sticky Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    transition: color 0.2s;
    width: 20%;
}
.mobile-nav-item.active {
    color: var(--accent-coral);
}

/* Quick Pills */
.pill-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    color: var(--dark-navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.pill-btn:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
    transform: translateY(-1px);
}
.pill-btn.active {
    background: var(--accent-coral);
    color: #FFFFFF;
    border-color: var(--accent-coral);
    box-shadow: 0 4px 12px rgba(255, 100, 70, 0.25);
}
