/* path: public_html/imageworks/assets/imageworks.css */

:root {
    --charcoal-950: #080A12;
    --charcoal-900: #10121C;
    --charcoal-800: #171A28;
    --charcoal-700: #202437;
    --border: #2A2F45;
    --text: #E6E6E6;
    --muted: #AAB0C0;
    --cyan: #00D4FF;
    --blue: #0057FF;
    --lime: #7CFF00;
    --magenta: #FF008C;
    --purple: #8A2BE2;
    --orange: #FF7A00;
    --yellow: #FFD600;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.18), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(124, 255, 0, 0.12), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(255, 0, 140, 0.12), transparent 24rem),
        var(--charcoal-950);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

.app-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.hero-card,
.panel {
    background: rgba(16, 18, 28, 0.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 70px var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-card {
    padding: 22px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.13), transparent 42%),
        linear-gradient(315deg, rgba(124, 255, 0, 0.08), transparent 46%);
    pointer-events: none;
}

.brand-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: contain;
    background: var(--charcoal-950);
    border: 1px solid var(--border);
    padding: 7px;
    flex: 0 0 auto;
}

.eyebrow,
.section-label {
    color: var(--cyan);
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 8px;
}

h1,
h2 {
    margin: 0;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(34px, 11vw, 72px);
    font-weight: 950;
}

h2 {
    font-size: clamp(28px, 7vw, 48px);
    font-weight: 950;
}

.hero-copy {
    position: relative;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 18px 0 0;
}

.limit-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.limit-grid div {
    background: rgba(23, 26, 40, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 10px;
    text-align: center;
}

.limit-grid strong {
    display: block;
    color: var(--lime);
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.limit-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    margin-top: 6px;
}

.panel {
    padding: 18px;
    margin: 16px 0;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.count-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(124, 255, 0, 0.45);
    color: var(--lime);
    background: rgba(124, 255, 0, 0.08);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.drop-zone {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 190px;
    border: 1.5px dashed var(--cyan);
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(0, 212, 255, 0.08), transparent 70%),
        rgba(23, 26, 40, 0.86);
    padding: 22px;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--lime);
    background-color: rgba(23, 26, 40, 1);
    transform: translateY(-2px);
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: var(--cyan);
    background: var(--charcoal-950);
    border: 1px solid var(--border);
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 14px;
}

.drop-zone strong {
    font-size: 17px;
    font-weight: 950;
    line-height: 1.25;
}

.drop-zone small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 7px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--charcoal-800);
    border: 1px solid var(--border);
    min-height: 132px;
}

.preview-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    background: var(--charcoal-950);
}

.preview-card-info {
    padding: 10px;
}

.preview-card strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-card small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 0, 140, 0.58);
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.88);
    color: var(--white);
    cursor: pointer;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 144px;
    width: 100%;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(23, 26, 40, 0.88);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.78);
    background: rgba(26, 31, 48, 1);
}

.service-card[aria-pressed="true"] {
    border-color: var(--cyan);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.35),
        0 0 24px rgba(0, 212, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(0, 212, 255, 0.14), rgba(23, 26, 40, 0.94));
}

.service-selected-dot {
    position: absolute;
    top: 9px;
    right: 11px;
    color: var(--lime);
    font-size: 10px;
    opacity: 0;
}

.service-card[aria-pressed="true"] .service-selected-dot {
    opacity: 1;
}

.service-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--charcoal-950);
    border: 1px solid var(--border);
    padding: 8px;
    margin-bottom: 10px;
    transition: transform 160ms ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-fallback {
    display: none;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--charcoal-950);
    border: 1px solid var(--border);
    color: var(--cyan);
    font-size: 16px;
    font-weight: 950;
    margin-bottom: 10px;
}

.service-card strong {
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.service-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 7px;
}

.action-panel {
    display: grid;
    gap: 12px;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 950;
    transition:
        transform 160ms ease,
        filter 160ms ease,
        opacity 160ms ease;
}

.primary-button {
    color: var(--charcoal-950);
    background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.secondary-button {
    color: var(--text);
    background: var(--charcoal-800);
    border: 1px solid var(--border);
}

.danger-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--magenta), var(--orange));
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.helper-text,
.status-message {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.status-panel {
    border-color: rgba(0, 212, 255, 0.35);
}

.progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: var(--charcoal-950);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 14px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--lime));
    border-radius: 999px;
    transition: width 300ms ease;
}

.download-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    background: var(--charcoal-800);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
}

.download-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-link strong {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 12px;
}

.footer-note {
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    padding: 18px 0 8px;
}

@media (min-width: 420px) {
    .app-shell {
        padding: 18px;
    }

    .service-card {
        min-height: 150px;
    }

    .service-card img,
    .service-fallback {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 640px) {
    .app-shell {
        padding: 24px;
    }

    .hero-card,
    .panel {
        border-radius: 28px;
    }

    .hero-card {
        padding: 28px;
    }

    .panel {
        padding: 24px;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
    }

    .preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        min-height: 156px;
    }
}

@media (min-width: 768px) {
    .app-shell {
        padding: 30px;
    }

    .hero-card {
        padding: 34px;
    }

    .panel {
        padding: 28px;
    }

    .hero-copy {
        font-size: 18px;
    }

    .limit-grid {
        max-width: 680px;
    }

    .preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card {
        min-height: 164px;
    }

    .service-card img,
    .service-fallback {
        width: 68px;
        height: 68px;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        padding: 36px;
    }

    .hero-card {
        padding: 38px;
    }

    .panel {
        padding: 30px;
    }

    .preview-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .service-card {
        min-height: 166px;
    }
}

@media (min-width: 1280px) {
    .app-shell {
        width: min(100%, 1280px);
    }

    .service-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 12px;
    }

    .service-card {
        min-height: 152px;
        padding: 14px 8px;
    }

    .service-card img,
    .service-fallback {
        width: 58px;
        height: 58px;
    }

    .service-card strong {
        font-size: 14px;
    }

    .service-card small {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .app-shell {
        padding: 12px;
    }

    .hero-card,
    .panel {
        border-radius: 20px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .limit-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        gap: 10px;
    }

    .service-card {
        min-height: 136px;
        padding: 12px 7px;
    }

    .service-card img,
    .service-fallback {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .service-card strong {
        font-size: 13px;
    }

    .service-card small {
        font-size: 11px;
    }
}

@media (hover: none) {
    .service-card:hover,
    .drop-zone:hover,
    .primary-button:hover,
    .secondary-button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}