@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

/* Root theme variables */
:root {
    --bg-light: #ecf5fffa;
    --text-light: #1d2f3b;
    --bg-dark: #253955;
    --text-dark: #ebf5ff;
    --glass-light: rgba(61, 148, 254, 0.2);
    --glass-dark: rgba(9, 29, 49, 0.5);
    --accent-color: rgb(67, 159, 250);
}

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

/* Base styles */
body {
    font-family: 'IBM Plex Sans', monospace;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--glass-light);
    color: var(--text-light);
    padding: 1rem 0;
}

.dark-mode header {
    background-color: var(--glass-dark);
    color: var(--text-dark);
}

/* Nav */
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a.active {
    color: var(--accent-color);
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    width: 300px;
    position: relative;
}

.dark-mode .modal-content {
    background: var(--bg-dark);
}

.modal-content input {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.5rem;
}

.modal-content button {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: rgb(0, 128, 255);
}

.hidden {
    display: none;
}

#toggleAuth a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

#toggleAuth a:hover {
    text-decoration: underline;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}



/* Theme Toggle Button */
#theme-toggle {
    padding: 4px;
    cursor: pointer;
    border: none;
    background: var(--glass-dark);
    color: white;
    border-radius: 20px;
}

.dark-mode #theme-toggle {
    background: var(--glass-light);
    color: black;
}

/* Footer */
footer {
    background-color: var(--glass-light);
    color: var(--text-light);
    padding: 3rem 0 1rem 0;
    transition: background-color 0.3s;
}

.dark-mode footer {
    background-color: var(--glass-dark);
    color: var(--text-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    width: calc(25% - 1rem);
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark-mode .footer-section a {
    color: var(--text-dark);
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-bottom {
    border-top: 2px solid var(--text-light);
    padding-top: 1rem;
    text-align: center;
}

.dark-mode .footer-bottom {
    border-top: 2px solid var(--text-dark);
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark-mode .footer-bottom a {
    color: var(--text-dark);
}

.footer-bottom a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}