/* Sidebar Layout for Games and Tools */

.sidebar-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
}

.vertical-sidebar {
    width: 250px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    padding: 0 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section h3 i {
    font-size: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link i {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.sidebar-link:hover i {
    opacity: 1;
    color: var(--accent);
}

.sidebar-link.active {
    background-color: var(--bg-tertiary);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

.content-area {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

/* Game Container */
.game-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.game-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

canvas {
    border: 2px solid var(--border);
    background-color: var(--bg-primary);
}

.game-controls {
    text-align: center;
    margin-top: 1.5rem;
}

.game-controls button {
    margin: 0 0.5rem;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
}

.game-info-item {
    text-align: center;
}

.game-info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-info-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tools Section */
.tool-embed {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
}

.tool-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vertical-sidebar {
        width: 200px;
    }

    .sidebar-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .sidebar-section h3 {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .sidebar-layout {
        flex-direction: column;
    }

    .vertical-sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-y: auto;
    }

    .sidebar-nav {
        padding: 1rem 0;
    }

    .sidebar-section {
        margin-bottom: 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .game-container {
        padding: 1rem;
    }

    .game-canvas-wrapper {
        overflow-x: auto;
        margin: 1rem 0;
    }

    canvas {
        max-width: 100%;
        height: auto;
    }

    .game-info {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }

    .game-controls {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .game-controls button {
        width: 100%;
        margin: 0;
    }

    .tool-embed iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .vertical-sidebar {
        max-height: 300px;
    }

    .sidebar-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .sidebar-section h3 {
        padding: 0 0.75rem;
        font-size: 0.75rem;
    }

    .content-area {
        padding: 0.75rem;
    }

    .game-container {
        padding: 0.75rem;
    }

    .game-info-label {
        font-size: 0.75rem;
    }

    .game-info-value {
        font-size: 1.25rem;
    }

    .tool-embed {
        padding: 0.75rem;
    }

    .tool-embed iframe {
        height: 400px;
    }
}
