/* Theme System - TikTok Style Dark/Light Mode */

/* Global Styles */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    /* Dark Theme (Default - matches profile.css) */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-hover: #3a3a3a;

    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-tertiary: #a0a0a0;
    --text-muted: #707070;

    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;

    --accent-primary: #FE2C55;
    --accent-hover: #d91d42;
    --accent-gradient-start: #FE2C55;
    --accent-gradient-end: #25F4EE;

    --success: #32CD32;
    --warning: #FFA500;
    --error: #FE2C55;

    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-light: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e8ecef;
    --bg-hover: #dde2e6;

    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --text-muted: #999999;

    --border-color: #e0e0e0;
    --border-hover: #d0d0d0;

    --accent-primary: #FE2C55;
    --accent-hover: #d91d42;
    --accent-gradient-start: #FE2C55;
    --accent-gradient-end: #25F4EE;

    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;

    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Override transition for specific elements that shouldn't animate */
*:focus,
*:active,
button:active,
input,
textarea,
select {
    transition: none;
}
