/* ==========================================================================
   rapidSaveCloud - Shared Base CSS (main.css)
   ========================================================================== */

/* Variables & Design Tokens */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #11131e;
    --accent-blue: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-cyan: #06b6d4;
    --accent-red: #ef4444;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(17, 19, 30, 0.75);
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

@font-face {
    font-family: 'ADD-WITTE';
    src: url(https://addwitte.go.yo.fr/css/add-witte.ttf);
}

.logo-font {
    font-family: 'ADD-WITTE', 'Outfit', sans-serif;
    letter-spacing: 1px;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Ambient glow blobs */
.bg-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Navbar */
nav {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.nav-logo img {
    width: 42px;
    height: 42px;
    transition: transform 0.6s ease;
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.nav-by {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-by span {
    color: #fff;
    font-weight: 500;
}

/* Common UI Glass Card Elements */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
}

/* Submit Buttons */
button[type=submit],
input[type=submit] {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

button[type=submit]:hover,
input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #3b82f6 0%, var(--accent-blue) 100%);
}

button[type=submit]:active,
input[type=submit]:active {
    transform: translateY(0);
}


/* Shared Footer styling */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    background: rgba(10, 11, 16, 0.5);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}