
main a, main a:hover {
    color: #0A76A9;
}

main a:is(.dark *) {
    color: #14ACF5;
}

.favorite-link:hover, .favorite-link:focus {
    color: #14ACF5;
}


/******************************/
/*        NAVBAR GAMES        */
/******************************/
nav, footer {
    background: linear-gradient(90deg, #001933 10%, #0A76A9 90%);
}

.tab-links a.active {
    background-color: #0A76A9;
}

.tab-profile-container {
    display: flex;
    border-radius: .5rem;
    margin-bottom: .5rem;
    position: relative;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    overflow: scroll;
    margin-top: 2rem;
}

.tab-profile-container:is(.dark *) {
    background-color: #1A161F;
}

.tab-profile-container .tab {
    position: relative;
    margin: 0;   
    display: block;
    text-align: center;
    text-decoration: none;
    padding: .5rem 1rem;
    width: max-content;
    color: #555;
    z-index: 1; 
}

.tab-profile-container .tab a.active, .tab.active {
    background-color: #0A76A9;
}

.tab-profile-container .active a {
    color: #fff !important;
}

.tab-background {
    border-radius: .5rem;
}

.game-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.game-card-item {
    width: 100%;
    display: flex;
    background-color: #F9F9F9;
    border-radius: .5rem;
    border: 1px solid #dee2e6 !important;
    overflow: hidden;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.dark .game-card-item {
    background-color: #1A161F;
}

.game-card-image {
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .25rem;
}

.rating-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reviews-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.reviews-title {
    font-weight: 700;
}

.reviews-list {
    width: 100%;
}

.review-item {
    display: flex;
    margin-bottom: .75rem;
}

.review-thumb-wrapper {
    display: flex;
    margin-right: 1rem;
    width: 100px; 
    max-width: 100px; 
    flex-shrink: 0;
}

.review-thumb {
    display: block;
    object-fit: cover;
    max-width: 200px;
}

.review-content {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    margin-left: .5rem;
}

.review-main {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: .25rem;
}

.review-title {
    display: block;
    width: 100%;
    font-weight: 600;
    margin-bottom: .15rem;
}

.review-text {
    width: 100%;
    font-size: .875rem;
    line-height: 1.25rem;
}

.review-meta {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .25rem;
}

.review-date {
    margin-left: .25rem;
}

.review-divider {
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.market-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.market-title {
    font-weight: 700;
}

.market-section {
    display: flex;
    flex-wrap: wrap;
}

.market-section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.market-item {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: .5rem;
    border: 1px solid #dee2e6 !important;
    margin-top: .5rem;
    overflow: hidden;
}

.dark .market-item {
    background-color: #0d0c0f;
}

.market-thumb {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    display: block;
    width: 80px;
}

.market-content {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    align-content: space-between;
    height: 100%;
    padding: .5rem;
}

.market-line {
    width: 100%;
    margin: 0;
}

.market-meta {
    width: 100%;
    font-size: .875rem;
    text-align: right;
    margin-top: .25rem;
}

.articles-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.articles-title {
    font-weight: 700;
}

.articles-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.articles-list a {
    display: block;
}

.article-head-title {
    display: flex;
    flex-wrap: wrap;
}

.article-head-title a {
    width: 100%;
}


/******************************/
/*      CS / EN SWITCHER      */
/******************************/
.lang-switcher {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.lang-btn {
    cursor: pointer;
    text-decoration: none;
    color: #0A76A9;
}

.lang-btn:is(.dark *) {
    color: #14ACF5;
}

.lang-btn.active {
    color: #aaa !important;
    font-weight: bold;
    text-decoration: none;
}



.expandable {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    border-radius: .5rem .5rem 0 0;
    cursor: pointer;
    flex: .5;
    margin: 0;
    position: relative;
    transition: flex 0.5s ease-in;
    scroll-snap-align: start;
}

.panel h3 {
    font-size: 24px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    opacity: 0;
}

.panel.active {
    background-size: 100% 100%;
}

.active {
    flex: 5;
}

.panel.active h3 {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.4s;
}



.tag-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #09ABC3, #007a91);
    padding: 5px 10px 5px 20px;
    border-radius: 4px 20px 20px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all 0.25s ease-in-out;
}

/* Dírka v tagu */
.tag-label::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* Hover efekt */
.tag-label:hover {
    background: linear-gradient(135deg, #00c1dc, #0eb4ce);
    box-shadow: 0 3px 10px rgba(0, 193, 220, 0.4);
    transform: translateY(-1px);
}

/* Ikona */
.tag-label a {
    font-size: .9rem;
}


.tag-detail {
    top: 10px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #09ABC3;
    background: rgba(9, 171, 195, 0.1);
    border: 1px solid rgba(9, 171, 195, 0.3);
    border-radius: 0 9999px 9999px 0;
    padding: 4px 10px 4px 12px;
    box-shadow: 0 2px 6px rgba(9, 171, 195, 0.25);
    transition: all 0.25s ease;
}


/*  TABS  */
.tab-container {
    margin-top: 20px;
    /* border-bottom: 1px solid #ccc; */
}

.tab-links::-webkit-scrollbar {
    display: none;  /* Pro Chrome, Safari a Opera */
}

.tab-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    gap: 5px;
    overflow-x: scroll;
    overflow-y: hidden; /* Skrývá vertikální posuvník, pokud existuje */
    -ms-overflow-style: none;  /* Pro Internet Explorer a Edge */
    scrollbar-width: none;  /* Pro Firefox */
}

.tab-links a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    background-color: #f0f0f0;
    color: #000;
    display: inline-block;
}

.tab-links a.active {
    color: #fff;
    border: 1px solid #dee2e6;
    border-bottom: none;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.tab-content.active {
    display: block;
}


.game-card {
    grid-template-columns: 100px auto;
}

.card-text {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}


/******************************/
/*           SEARCH           */
/******************************/
.search-table {
    width: 100%;
    margin-left: 2rem;
}

.search-grid {
    display: grid;
    grid-template-columns: 90px 1fr 80px 180px;
    align-items: center;
    gap: .5rem;
    border: 1px solid #ccc;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
}

.search-header {
    padding: .75rem 0;
    font-weight: 600;
    min-height: 1px;
    width: 100%;
    border-radius: .5rem !important;
}

.search-grid:is(.dark *) {
    background: #252229;
}

.search-row {
    margin-top: .6rem;
    border-radius: .5rem;
    /* padding: .5rem; */
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.search-rating {
    display: flex;
    align-items: center;
    font-size: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.movie-rating {
    width: 80px;
    text-align: center;
}

.search-row img {
    display: block;
    width: 80px;
    border-radius: .5rem 0 0 .5rem;
    object-fit: cover;
}

.title a {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.year {
    color: #6b7280;
    text-align: center;
}

.rating {
    white-space: nowrap;
}

.stars {
    letter-spacing: 1px;
    text-align: center;
    padding: .25rem;
}





@media (max-width: 480px) {
    .panel {
        height: 40vh;
        margin: 5px 5px 5px 0;
    }

    .panel:nth-of-type(8), .panel:nth-of-type(9), .panel:nth-of-type(10) {
        display: none;
    }  
}

@media (min-width: 650px) {
    
    .wrap {
        flex-wrap: nowrap;
    }

}

@media (max-width: 650px) {
    .wrap {
        flex-wrap: wrap;
    }

    .ml-14 {
        margin-left: 0;
    }
    
    .margin-l {
        margin-left: 3.5em;
    }
}

@media (max-width: 767.98px) {
    .game-card-item {
        flex-direction: row;
    }

    .review-item {
        flex-direction: row;
    }

    .market-item {
        flex-direction: row;
    }

    .search-table {
        margin-left: 0;
    }
    
    .search-grid {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "poster title"
            "poster year"
            "poster rating";
        gap: .4rem .8rem;
    }

    .search-row {
        border-radius: .5rem;
        background: #252229;
        box-shadow: 0 6px 14px rgba(0,0,0,.4);
    }

    .search-row img {
        grid-area: poster;
        width: 80px;
        height: 120px;
    }

    .title {
        grid-area: title;
    }

    .year {
        grid-area: year;
        text-align: left;
        font-size: .9rem;
    }

    .search-rating {
        grid-area: rating;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: .25rem;
        gap: .6rem;
    }

    .movie-rating {
        width: auto;
        padding: 4px 10px;
        border-radius: 8px;
        background: rgba(255,80,80,.12);
        color: #ff6a6a;
        font-weight: 600;
    }

    .stars {
        white-space: nowrap;
    }

    .search-grid > a {
        grid-area: img;
    }

    .search-header {
        display: none;
    }


}

@media (min-width: 1024px) {
    .tab-profile-container {
        width: fit-content;
    }
}