/* Website/Public/CSS/index.css */
:root {
    --twitch-purple: rgb(145, 70, 255);
    --twitch-purple-hover: #a970ff;
    --bg-dark: #1f1f23;
    /* Lightened Charcoal Background */
    --bg-light: #26262c;
    /* Surface/Card Background */
    --bg-card: #2f2f35;
    /* Elevated Hover State */
    --border-color: #3b3b44;
    --text-main: #ffffff;
    --text-muted: #adadb8;
    --accent-blue: #53e4ff;
    --error-red: #e91916;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, var(--bg-dark) 0%, #18181b 100%);
    color: var(--text-main);
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

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

/* Global Buttons */
.btn-add,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--twitch-purple);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add:hover {
    background: var(--twitch-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.description-text {
    color: var(--text-muted);
}

/* Reusable Card Base */
.card-base {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    color: var(--twitch-purple);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Container for the profile picture and dropdown */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Circular Profile Picture */
.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9146FF;
    /* Twitch purple accent */
    transition: transform 0.2s ease;
}

.profile-dropdown:hover .profile-pic {
    transform: scale(1.05);
}

/* Dropdown Menu Hidden State */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #26262c;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Dropdown Menu Visible State on Hover */
.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.dropdown-menu a i {
    width: 20px;
    /* Aligns icons perfectly */
    color: #ffffff;
}

.dropdown-menu a:hover,
.dropdown-menu a:hover i {
    color: #9146FF;
}

.dropdown-menu a.logout:hover,
.dropdown-menu a.logout:hover i {
    color: red;
}