/*
 * Shared platform colour contract.
 *
 * Add data-platform-theme="instagram|facebook|..." to any component that
 * needs the current platform palette. Nested elements may use another value;
 * their custom properties will override the parent theme locally.
 */
[data-platform-theme] {
    --platform-accent: #20a7ee;
    --platform-gradient: linear-gradient(135deg, #20a7ee 0%, #0ed5e1 100%);
    --platform-highlight: linear-gradient(90deg, rgba(32, 167, 238, .35), rgba(14, 213, 225, .35));
    --platform-soft: #e6f6fb;
    --platform-shadow-rgb: 32, 167, 238;
}

[data-platform-theme="instagram"] {
    --platform-accent: #e1306c;
    --platform-gradient: linear-gradient(90deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
    --platform-highlight: linear-gradient(90deg, rgba(245, 133, 41, .5) 0%, rgba(247, 119, 55, .5) 55%, rgba(221, 42, 123, .5) 100%);
    --platform-soft: #fdf2f8;
    --platform-shadow-rgb: 225, 48, 108;
}

[data-platform-theme="facebook"] {
    --platform-accent: #1877f2;
    --platform-gradient: linear-gradient(90deg, #1877f2 0%, #0a52c4 100%);
    --platform-highlight: linear-gradient(90deg, #95c0f9 0%, #90bef9 55%, #8cbbf8 100%);
    --platform-soft: #eff6ff;
    --platform-shadow-rgb: 24, 119, 242;
}

[data-platform-theme="tiktok"] {
    --platform-accent: #18181c;
    --platform-gradient: linear-gradient(90deg, #25f4ee 0%, #18181c 50%, #fe2c55 100%);
    --platform-highlight: linear-gradient(90deg, #92faf6 0%, #e1d5fd 55%, #ffa6b8 100%);
    --platform-soft: #f1f5f9;
    --platform-shadow-rgb: 24, 24, 28;
}

[data-platform-theme="youtube"] {
    --platform-accent: #ff0000;
    --platform-gradient: linear-gradient(90deg, #ff0000 0%, #cc0000 100%);
    --platform-highlight: linear-gradient(90deg, #ff8c8c 0%, #fb8585 55%, #f28080 100%);
    --platform-soft: #fef2f2;
    --platform-shadow-rgb: 255, 0, 0;
}

[data-platform-theme="twitter"] {
    --platform-accent: #0f1419;
    --platform-gradient: linear-gradient(90deg, #0f1419 0%, #475569 50%, #0f1419 100%);
    --platform-highlight: linear-gradient(90deg, #c8ccd2 0%, #b9bec6 55%, #c8ccd2 100%);
    --platform-soft: #f1f5f9;
    --platform-shadow-rgb: 15, 20, 25;
}

[data-platform-theme="threads"] {
    --platform-accent: #111827;
    --platform-gradient: linear-gradient(90deg, #111827 0%, #475569 50%, #111827 100%);
    --platform-highlight: linear-gradient(90deg, #c8ccd2 0%, #b9bec6 55%, #c8ccd2 100%);
    --platform-soft: #f1f5f9;
    --platform-shadow-rgb: 17, 24, 39;
}

[data-platform-theme="soundcloud"] {
    --platform-accent: #ff5500;
    --platform-gradient: linear-gradient(90deg, #ff9a2e 0%, #ff5500 55%, #ff2d55 100%);
    --platform-highlight: linear-gradient(90deg, #ffa070 0%, #ff9966 55%, #ff925c 100%);
    --platform-soft: #fff7ed;
    --platform-shadow-rgb: 255, 85, 0;
}

[data-platform-theme="spotify"] {
    --platform-accent: #1db954;
    --platform-gradient: linear-gradient(90deg, #1db954 0%, #1ed760 100%);
    --platform-highlight: linear-gradient(90deg, #83d8a1 0%, #83e1a4 55%, #83e9a8 100%);
    --platform-soft: #f0fdf4;
    --platform-shadow-rgb: 29, 185, 84;
}
