:root {
    --color-primary: #4234E0;
    --color-secondary: #1DE9B6;
    --color-background: #121212;
    --color-card-background: rgba(34, 34, 44, 0.98);
    --color-text: #FFFFFF;
    --color-text-secondary: #B0BEC5;
    --color-highlight: #FFD700;
    --color-success: #00E676;
    --color-danger: #FF1744;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(76, 0, 130, 0.084) 0%, rgba(29, 233, 182, 0.084) 100%);
    opacity: 0.16;
    animation: bg-breath 10s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    will-change: opacity, filter;
}

.navbar {
    background-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand,
.navbar-brand span {
    color: var(--color-highlight) !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--color-text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
    color: var(--color-highlight) !important;
}

.navbar-toggler {
    border: none;
    color: var(--color-text-secondary);
}

.navbar-toggler-icon {
    background: none;
}

.wmduel-logo {
    width: 36px;
    height: auto;
    margin-left: 1px;
    margin-right: 1px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.card {
    background: var(--color-card-background);
    color: var(--color-text);
    border-radius: 1.5rem;
    border: none;
}

.card h1 {
    font-weight: 800;
    letter-spacing: 1px;
}

.card .lead {
    color: var(--color-text);
    font-size: 1.15rem;
}

#wm-welcome-card {
    max-width: 700px;
    width: 100%;
}

.wm-div-secondary-text {
    font-size: 0.98rem;
    color: var(--color-text-secondary);
}

.btn-primary,
.btn-primary:focus {
    background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-secondary) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    border: none;
    color: var(--color-highlight);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 2rem;
    box-shadow: 0 2px 12px 0 rgba(76, 0, 130, 0.10);
    transition: background-position 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-position: 100% 0%;
    transform: translateY(-2px) scale(1.03);
}

.rate-poster {
    max-width: 300px;
}

footer {
    background: rgba(34, 34, 44, 0.98);
    color: var(--color-text);
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 12px 0 rgba(76, 0, 130, 0.10);
}

footer .text-center {
    padding: 1.2rem 0;
}

/*Custom reusable classes*/

.text-highlight {
    color: var(--color-highlight) !important;
    font-weight: 700;
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.divider-half {
    border-top: 2px solid #ccc;
    margin: 0;
}

.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.no-link-style {
    text-decoration: none !important;
    color: inherit !important;
}
.no-link-style:hover, .no-link-style:focus {
    color: inherit;
    text-decoration: none;
}

.margin-top-4 {
    margin-top: 4rem !important;
}

.rating-label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}
.star-rating {
    direction: rtl;
    display: inline-flex;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    transition: color 0.2s;
}
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc700 !important;
}

.row{
    justify-content: center;
}

/*Animations*/
@keyframes bg-breath {
    0% {
        opacity: 0.14;
        filter: blur(0px);
    }

    50% {
        opacity: 0.20;
        filter: blur(1px);
    }

    100% {
        opacity: 0.14;
        filter: blur(0px);
    }
}

.slide-left {
  animation: slideOutLeft 1s ease forwards;
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-150px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-right {
  animation: slideInRight 0.5s ease forwards;
}


/*Media Queries*/

@media (max-width: 600px) {
    .card {
        padding: 1.2rem !important;
        border-radius: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .wmduel-logo {
        width: 28px;
    }

    #wm-welcome-card {
        width: 90%;
    }

    .rate-poster {
        max-width: 140px;
    }
}

.table {
    background: var(--color-card-background);
    color: var(--color-text);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0;
}

.table th, .table td {
    border-color: #23233a;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(66, 52, 224, 0.08); /* subtle primary tint */
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(34, 34, 44, 0.98); /* card background */
}

.table thead th {
    background: var(--color-primary);
    color: var(--color-highlight);
    border-bottom: 2px solid var(--color-highlight);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.table a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.table a:hover {
    color: var(--color-highlight);
    text-decoration: underline;
}