
#sidebar{
    width:0px;
    padding-top: 4em;
    transition: width .25s ease;
}

#mainContent {
    margin-top:56px;
    transition: margin-left .25s ease;
}

#videos .card-body {
    min-width: 0;
}

#videos .card-title {
     display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.4;
    max-height: calc(1.4em * 2);
}
#videos .text-muted .col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(max-width: 992px){
    #sidebar{ width: 70px; }
    #mainContent { margin-left: 70px; }

    #sidebar .sidebar-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: .75rem .5rem;
    }
    #sidebar .sidebar-link i {
        display: block;
    }
    #sidebar .sidebar-label {
        display: block;
        width: 100%;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .85rem;
        line-height: 1.2;
    }
    #sidebarFooter .btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .35rem;
        text-align: center;
    }
}

@media(min-width: 992px){
    #sidebar{ width: 250px; }
    #mainContent { margin-left: 250px; }
}

/* Admin sidebar */
#adminSidebar {
    width: 0;
    padding-top: 4em;
    transition: width .25s ease;
    background-color: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
    z-index: 1039;
}

@media (max-width: 991.98px) {
    #adminSidebar {
        left: 70px;
        width: 70px;
    }
    #adminSidebar ~ #mainContent {
        margin-left: 140px;
    }
    #adminSidebar .admin-sidebar-label {
        display: none;
    }
    #adminSidebar .admin-sidebar-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: .75rem .5rem;
    }
    #adminSidebar .admin-sidebar-btn {
        flex-direction: column;
        justify-content: center;
        gap: .25rem;
        padding: .5rem;
    }
}

@media (min-width: 992px) {
    #adminSidebar {
        left: 250px;
        width: 200px;
    }
    #adminSidebar ~ #mainContent {
        margin-left: 450px;
    }
}

/* Search input with an icon inside the field */
.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 2.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.input-icon .form-control:focus,
.input-icon .form-control:not(:placeholder-shown) {
    background: #fff;
}

/* Topnav search: same look as .input-icon, but not full width */
.topnav-search {
    width: 220px;
}

/* Game list (templates/game/index.html.twig) */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
    gap: 1rem;
}

.game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

.game-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
    z-index: 1;
    pointer-events: none;
}

.game-cover button,
.game-cover .badge {
    z-index: 2;
}

/* Game show page (templates/game/show.html.twig) */
.game-show .card {
    transition: box-shadow .2s ease, transform .2s ease;
}

.game-show .game-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, .12), rgba(111, 66, 193, .08));
}

.game-show .game-hero img {
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .25);
}

.game-show .info-table th {
    width: 44%;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--bs-secondary-color);
    border: none;
    vertical-align: middle;
}

.game-show .info-table td {
    border: none;
    vertical-align: middle;
}

.game-show .nav-tabs {
    border-bottom: 1px solid var(--bs-border-color);
}

.game-show .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.game-show .nav-tabs .nav-link.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
}

.game-show .tab-content {
    border: none !important;
    overflow-x: hidden;
}

.game-show .tab-content img {
    max-width: 100%;
    height: auto;
}

/* Discord invite cards (templates/discord/index.html.twig) */
.discord-invite-card {
    background: #313338;
    border-radius: 8px;
    padding: 16px;
    font-family: "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.discord-invite-card .discord-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #232428;
    flex: none;
}

.discord-invite-card .discord-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f2f3f5;
}

.discord-invite-card .discord-desc {
    color: #b5bac1;
    font-size: 0.875rem;
}

.discord-invite-card .discord-status {
    font-size: 0.8125rem;
    color: #b5bac1;
}

.discord-invite-card .discord-status .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.discord-invite-card .dot-online {
    background: #23a55a;
}

.discord-invite-card .dot-total {
    background: #80848e;
}

.discord-invite-card .discord-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.discord-invite-card .discord-tag {
    background: #404249;
    color: #dbdee1;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 4px;
    padding: 2px 8px;
}

.discord-join-btn {
    background: #5865f2;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.discord-join-btn:hover {
    background: #4752c4;
    color: #fff;
}

/* Discord invite form (templates/discord/new.html.twig) */
.discord-form-card {
    background: #313338;
    border-radius: 8px;
    padding: 24px;
    font-family: "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    max-width: 480px;
    margin: 0 auto;
}

.discord-form-card label {
    color: #b5bac1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.discord-form-card .form-control {
    background: #1e1f22;
    border: none;
    color: #f2f3f5;
}

.discord-form-card .form-control:focus {
    background: #1e1f22;
    color: #f2f3f5;
    box-shadow: 0 0 0 2px #5865f2;
}

.discord-form-card .form-control::placeholder {
    color: #6d6f78;
}

.discord-submit-btn {
    background: #5865f2;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
}

.discord-submit-btn:hover {
    background: #4752c4;
    color: #fff;
}
