@import url('modules/reset.css');
@import url('modules/button.css');
@import url('modules/input.css');
@import url('modules/modal.css');

/* BLOCK */

html{
    font-size: 16px;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

body{
    min-height: 100vh;
    color: white;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(83,7,101,1) 40%, rgba(83,7,101,1) 50%, rgba(0,0,0,1) 100%);
}

header{
    z-index: 110;
    position: fixed;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    top: 0;
    width: 100%;
    height: 5rem; 
    padding: 1rem 1rem 1rem 1rem;
    background: rgb(0, 0, 0);
}

main{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

footer{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 2rem 1rem 2rem 1rem;
    justify-content: center;
}

nav{
    display: flex;
    align-items: center;
    font-size: 2rem;
}

.add__section, .edit__section{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgb(49,5,60);
    background: linear-gradient(58deg, rgba(49,5,60,0.7651435574229692) 0%, rgba(0,0,0,0.7959558823529411) 100%);
    flex-direction: column;
}

.add__section form{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.add__section form input, .add__section form textarea, .add__section form .btn{
    width: 300px;
}

.cursor{
    position: relative;
}

.cursor::after{
    position: absolute;
    content: "";
    width: 2px;
    height: 100%;
    background-color: red;
    transform: translate(5px, 0);
    animation: cursor 3s ease 0s infinite normal forwards;
}

.danger{
    color: red;
}

.empty{
    height: 5rem;
}

.active{
    display: flex;
}

.hidden{
    display: none;
}

.overflow{
    overflow: hidden;
}

/* ELEMENT */

.header__logo{
}

.header__user{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.header__user .btn{
    padding: .5rem .75rem;
    font-size: .75rem;
    margin-left: .75rem;
}

.header__nav{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile__nav{
    display: none;
    font-size: 2rem;
    justify-content: center;
    align-items: center;
    margin-left: .75rem;
}

.computer__nav{
    display: flex;
}

.nav__item{
    font-size: 1rem;
    transition: all 250ms ease-in-out;
}


.nav__item:hover{
    cursor: pointer;
    color: #C11AEB;
    text-shadow: 0px 0px 14px rgb(91, 13, 110);
}

.nav__item.active{
    color: #a017c2;
    text-shadow: 0px 0px 14px rgba(199, 82, 237, 1);
}

.footer__top{
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: .5rem;
}

.footer__bottom{
    text-align: center;
}

.quote{
    font-family: "Kavivanar", cursive;
    font-weight: 400;
    font-style: normal;

    text-align: center;
    flex: 2;
    font-size: .75rem;
}

.footer__nav{
    display: flex;
    font-size: 1rem;
    flex: 1;
    width: 100%;
}

.footer__nav ul{
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.footer__{
    flex: 1;
}

/* MODIFIER */

.logo__text--bigger{
    font-size: 1.5rem;
}

.logo__text--smaller{
    font-size: 1rem;
}

.mobile__nav--div{
    width: 100vw;
    height: 100vh;
    background: rgb(49,5,60);
    background: linear-gradient(58deg, rgba(49,5,60,0.7651435574229692) 0%, rgba(0,0,0,0.7959558823529411) 100%);
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 5rem;
    z-index: 99;
    flex-direction: column;
}

.nav__item--mobile{
    display: block;
    width: 100vw;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 2rem;
}

/* ANIMATION */

@keyframes cursor {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    
    25%,
    75% {
        opacity: 0;
    }
}

.random-photos-gallery{
    display: grid;
    max-width: 300px;
    justify-content: end;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.random-photos-gallery img{
    max-width: 100%;
    height: 100px;
    min-width: 100px;
    overflow: hidden;
    object-fit: cover;
    transition: all ease-in-out 250ms;
}

.random-photos-gallery img:hover{
    transform: scale(1.025);
}

.actions{
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.coin{
    width: 40px;
}

nav a{
    position: relative;
}

.notification-counter{
    position: absolute;
    bottom: 50%;
    margin-left: 16px;
    font-size: 1.25rem;
    text-align: center;
}

/* INBOX */
.inbox, .points{
    position: fixed;
    height: 80vh;
    width: 400px;
    background: rgb(0, 0, 0);
    top: 5rem;
    right: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 101;
    transition: transform ease-in-out 1s;
    scrollbar-width: thin; /* Cienki scrollbar */
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(0, 0, 0, 0.5); /* Kolor uchwytu i toru */
}

/* Stylizacja scrolla dla WebKit (Chrome, Safari, Edge) */
.inbox::-webkit-scrollbar, .points::-webkit-scrollbar {
    width: 10px; /* Szerokość pionowego scrolla */
}

.inbox::-webkit-scrollbar-track, .points::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Tło "toru" scrolla */
    border-radius: 10px; /* Zaokrąglenie toru */
}

.inbox::-webkit-scrollbar-thumb, .points::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4); /* Kolor uchwytu scrolla */
    border-radius: 10px; /* Zaokrąglenie uchwytu */
    border: 2px solid rgba(0, 0, 0, 0.5); /* Obramowanie uchwytu */
}

.inbox::-webkit-scrollbar-thumb:hover, .points::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7); /* Kolor uchwytu po najechaniu */
}

.message{ 
    border: 1px solid #ddd; /* KOLOR */
    padding: .5rem; 
    margin: 0 .5rem .5rem .5rem; 
    border-radius: .5rem; 
}

.nieodczytane{ 
    background-color: #C11AEB; /* KOLOR */
}
/* INBOX */

.points-btn{
    display: flex;
    align-items: center;
}

.points-btn:hover{
    cursor: pointer;
}

.points-table{
    width: 100%;
    font-size: .75rem;
}

.points-table tbody{
    text-align: center;
}

@media (max-width: 420px) {
    .header__logo{min-width: 50vw;}
    .header__user .btn{
        font-size: 1.25rem;
        margin-left: .25rem;
        padding: 0;
    }
    .mobile__nav{
        font-size: 1.25rem;
        margin-left: .25rem;
    }
    .logo__text--bigger{ font-size: .95rem !important;}
    .logo__text--smaller{ font-size: .8rem !important;}
    .coin{ width: 30px;}
}

@media (max-width: 767px) {
    html{ font-size: 18px;}
    main{ max-width: 540px;}
    .header__logo{min-width: 50vw;}
    .header__user .btn{
        font-size: 1.25rem;
        margin-left: .5rem;
        padding: 0;
    }
    .mobile__nav{
        display: flex;
        font-size: 1.25rem;
        margin-left: .5rem;
    }
    .computer__nav{display: none;}
    .logo__text--bigger{ font-size: 1.1rem;}
    .logo__text--smaller{ font-size: .95rem;}
    .inbox, .points{
        max-width: 100vw;
        width: 90vw;
    }
    .message-container{
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    html{ font-size: 20px;}
    main{ max-width: 720px; } 
    .footer__top{
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        min-height: 3.75rem;
        gap: 2rem;
    }
    .footer__nav ul{
        flex-direction: column;
    }
    .header__user .btn{
        font-size: 1.5rem;
        margin-left: .75rem;
        padding: 0;
    }
    .mobile__nav{
        display: flex;
        font-size: 1.5rem;
        margin-left: .75rem;
    }
    .logo__text--smaller{ font-size: .65rem;}
    .computer__nav{display: none;}
    .random-photos-gallery{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    html{ font-size: 22px;}
    main{ max-width: 960px;}
    .mobile__nav{display: none;}
    header{
        grid-template-columns: 1fr 2fr 1fr;
    }
    .logo__text--smaller{ font-size: .85rem;}
    .computer__nav{display: flex;}
    .notification-counter{
        position: absolute;
        bottom: 70%;
        right: -25%;
        font-size: .75rem;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    html{ font-size: 24px;}
    main{ max-width: 1140px;}
    .random-photos-gallery{
        grid-template-columns: repeat(3, 1fr);
    }
}

