/**
 * SuperTitles Platform - Theme Variables & Base Styles
 * Dark theme colors from existing app.supertitles.gr
 */

/* Font Import - Manrope */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Dark Theme Colors (from existing app) */
    --back-darker: rgba(42, 39, 40, 1);
    --back-dark: rgba(47, 45, 45, 1);
    --back-medium: rgba(54, 50, 52, 1);
    --back-light: rgba(63, 59, 60, 1);
    --back-lighter: rgba(79, 77, 77, 1);
    
    --forecolor: rgba(213, 211, 212, 1);
    --forecolor-50: rgba(213, 211, 212, .5);
    --forecolor-70: rgba(213, 211, 212, .7);
    --menucolor: rgba(213, 211, 212, 1);
    --menucolor-50: rgba(213, 211, 212, .7);
    
    --bluelink: rgba(33, 174, 221, 1);
    
    --white: rgba(255, 255, 255, 1);
    --white-30: rgba(255, 255, 255, .35);
    --white-60: rgba(255, 255, 255, .6);
    
    --black-30: rgba(0, 0, 0, .35);
    
    --active: rgba(40, 131, 40, 1);
    --upcoming: rgba(1, 87, 155, 1);
    --inactive: rgba(163, 51, 39, 1);
    
    --blue-plain: rgba(50, 59, 64, 1);
    --blue-plain-active: rgba(78, 104, 115, 1);
    
    --radius: 5px;
    --alert: rgba(249, 35, 114, 1);
    --success: rgba(40, 131, 40, 1);
    
    --box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    
    /* Light Theme Colors */
    --light-back-darker: rgba(245, 245, 245, 1);
    --light-back-dark: rgba(250, 250, 250, 1);
    --light-back-medium: rgba(255, 255, 255, 1);
    --light-back-light: rgba(248, 248, 248, 1);
    --light-back-lighter: rgba(240, 240, 240, 1);
    
    --light-forecolor: rgba(42, 39, 40, 1);
    --light-forecolor-50: rgba(42, 39, 40, .5);
    --light-forecolor-70: rgba(42, 39, 40, .7);
}

/* Light Theme Override */
body.light-theme {
    --back-darker: var(--light-back-darker);
    --back-dark: var(--light-back-dark);
    --back-medium: var(--light-back-medium);
    --back-light: var(--light-back-light);
    --back-lighter: var(--light-back-lighter);
    
    --forecolor: var(--light-forecolor);
    --forecolor-50: var(--light-forecolor-50);
    --forecolor-70: var(--light-forecolor-70);
    --menucolor: var(--light-forecolor);
    --menucolor-50: var(--light-forecolor-50);
    
    --box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    background-color: var(--back-darker);
    color: var(--forecolor);
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin-top: 0;
}

h1 {
    font-size: 1.7em;
    margin-bottom: 0.2em;
    line-height: 1.3;
}

h2 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    line-height: 1.2;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 0.3em;
    line-height: 1.3;
}

h4 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    line-height: 1.25;
}

b, strong {
    font-weight: 600;
}

/* Links */
a {
    color: var(--bluelink);
    text-decoration: none;
    font-weight: 300;
}

a:hover {
    text-decoration: underline;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

th, td {
    padding: 8px;
    text-align: left;
}

/* Forms */
input, select, textarea {
    font-family: 'Manrope', Arial, sans-serif;
    color: #202020;
}

button, input, select, textarea {
    color: #202020;
}

/* Scrollbar Styling (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--back-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--back-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forecolor-50);
}

/* Selection */
::selection {
    background: var(--bluelink);
    color: var(--white);
}

::-moz-selection {
    background: var(--bluelink);
    color: var(--white);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-muted {
    color: var(--forecolor-50);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--alert);
}

.text-info {
    color: var(--bluelink);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

