/**
 * Public smartlink landing page only (sites/guest/smartlink-page.php).
 * Kept separate from guest-sites-inline.css so global :root/body rules do not affect the marketing site.
 */

:root {
    --sl-bg: #f3f4f6;
    --sl-surface: #ffffff;
    --sl-surface-soft: #f8f9fb;
    --sl-border: #dfe3e8;
    --sl-text: #10131a;
    --sl-muted: #67707f;
    --sl-accent: #ff002a;
    --sl-accent-dark: #d90024;
    --sl-shadow: 0 20px 60px rgba(16, 19, 26, 0.08);
    --sl-radius: 12px;
    --sl-radius-sm: 10px;
    --sl-panel-shadow: 0 20px 60px rgba(16, 19, 26, 0.08);
    --sl-hero-bg: #ffffff;
    --sl-divider: #e6e9ee;
    --sl-artwork-shadow: 0 18px 35px rgba(16, 19, 26, 0.14);
    --sl-icon-bg: #f3f4f6;
    --sl-icon-border: #e4e7ec;
    --sl-icon-fg: #2d3440;
    --sl-credit-link: #434c59;
    --sl-empty-bg: #fbfcfd;
    --sl-arrow: #8a92a0;
    --sl-btn-secondary-bg: #f3f5f7;
    --sl-platform-hover-shadow: 0 10px 25px rgba(16, 19, 26, 0.08);
    --sl-modal-backdrop: rgba(16, 19, 26, 0.48);
    --sl-share-dialog-shadow: 0 24px 60px rgba(16, 19, 26, 0.18);
    --sl-share-option-hover-shadow: 0 10px 24px rgba(16, 19, 26, 0.08);
}

html.dark-mode {
    --sl-bg: #13131a;
    --sl-surface: #1b1b24;
    --sl-surface-soft: #22222c;
    --sl-border: #2f323d;
    --sl-text: #f0f2f6;
    --sl-muted: #9aa3b2;
    --sl-accent: #ff002a;
    --sl-accent-dark: #ff3355;
    --sl-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --sl-panel-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --sl-hero-bg: #1b1b24;
    --sl-divider: #2f323d;
    --sl-artwork-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    --sl-icon-bg: #252532;
    --sl-icon-border: #3a3a4a;
    --sl-icon-fg: #e8eaf0;
    --sl-credit-link: #b4bcc8;
    --sl-empty-bg: #22222c;
    --sl-arrow: #8b93a8;
    --sl-btn-secondary-bg: #2a2a36;
    --sl-platform-hover-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --sl-modal-backdrop: rgba(0, 0, 0, 0.72);
    --sl-share-dialog-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    --sl-share-option-hover-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

html.light-mode {
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--sl-bg);
    color: var(--sl-text);
    font-family: "Cera Pro", sans-serif;
}

a {
    text-decoration: none;
}

.smartlink-theme-bar {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.smartlink-theme-label {
    color: var(--sl-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.smartlink-on-off-toggle.on-off-toggle {
    display: inline-block;
    height: 24px;
    margin-left: 0;
    position: relative;
    width: 50px;
}

.smartlink-on-off-toggle .on-off-toggle__slider {
    background: #dbdbdb;
    border: 1px solid #d3d3d3;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 24px;
    position: relative;
    transition: background-color 0.4s;
    width: 50px;
}

.smartlink-on-off-toggle .on-off-toggle__slider:before {
    background-color: #fff;
    border-radius: 100%;
    bottom: 3px;
    content: "";
    display: block;
    height: 16px;
    left: 3px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
    z-index: 5;
}

.smartlink-on-off-toggle .on-off-toggle__slider:after {
    background-image: url("../images/sun-icon.svg");
    background-position: center;
    background-repeat: no-repeat;
    color: #484848;
    content: "";
    display: block;
    height: 14px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(0, -50%);
    transition: all 0.4s;
    width: 14px;
}

.smartlink-on-off-toggle .on-off-toggle__input {
    opacity: 0;
    position: absolute;
}

.smartlink-on-off-toggle .on-off-toggle__input:checked + .on-off-toggle__slider {
    background: #13131b;
    border: 1px solid #22202c;
}

.smartlink-on-off-toggle .on-off-toggle__input:checked + .on-off-toggle__slider:before {
    transform: translateX(26px);
}

.smartlink-on-off-toggle .on-off-toggle__input:checked + .on-off-toggle__slider:after {
    background-image: url("../images/moon-icon.svg");
    color: #ffffff;
    left: 5px;
    padding-left: 8px;
}

html.dark-mode .smartlink-on-off-toggle .on-off-toggle__slider {
    background: #13131b;
    border-color: #22202c;
}

html.dark-mode .smartlink-on-off-toggle .on-off-toggle__slider:before {
    background-color: #e8eaf0;
}

.smartlink-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 16px 28px;
}

.smartlink-panel {
    background: var(--sl-surface);
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    box-shadow: var(--sl-panel-shadow);
    overflow: hidden;
}

.smartlink-hero {
    align-items: center;
    background: var(--sl-hero-bg);
    border-bottom: 1px solid var(--sl-divider);
    display: flex;
    flex-direction: column;
    padding: 16px 16px 12px;
    width: 100%;
}

.smartlink-artwork-wrap {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.smartlink-artwork-open {
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    margin-inline: auto;
    max-width: min(100%, 244px);
    padding: 0;
    width: fit-content;
}

.smartlink-artwork-open:focus-visible {
    outline: 2px solid var(--sl-accent);
    outline-offset: 3px;
}

.smartlink-artwork {
    width: min(100%, 244px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--sl-artwork-shadow);
    display: block;
    height: auto;
    max-width: 100%;
}

.smartlink-artwork-modal {
    align-items: center;
    background: var(--sl-modal-backdrop);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1000;
}

.smartlink-artwork-modal.is-open {
    display: flex;
}

.smartlink-artwork-dialog {
    margin: 0;
    max-height: min(92vh, 900px);
    max-width: min(92vw, 720px);
    position: relative;
    width: 100%;
}

.smartlink-artwork-close {
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    z-index: 2;
}

html.dark-mode .smartlink-artwork-close {
    background: rgba(255, 255, 255, 0.12);
    color: #f0f2f6;
}

.smartlink-artwork-close:hover {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

html.dark-mode .smartlink-artwork-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.smartlink-artwork-large {
    border-radius: 8px;
    box-shadow: var(--sl-share-dialog-shadow);
    display: block;
    height: auto;
    max-height: min(88vh, 860px);
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.smartlink-body {
    padding: 18px 16px 12px;
}

.smartlink-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.smartlink-artist {
    margin: 0 0 14px;
    color: var(--sl-muted);
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.smartlink-platforms {
    display: grid;
    gap: 10px;
}

.smartlink-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.smartlink-social {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sl-border);
    background: var(--sl-btn-secondary-bg);
    color: var(--sl-text);
    font-size: 16px;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.smartlink-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.smartlink-social-icon-svg svg {
    width: 20px;
    height: 20px;
    display: block;
    color: currentColor !important;
}

.smartlink-social-icon-svg svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.smartlink-social-icon-svg svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.smartlink-social:hover {
    color: var(--sl-text);
    transform: translateY(-1px);
    border-color: rgba(255, 0, 42, 0.3);
    box-shadow: var(--sl-platform-hover-shadow);
}

.smartlink-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    background: var(--sl-surface);
    color: var(--sl-text);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.smartlink-platform:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 0, 42, 0.3);
    box-shadow: var(--sl-platform-hover-shadow);
    color: var(--sl-text);
}

.smartlink-platform-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.smartlink-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 6px;
    border: 1px solid var(--sl-icon-border);
    background: var(--sl-icon-bg);
    overflow: hidden;
}

.smartlink-platform-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--sl-icon-fg);
}

.smartlink-platform-mark svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: currentColor !important;
}

.smartlink-platform-icon .smartlink-platform-mark svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.smartlink-platform-icon .smartlink-platform-mark svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.smartlink-platform-icon .smartlink-platform-mark img {
    filter: grayscale(1);
    opacity: 0.92;
}

.smartlink-platform-fallback {
    color: var(--sl-icon-fg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.smartlink-platform-copy {
    min-width: 0;
}

.smartlink-platform-copy h5 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
}

.smartlink-platform-copy p {
    margin: 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.smartlink-platform-copy p.smartlink-platform-url-line {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 5px;
}

.smartlink-platform-arrow {
    color: var(--sl-arrow);
    font-size: 14px;
    flex: 0 0 auto;
}

.smartlink-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.smartlink-btn {
    display: inline-flex;
    align-items: center;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: "Cera Pro", sans-serif;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.smartlink-btn:hover {
    transform: translateY(-1px);
}

.smartlink-btn-primary {
    background: var(--sl-accent);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(255, 0, 42, 0.18);
}

.smartlink-btn-primary:hover {
    color: #ffffff;
    background: var(--sl-accent-dark);
}

.smartlink-btn:focus,
.smartlink-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 0, 42, 0.16);
    outline: none;
}

.smartlink-btn-secondary {
    background: var(--sl-btn-secondary-bg);
    border: 1px solid var(--sl-border);
    color: var(--sl-text);
}

.smartlink-credit {
    padding: 16px 8px 0;
    text-align: center;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.5;
}

.smartlink-credit a {
    color: var(--sl-text);
    font-weight: 700;
}

.smartlink-credit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}

.smartlink-credit-links a {
    color: var(--sl-credit-link);
    font-size: 12px;
    font-weight: 300;
}

.smartlink-credit-prominent {
    font-size: 15px;
    line-height: 1.7;
}

.smartlink-credit-prominent a {
    font-size: 16px;
}

.smartlink-credit-prominent .smartlink-credit-links a {
    font-size: 15px;
    font-weight: 700;
}

.smartlink-empty {
    padding: 18px;
    border: 1px dashed var(--sl-border);
    border-radius: 7px;
    background: var(--sl-empty-bg);
    text-align: center;
    color: var(--sl-muted);
    font-size: 14px;
}

.presave-release-card {
    background: var(--sl-surface-soft);
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    color: var(--sl-text);
    padding: 14px;
}

.presave-release-card.smartlink-platform {
    cursor: default;
}

.presave-release-card.smartlink-platform:hover {
    border-color: var(--sl-border);
    box-shadow: none;
    transform: none;
}

.presave-release-card p {
    color: var(--sl-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 12px 0 0;
}

.presave-release-date-row {
    align-items: center;
    display: flex;
    gap: 12px;
}

.presave-release-date-icon {
    align-items: center;
    background: var(--sl-icon-bg);
    border: 1px solid var(--sl-icon-border);
    border-radius: 6px;
    color: var(--sl-icon-fg);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.presave-release-date-label {
    color: var(--sl-muted);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.presave-release-date-row strong {
    color: var(--sl-text);
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.presave-action {
    width: 100%;
}

.presave-action-icon,
.presave-action-icon svg {
    display: inline-flex;
    height: 20px;
    width: 20px;
}

.presave-action-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.presave-action-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}

.presave-action-disabled {
    align-items: center;
    background: var(--sl-btn-secondary-bg);
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    color: var(--sl-muted);
    cursor: not-allowed;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    text-align: center;
}

.presave-message {
    align-items: center;
    border-radius: 7px;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    line-height: 1.5;
    margin: 0;
    padding: 12px 14px;
    text-align: center;
}

.presave-explanation {
    display: grid;
    gap: 4px;
    text-align: center;
}

.presave-explanation strong {
    color: var(--sl-text);
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.presave-explanation span {
    color: var(--sl-muted);
    display: block;
    font-size: 13px;
    line-height: 1.5;
}

.presave-message-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #16803a;
}

.presave-message-error {
    background: rgba(255, 0, 42, 0.12);
    border: 1px solid rgba(255, 0, 42, 0.2);
    color: var(--sl-accent-dark);
}

html.dark-mode .presave-message-success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.34);
    color: #6ee7a0;
}

.presave-message-icon {
    align-items: center;
    background: rgba(34, 197, 94, 0.16);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

html.dark-mode .presave-message-icon {
    background: rgba(34, 197, 94, 0.22);
}

.presave-message-copy {
    display: grid;
    gap: 2px;
}

.presave-message-copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.presave-message-copy span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.9;
}

.presave-message-copy-inline {
    align-items: baseline;
    display: inline;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
}

.presave-message-copy-inline strong {
    margin-right: 6px;
}

.presave-message-copy-inline strong,
.presave-message-copy-inline span {
    display: inline;
}

.smartlink-share-modal {
    align-items: center;
    background: var(--sl-modal-backdrop);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 999;
}

.smartlink-share-modal.is-open {
    display: flex;
}

.smartlink-share-dialog {
    background: var(--sl-surface);
    border: 1px solid var(--sl-border);
    border-radius: 8px;
    box-shadow: var(--sl-share-dialog-shadow);
    max-width: 460px;
    overflow: hidden;
    width: min(100%, 460px);
}

.smartlink-share-header {
    align-items: center;
    border-bottom: 1px solid var(--sl-divider);
    display: flex;
    justify-content: space-between;
    padding: 16px 16px 14px;
}

.smartlink-share-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.smartlink-share-close {
    align-items: center;
    background: var(--sl-btn-secondary-bg);
    border: 1px solid var(--sl-border);
    border-radius: 6px;
    color: var(--sl-text);
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.smartlink-share-body {
    padding: 16px;
}

.smartlink-share-caption {
    color: var(--sl-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.smartlink-share-text {
    background: var(--sl-surface);
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    color: var(--sl-text);
    font-family: "Cera Pro", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 116px;
    padding: 12px 13px;
    resize: none;
    width: 100%;
}

.smartlink-share-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.smartlink-share-option {
    align-items: center;
    background: var(--sl-surface);
    border: 1px solid var(--sl-border);
    border-radius: 7px;
    color: var(--sl-text);
    cursor: pointer;
    display: inline-flex;
    font-family: "Cera Pro", sans-serif;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 46px;
    padding: 12px 14px;
    text-align: center;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.smartlink-share-option:hover {
    border-color: rgba(255, 0, 42, 0.28);
    box-shadow: var(--sl-share-option-hover-shadow);
    color: var(--sl-text);
    transform: translateY(-1px);
}

.smartlink-share-brand-icon {
    background: currentColor;
    display: inline-block;
    height: 15px;
    mask-image: var(--share-icon);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 15px;
    -webkit-mask-image: var(--share-icon);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.smartlink-share-option:focus,
.smartlink-share-option:focus-visible,
.smartlink-share-close:focus,
.smartlink-share-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 0, 42, 0.12);
    outline: none;
}

.smartlink-share-feedback {
    color: var(--sl-accent-dark);
    font-size: 12px;
    font-weight: 700;
    min-height: 18px;
    padding-top: 10px;
    text-align: center;
}

@media (min-width: 768px) {
    .smartlink-shell {
        padding-top: 34px;
        padding-bottom: 40px;
    }

    .smartlink-title {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .smartlink-shell {
        padding: 10px 10px 24px;
    }

    .smartlink-theme-bar {
        margin-bottom: 10px;
    }

    .smartlink-hero {
        padding: 12px 12px 10px;
    }

    .smartlink-body {
        padding: 16px 12px 12px;
    }

    .smartlink-title {
        font-size: 24px;
    }

    .smartlink-artist {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .smartlink-platform {
        gap: 10px;
        padding: 12px;
    }

    .smartlink-platform-copy h5 {
        font-size: 14px;
    }

    .smartlink-platform-copy p {
        font-size: 11px;
    }

    .smartlink-btn {
        min-height: 46px;
        padding: 11px 14px;
    }

    .smartlink-credit-links {
        gap: 10px;
    }

    .smartlink-share-grid {
        grid-template-columns: 1fr;
    }
}

#smartlink-generator-main .roadmap-block .roadmap-dt h3,
#presave-generator-main .roadmap-block .roadmap-dt h3,
#smartlink-generator-main .smartlink-seo-card h2,
#presave-generator-main .smartlink-seo-card h2 {
    text-transform: none;
}
