/* Cyberpunk Theme */
:root {
    --nav-color: #131318;
    --bg-primary: #23232b;
    --bg-secondary: #19191f;
    --bg-card: #2a2a3a;
    --bg-input: #23232b;
    --text-primary: #f3f3f3;
    --text-secondary: #b0b0b0;
    --user-primary: #8be9fd;
    --game-primary: #ffb86c;
    --accent-primary: #ff6fae;
    --accent-secondary: #5865f2;
    --border-color: #3a3a4a;
    --shadow-color: rgba(0, 0, 0, 0.18);
    --hover-bg: #3a3a4a;
    --success-color: #4ade80;
    --error-color: #f87171;
    --warning-color: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--hover-bg);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Inter', Arial, sans-serif;
}

main {
    padding-top: 80px;
}

.section__header {
    color: var(--text-primary);
    font-size: x-large;
}

.section__header i {
    padding-right: 10px;
}

.card {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 2em;
}

                                /*CURRENT CHAMPIONS*/
.current__champions {
    margin: 50px auto;
    width: 600px;
    height: 435px;
    padding: 30px;
    border-radius: 16px;
}

.current__champions > h2 {
    text-align: center;
}

.champions__tabs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.champions__tab {
    display: flex;
    background: var(--bg-input);
    color: white;
    border: none;
    gap: 8px;
    border-radius: 16px;
    padding: 0.8em 1.5em;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all ease 0.3s;
}

.champions__tab:hover {
    transform: translateY(-2px);
    background: var(--accent-primary);
    color: var(--bg-input);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.2);
}

.champions__tab.active {
    transform: translateY(0px);
    background: var(--accent-primary);
    color: var(--bg-input);
}

.champion__section {
    display: flex;
    align-items: end;
    width: 100%;
    height: 280px;
    margin: 20px 0px;
    justify-content: space-evenly;
}

.weekly__champions {
    display: block;
}

.champion__name {
    text-decoration: none;
    color: white;
}

.monthly__champions {
    display: none;
}

.podium {
    display: flex;
    flex-direction: column;
    width: 160px;
    border-radius: 20px 20px 0px 0px;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: black;
}

.second__podium {
    background: linear-gradient(135deg, #797979, #e5e5e5);
    height: 70%;
}

.first__podium {
    background: linear-gradient(135deg, #a79222, #ffed4e);
    height: 90%;
}

.third__podium {
    background: linear-gradient(135deg, #a1672d, #daa520);
    height: 60%;
}

.champion__pfp {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.champions__period {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

                            /* LEADERBOARDS AND POPULAR SECTION */

.leaderboard__and__most__popular {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 50px;
}

.leaderboard__section, .most__popular__section {
    width: 500px;
    padding: 30px;
    border-radius: 16px;
}

.leaderboard__tabs, .popular__tabs{
    display: flex;
    margin: 20px auto;
    justify-content: space-evenly;
    gap: 10px;
}

.leaderboard__tab, .popular__tab {
    background: var(--bg-input);
    color: var(--user-primary);
    border: none;
    border-radius: 16px;
    padding: 0.8em 1.5em;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboard__tab:hover, .popular__tab:hover {
    transform: translateY(-2px);
}

.leaderboard__tab:hover {
    background: var(--user-primary);
    color: var(--nav-color);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.2);
}

.popular__tab:hover {
    background: var(--game-primary);
    color: var(--nav-color);
    box-shadow: 0 4px 12px rgba(139, 233, 253, 0.2);
}

.leaderboard__tab.active {
    background: var(--user-primary);
    color: var(--nav-color);
    transform: translateY(0px);
}

.popular__tab.active {
    background: var(--game-primary);
    color: var(--nav-color);
    transform: translateY(0px);
}

.popular__tab {
    color: var(--game-primary); 
}

.leaderboard__container, .popular__container {
    width: 100%;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff6fae #23232b;
}

.leaderboard__list, .popular__list {
    list-style: none;
}

.leaderboard__item {
    background-color: var(--bg-input);
    height: 55px;
    display: flex;
    border-radius: 8px;
    align-items: center;
    margin-top: 15px;
    margin-right: 10px;
    padding: 15px;
}

.popular__item {
    background-color: var(--bg-input);
    display: flex;
    height: 55px;
    border-radius: 8px;
    align-items: center;
    margin-top: 15px;
    margin-right: 10px;
    padding: 15px;
}

.rank {
    color: white;
}

.user__leaderboard__pfp {
    height: 50px;
    width: 50px;
    margin-left: 20px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ff6fae;
}

.popular__game__image {
    height: 60px;
    width: 40px;
    margin-left: 20px;
    border-radius: 8px;
    object-fit: fill;
    border: 2px solid var(--game-primary);
}

.user__link {
    padding-left: 20px;
    color: var(--user-primary);
}

.game__link {
    width: 50%;
    padding-left: 20px;
    color: var(--game-primary);
}

.leaderboard__cred, .game__hours{
    margin-left: auto;
    color: white;
}

                    /* LOG SESSION SECTION */

.log__section {
    width: 850px;
    height: auto;
    margin: auto auto 50px auto;
    border-radius: 15px;
    padding: 1.5rem;
}

.log__section h2, h3 {
    margin: 5px auto;
}

.log__section h3 {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.manual__log__form, .automatic__log__form {
    display: flex;
    align-items:end;
    gap: 1rem;
}

.game__name input {
    width: 400px;
}

.manual__game__hours input, .game__players select {
    width: 90px;
}

.game__name label i, .manual__game__hours label i, .game__players label i{
    padding-right: 10px;
}

.game__search__container input, .manual__game__hours input, .game__players select {
    background: #23232b;
    border: 2px solid #2d2d35;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #f8f8f2;
    font-size: 1rem;
    transition: 0.2s;
}

.game__autocomplete__dropdown {
    z-index: 4;
    position: absolute;
    display: none;
    width: 430px;
    max-height: 200px;
    max-height: 300px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--bg-card);
}

.game__search__dropdown__item {
  display: flex;
  height: 50px;
  width: 88%;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #333;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  margin: 8px;
 }

.manual__submit {
    background: #ff6fae;
    color: white;
    border: 0px solid #2d2d35;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    height: 46px;
    white-space: nowrap;
}

.manual__submit:hover {
    transform: translateY(-2px);
}

.start__timer {
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: large ;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 46px;
    width: 270px;
}

.start__timer:hover {
    transform: translateY(-2px);
}

.timer__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
}

.timer__divider::before, .timer__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #444;
}

.timer__divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sign__in__message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 20px;
    padding: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

.sign__in__message i {
    color: #5865F2;
    font-size: 1.1rem;
}

        /* TIMER DISPLAY AND CONTROLS */

.timer__display {
    display: none;
    flex-direction: column;
    width: 500px;
    height: auto;
    padding: 40px 0px;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
    background-color: var(--bg-card);
    border-radius: 15px;
}

.timer__game__image {
    margin: 0px auto 20px auto;
    width: 240px;
    height: 360px;
    border-radius: 18px;
}

.timer__players__container {
    display: flex;
    width: fit-content;
    margin: 0px auto 20px auto;
    background: #09a341;
    color: #fff;
    font-weight: 600;
    gap: 5px;
    padding: 0.5em 1em;
    border-radius: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.timer__time {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.timer__buttons {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.pause__button {
    display: block;
    background-color: #daa520;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fa-pause {
    margin-right: 10px;
}

.log__button {
    background-color: #ff006e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fa-check {
    margin-right: 10px;
}

.resume__button {
    display: none;
    background-color: #09a341;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fa-play {
    margin-right: 10px;
}

                        /* RECENT ACTIVITY SECTION */

.recent__activity__section {
    width: 1200px;
    height: 481px;
    margin: auto;
    padding: 2em;
}

.activity__wide {
    position: relative;
    padding-top: 1.5rem;
    z-index: 1;
    overflow: visible;
    padding-left: 2em;
    padding-right: 2em;
}

.activity__carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    align-items: flex-start;
    position: relative;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-left: 0;
    margin-top: 2rem;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: #23232b;
    color: #ff6fae;
    border: none;
    border-radius: 50%;
    width: 3em;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 2px 8px rgba(255, 111, 174, 0.18);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    opacity: 0.95;
    margin-top: 2rem;
}

.fa-chevron-left:before {
    content: "\f053";
}

.fa-chevron-right:before {
    content: "\f054";
}

.carousel__arrow.left {
    left: -1em;
}

.carousel__arrow.right {
    right: -1em;
}


.activity__item {
    position: relative;
    z-index: 1;
    height: 420px;
    display: block;
    scroll-snap-align: start;
    transition: border-color 0.2s ease-in-out, box-shadow 0.13s, transform 0.13s;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-sizing: border-box;
}

.game__cover {
    width: 270px;
    height: 100%;
    object-fit: cover;
    transition: none;
    cursor: pointer;
    border-radius: 18px;
    display: block;
    z-index: 1;
}

.activity__date{
    position: absolute;
    top: 0em;
    right: 0em;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    z-index: 3;
    background: rgba(35, 35, 43, 0.85);
    padding: 5px 10px;
    border-radius: 0% 15px 0px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.coop__icon {
    position: absolute;
    top: 0px;
    left: 0px;
    display: flex;
    background: #09a341;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    gap: 3px;
    z-index: 3;
    padding: 5px 15px;
    border-radius: 15px 0px 18px 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.activity__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, #23232be0 80%, transparent 100%);
    color: #fff;
    padding: 1.25em 1em 0.75em 1em;
    display: flex;
    align-items: center;
    border-radius: 0px 0px 16px 16px;
    gap: 0.7em;
    font-size: 1.05em;
    z-index: 2;
    box-sizing: border-box;
}

.activity__userblock {
    overflow: hidden;
}

.activity__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ff6fae;
    object-fit: cover;
    margin-right: 0.4em;
}

.activity__player {
    font-weight: 600;
    color: #8be9fd;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.activity__player .user__link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #8be9fd;
    text-decoration: none;
    text-align: left;
    padding-left: 0px;
}

.activity__hours {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


                /* BONUS SECTION */

.bonus__section {
    width: 750px;
    margin: 50px auto 0px auto;
}

.bonus__section ul {
    list-style: none;
}

.bonus__section li {
    background: var(--bg-input);
    color: var(--accent-primary);
    border-radius: 10px;
    margin: 18px auto;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.05rem;
}

.bonus__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ff6fae;
    object-fit: cover;
    padding-right: 0px;
}

.bonus__section li .user__link {
    color: var(--user-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
    padding-left: 0px;
}

.bonus__credits {
    color: #ffb86c;
    font-weight: 700;
    margin-left: 0.3em;
}

.bonus {
    color: #50fa7b;
    font-weight: 600;
    margin-left: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

                /* FOOTER */

footer {
    text-align: center;
    color: #888;
    padding: 2.5rem 0 1.5rem 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}